Archive: Do not allow to uninstall application when user is not admin


Do not allow to uninstall application when user is not admin
for windows xp, uninstallation of application is allowed when is user is not admin,after it gives some error,

is there any plug-in that will check that user is admin or not and then gives a message to user

Please give me some related links.


Did you do a search? The UserInfo plug-in that comes with NSIS will do it. There are also various scripts/plug-ins that will do this:

http://forums.winamp.com/showthread.php?threadid=195020
http://nsis.sourceforge.net/Check_if..._Administrator
http://nsis.sourceforge.net/IsUserAdmin
http://nsis.sourceforge.net/UserMgr_plug-in

Displaying the message box is of course up to you.

Stu


Thanks,My problem is fixed