Old 14th February 2012, 19:15   #1
Zizzzzy
Junior Member
 
Join Date: Feb 2012
Posts: 3
"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.
Attached Files
File Type: nsi CustomFClass.nsi (9.8 KB, 146 views)
Zizzzzy is offline   Reply With Quote
Old 14th February 2012, 19:27   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Try removing the trailing backstroke.

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

Stu
Afrow UK is offline   Reply With Quote
Old 15th February 2012, 04:33   #3
Zizzzzy
Junior Member
 
Join Date: Feb 2012
Posts: 3
Red face

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
Zizzzzy is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump