Archive: Non-Admin should be able to instal


Non-Admin should be able to instal
Hi,

My installer should be able to be installed by admin and non-admin users too. While the former works, non-admin users are able to launch the installer , but shortcut icons are missing and the main application file did not get installed.
How can i write such an installer.


You have to make sure that you have write-access to the places where the installer needs to create files. For example, you can't write to the "All users" start-menu if you are not an administrator and you might not be able to install files to some other folders aswell (like Program Files on Vista).

/ Karl


Check the included multiuser header (MultiUser.nsh).


Thanks I used the multiuser.nsh header file and it worked.
The installer automatically substituted the registry Hives based on the logged in user's permission level.
Thanks once agaian.


Right, indeed very useful header, thanks to the author of it.