![]() |
#1 |
Junior Member
Join Date: Oct 2013
Posts: 4
|
variable in uninstall
Hi guys,
I've got some trouble with Uninstall. The installer has 4 selctions, one of them will be installed by user option. Also, each section will be installed on different $INSTDIR, registry path of unstaller too. The problem is this. the $uninstall_path variable can be accessed, but not in uninstall. =================================== Var /GLOBAL uninstall_path Function .onInstSuccess WriteRegStr HKLM "$uninstall_path" "UninstallString" "$INSTDIR\uninstall.exe" FunctionEnd Function un.onUninstSuccess DeleteRegKey HKLM "$uninstall_path" FunctionEnd =================================== I tried to use register, but it wasn't sucessful. I'd really really appreciate if someone give me advice. |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,350
|
NSIS does not remember the variable data, you have to save it in the registry or a .ini if you need to use it in the uninstaller...
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|