Old 12th April 2009, 15:33   #1
laurent22300
Junior Member
 
Join Date: Apr 2009
Posts: 30
Cannot install application on Vista

Hello,

For some reasons, my installer doesn't work on Windows Vista (french version). When I try to install my app to the default folder (c:\program files\app), I get this error for each file:

code:
Error opening file for writing: <name of file>


On the other hand, if I try to install the app in a folder other than "Program files" then the installation works fine. Does anybody know what could be the problem? I assume it's not the UAC since it would display a message and not just silently block the installation, right? Any ideas?

Thanks,

Laurent
laurent22300 is offline   Reply With Quote
Old 12th April 2009, 15:59   #2
Comperio
Major Dude
 
Comperio's Avatar
 
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
Just taking a wild guess, I would say that either it is a UAC problem and the user has not been elevated, or that the user just doesn't have adequate permissions to the program files folder.

I would probably check 2 things:[list=1][*]make sure you are using RequestExecutionLevel admin to ensure that if UAC is enabled, the user's security settings are properly elevated.[*]You also may want to then check for admin access just in case the user has UAC disabled. (maybe using something like this).[/list=1]
Comperio is offline   Reply With Quote
Old 12th April 2009, 16:47   #3
laurent22300
Junior Member
 
Join Date: Apr 2009
Posts: 30
Quote:
make sure you are using RequestExecutionLevel admin to ensure that if UAC is enabled, the user's security settings are properly elevated.
That was it! I had it set to "RequestExecutionLevel user" which apparently makes the UAC blocks the installation without providing any meaningful error message. By setting it to "admin" as you've suggested, the usual UAC mesage shows up asking for confirmation. Thanks for your help!
laurent22300 is offline   Reply With Quote
Old 13th April 2009, 00:15   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
it does not block the install, it just runs it as a normal user and not admin

IntOp $PostCount $PostCount + 1
Anders 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