![]() |
#1 |
Junior Member
Join Date: Jul 2017
Posts: 3
|
delete SMPROGRAMS folder
Hello Guys,
I'm trying to delete shortcuts and remove the directory created in SMPROGRAMS but it is don't work. the $ICONS_GROUP is returning the PROGRAMS folder when it should return the folder defined by the user during instalation. PS: It's my first post. follows the code: code: |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,356
|
You cannot combine "RequestExecutionLevel user" with HKLM.
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Jul 2017
Posts: 3
|
Anders,
Thank you for your attention, but the HKLM lines are commented. The installer runs without change the windows registry. |
![]() |
![]() |
![]() |
#4 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,356
|
If you don't define MUI_STARTMENUPAGE_REGISTRY_* then MUI_STARTMENU_GETFOLDER does not work and you manually have to save the folder name in your installer and restore it in the uninstaller before you can delete.
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#5 |
Junior Member
Join Date: Jul 2017
Posts: 3
|
Anders,
You really fast in your responses! Thank you! That's exactly what I need. Please, you have a sample or link showing how can I manually save the folder name in installer and restore it in uninstaller? I believe that this would solve my question. |
![]() |
![]() |
![]() |
#6 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,356
|
If you want to save it in the registry, just set the MUI_STARTMENUPAGE_REGISTRY_* defines (Use HKCU if you don't force elevation). Use the NSIS Ini functions if you want to save it in a .ini file. MUI_STARTMENU_GETFOLDER only supports the registry, just manually load $ICONS_GROUP if you are using a .ini...
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
|
Tags |
nsis, rmdir, startmenu, uninstall |
Thread Tools | Search this Thread |
Display Modes | |
|
|