Archive: "You'll need to provide Admin Permissions..."


"You'll need to provide Admin Permissions..."
I have an installer I had created last year that I just went to go update and test on Windows 7, and seem to only have run into one snag. The installer wraps another installer, so that I could effectively install our Email software with our settings already configured.

Part of the script needs to copy a repair utility I have create to the programs folder inside $PROGRAMFILES. While I have a check "RequestExecutionLevel admin" and a check to make sure the program can not be run as regular user, my CopyFiles is unable to dump the file to this location, error returned is 0

I suspect that it is the Windows security setting that prompts even admin users, for the 'OK' to dump files in Windows protected folders. The wrapped installer program installs fine with no issues writing to the folder, its the single file copy after that is giving me trouble.

How do I get around this?

Thanks in advance.


Try removing the trailing backstroke.

Edit: Or append repair.exe to the destination path too.

Stu


Doh, thanks Stu your edit got me thinking about repair.exe long enough to realize what was wrong.

After my initial script, I made a template from it to search and replace for quick version updates. When I did so I missed including repair.exe in the folder to be packaged. Sadly it was not running because it was not there to run.

Thanks for your time