Old 5th October 2020, 15:17   #1
Junior Member
Join Date: Oct 2020
Posts: 1
NSIS Error - Error launching installer


Due to a security policy, our uninstaller.exe can only be launched from a "My Personals Tools" folder inside the Users\--user--\Documents.
When launched through double click on uninstaller.exe, I did observe that the uninstaller creates a set of Un_A.exe... Un_B.exe .... Un_Z.exe in the %TEMP% (User/AppData/Local/Temp/~nsu.tmp) folder, before failing with a Message Box with header "NSIS Error" and a cross icon beside the text "Error launching installer".
Please note that we are running Windows 7 and a NSIS 3.03 Portable version.
I had to migrate from NSIS version 2.45 in order to support both installation on Windows 7 and Windows 10, hence be able to detect ${IsWin10}.

Please note that the installer created with NSIS 3.03 Portable version works like a charm.
Question : Is there a way to have more DEBUG traces in order to investigate the issue.

Thanks for your help
robert.pastor is offline   Reply With Quote
Old 6th October 2020, 10:42   #2
Anders's Avatar
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,321
The uninstaller creates a copy of itself and then tries to run that copy. It does this because a running exe cannot be deleted and you want to be able to delete the uninstaller in $instdir.

The security policy is the problem.

Start cmd.exe and do something like:

Set tmp=%userprofile%\documents\my personal tools
Set temp=%tmp%

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

uninstall nsis 3.03 error

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