Old 24th March 2014, 10:14   #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"

Function un.onUninstSuccess
DeleteRegKey HKLM "$uninstall_path"

I tried to use register, but it wasn't sucessful.

I'd really really appreciate if someone give me advice.
upgradeksh is offline   Reply With Quote
Old 24th March 2014, 13:38   #2
Anders's Avatar
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,357
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
Anders is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

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