Uninstaller
Hi,
I don't want that the uninstaller deletes at end of uninstall the directory where the application was. How can I do that?
Thanks
mamilo!
Archive: Uninstaller
Uninstaller
Hi,
I don't want that the uninstaller deletes at end of uninstall the directory where the application was. How can I do that?
Thanks
mamilo!
Simply don't add this to the uninstaller. ;)
For example: This will delete the files, the uninstaller, the reg key and a sub dir but won't touch the main folder.
Section Uninstall
Delete "$INSTDIR\uninstaller.exe"
Delete "$INSTDIR\yourfolder\subfolder\test.txt"
Delete "$INSTDIR\yourfolder\subfolder\test2.txt"
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
RMDir "$INSTDIR\yourfolder\subfolder\"
SetAutoClose true
SectionEnd
What is the best way to handle a product uninstall if unbeknownst to the admin the product were being used while it is being uninstalled? Is there a simple way in NSIS to detect and warn the admin that the product is being currently used?
Thanks
Carlos
There are several ways, one quite simple is discussed on this forum thread,
http://forums.winamp.com/showthread....hreadid=262969