- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Copying file from SUPPORTDIR has readonly permissions for standard user when installer run as admin...
- 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
Copying file from SUPPORTDIR has readonly permissions for standard user when installer run as administrator
Hi,
I am copying a file out of the SUPPORTDIR into the ProgramData folder. We have to do this to avoid overwriting existing files by supporting a special renaming function. It works fine when the installer is started as a normal user and then is elevated to an admin level during the install. It does not work properly if the user runs the installer as admin from the start (for example, running the installer from command line with all parmameters specified rather than using the GUI interface). In this case the final file has the permissions for an admin user, but normal users can not write to the file. I don't see anyway to 'fix' this. Note that the copying is performed in a vbscript, so maybe there is a vb call I can make, but I have not found one.
Thanks,
Bob