|
|
#1 |
|
Junior Member
Join Date: Sep 2005
Posts: 3
|
Removing $INSTDIR Folder
It installs the application to Program Files\Appname. When I run the uninstall from add/remove programs it will remove the appname directory. When I run the shortcut from the start menu it won't remove it - it removes everything within the directory, but not the directory itself.
The uninst.exe is in the appname folder. The uninstall script is: Section Uninstall Delete "$SMPROGRAMS\Appname\Uninstall.lnk" Delete "$SMPROGRAMS\Appname\Appname Manager.lnk" Delete "$SMPROGRAMS\Appname\Appname.lnk" DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}" DeleteRegKey HKLM "SOFTWARE\Appname" SetAutoClose true RMDir "$SMPROGRAMS\Appname" RMDir /r "$INSTDIR" RMDir "$INSTDIR" SectionEnd Anyone know how I can get the uninstall to remove the actual base folder when I run either the start menu link or the uninst.exe in the folder? |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Jul 2004
Posts: 671
|
If you use NSIS v2.09. Then try:
code: |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Sep 2005
Posts: 3
|
Hooray :]
Thank-you for the quick reply Instructor. That fixed my problem.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|