This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- InstallScript function IS(FILE_EXISTS) returns false
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 16, 2007
05:27 PM
InstallScript function IS(FILE_EXISTS) returns false
The InstallScript function IS(FILE_EXISTS) recently started failing for me on all Vista target machines, if the installation is running from a network. Running from a CD works.
The code I'm using is:
if (Is(FILE_EXISTS, svIniSource) = TRUE) then
It recently started returning FALSE when running the installation from a network, and always works when running either locally or from a CD-Rom.
This is a Vista issue only. This functions as expected on non-Vista machines.
I have repro'd this on numerous domain and non-domain, Vista machines and virtual images (W23 servers hosting the files and WV64 Business workstations hosting the files)
The code I'm using is:
if (Is(FILE_EXISTS, svIniSource) = TRUE) then
It recently started returning FALSE when running the installation from a network, and always works when running either locally or from a CD-Rom.
This is a Vista issue only. This functions as expected on non-Vista machines.
I have repro'd this on numerous domain and non-domain, Vista machines and virtual images (W23 servers hosting the files and WV64 Business workstations hosting the files)
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 17, 2007
09:50 AM
If by network drive you mean a mapped network drive, it's possible that there's a context switch getting in the way. UNC paths should generally not be subject to this, unless the administrative account lacks access that the non-administrative account has. To verify if this is the cause of the problem, try showing the path you are about to check, then check manually if it exists in both a normal and an elevated command prompt.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 18, 2007
09:21 AM
Good test, I'll give it a try.
I am referring to UNC. Bypassing the test for file existance, I can also replicate this via XCopyFile().
I am referring to UNC. Bypassing the test for file existance, I can also replicate this via XCopyFile().
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)