NSIS installers and Windows Vista

Ever seen this dialog?  The dreaded “This program might not have installed correctly” message.

If you’ve built an NSIS installer and tried it on Vista you probably have.  This error seems to be shown whenever you run an installer that doesn’t have requestedPrivileges node in it’s manifest.  While the installs don’t seem to suffer the uninstaller definitely does suffer and does not correctly manage to remove the links from the start menu unless you run it from the Control Panel->Add/Remove Programs option.

The way to avoid it is to make sure you specify the priviledge that you want.  This is really easily done with a simple RequestExecutionLevel directive in your installer file.  You either want highest or admin for something that is expected to deal with the start menu or program files.  I’m still not sure which is the best because highest is something that is generally not recommend.  Having said that I’m not entirely sure I want my program to fail to install because the user isn’t an administrator.

The NSIS help file is a little misleading on this point.  It does state the technical differences but suggests that none and admin are equally valid.  I’d rather it suggested that admin was the better option.


One thought on “NSIS installers and Windows Vista

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s