Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Error opening File - Windows Vista (http://forums.winamp.com/showthread.php?t=306563)

BioK 20th May 2009 03:32

Error opening file for writing - Windows Vista
 
Hi everybody, I have a problem with my installer when I run it in Windows Vista. It install files in C:\Program Files. It work well in Xp but in vista it give me this error

Error opening file for writing:
C:\Program Files\....

I've read somewhere that is because, don't have the proper folder permissions to write to the program files folder. If I right click in the installer and choose "run as administrator" it works, but is there another way to do that right in the script? Because it is not very intuitive that the user run the installer as administrator....

Waiting for answers ... :)

Comperio 20th May 2009 04:07

Use RequestExecutionLevel admin

BioK 20th May 2009 04:57

That is exactly what I was looking for, I've tried and it work perfectly. Thanks!

Anders 20th May 2009 16:05

it does not work in xp either, you are just testing as admin. You need to use the userinfo plugin in .onInit or .onGuiInit to check if the user is admin or not


All times are GMT. The time now is 17:45.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.