![]() |
#1 |
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 |
![]() |
![]() |
![]() |
#2 | |
Moderator
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:
IntOp $PostCount $PostCount + 1 |
|
![]() |
![]() |
![]() |
#3 |
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.
|
![]() |
![]() |
![]() |
#4 |
Moderator
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 |
![]() |
![]() |
![]() |
#5 |
Junior Member
Join Date: Jul 2017
Posts: 29
|
Anders, thank you!
|
![]() |
![]() |
![]() |
|
Tags |
uninstall nsis 3.03 error |
Thread Tools | Search this Thread |
Display Modes | |
|
|