![]() |
#1 |
Junior Member
Join Date: Dec 2021
Posts: 1
|
Uninstall Start menu shortcut
Hi
Env Win 7 Nsis 3.08 I'm new about nsis.. i just succesfully create some simple NSIS scrpt to install my programs The question is about start menu shortcut unistalling i succesfully write code to let to installer to choose start menu folder i put here the interested code code: the question is how to reference the directory $SMPROGRAMS\$R0 in the unistallal section ? i tried code: but it does not function .. i'm not using the modern interface..and if possible i do not want to use it.. Thanks in advance for the support |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
|
Classic NSIS does not write anything anywhere automatically, you need to save the folder name in the installer. You can save it in a .ini file or in the registry. Restore the variable in your uninstaller.
Ideally you should just have a single shortcut in $SMPROGRAMS. The Microsoft guidelines say you should not create shortcuts to updaters/uninstallers/help etc. IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|