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

Hello,

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
robert.pastor is offline   Reply With Quote
Old 6th October 2020, 10:42   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,355
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:

Quote:
Set tmp=%userprofile%\documents\my personal tools
Set temp=%tmp%
Uninstall.exe

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 16th December 2020, 22:18   #3
sfx09
Junior Member
 
Join Date: Jul 2017
Posts: 29
Hi! Can I change text "error launching installer" at something other text? I want add some "recommendations" for users, if they get NSIS Error. Unfortunately, I can't change my installer to Unicode (some big plugins ansi-only). Thank's for answer! Sorry for my English.
sfx09 is offline   Reply With Quote
Old 17th December 2020, 23:14   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,355
If you want to edit the existing text then you can use a hex editor on the stub. If you want to make the string longer then you have to re-compile NSIS yourself.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 20th December 2020, 22:18   #5
sfx09
Junior Member
 
Join Date: Jul 2017
Posts: 29
Anders, thank you!
sfx09 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
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