Archive: Cannot install application on Vista


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:

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

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]


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!

it does not block the install, it just runs it as a normal user and not admin