cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
bbrodd
Level 2

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

Labels (1)
0 Kudos
(0) Replies