Old 9th July 2022, 07:54   #1
willwade
Junior Member
 
Join Date: Jul 2022
Posts: 3
Installer is Admin - Uninstaller isnt

Im sure I am doing something stupid, but after looking through the docs and tinkering I cant figure it out.

My installer is set for RequestExecutionlevel highest - which works. I.e you get an alert saying you need to run it as admin. But the uninstaller doesnt. When run it says a nice complete and you realise it hasnt deleted any of the files..

From what I'm reading its actually hard to set a installer and uninstalelr with different execution levels. So really not sure how I'm doing this.

here's my installer: https://github.com/AceCentre/RelayKe...-installer.nsi

any help much appreciated!
willwade is offline   Reply With Quote
Old 9th July 2022, 16:03   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,539
If you always want to be admin, use Admin, not Highest. Highest will not elevate if the user is not a member of the administrator group.

There are some known issues that some versions of Windows 10 will not launch things correctly when using the settings app to uninstall. What happens if you start the uninstaller from a Explorer window directly?

Windows version?

In your script, don't call Call RequireAdmin so early, you must do the portable check first if you want to allow portable extraction without admin (but that will cause issues with your service?).

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 26th July 2022, 08:01   #3
willwade
Junior Member
 
Join Date: Jul 2022
Posts: 3
Thanks!

Thanks for that - spot on. Admin has fixed it. Thanks a million
willwade is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
admin

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