Uninstall deleted all files under Program Files
Have been using this installer for a few months now, it's fairly simple - just copies files to an installation directory.
Problem was that on one instance of the uninstall in addition to it's own installation directory it also wiped out the contents of Program Files.
Any ideas why this might have occurred and how I can be sure to prevent this?
The only thing I can think of is that the "${PRODUCT_DIR_REGKEY}" happened to be a duplicate of another product of ours that was also installed. I dont' actually know what this key is used for - it was inserted by the HM NIS wizard.
Here's my uninstall section, any help would be appreciated.
Section Uninstall
Call un.KillPro
Delete "$INSTDIR\${PRODUCT_NAME}.url"
Delete "$INSTDIR\uninst.exe"
RMDir /r "$INSTDIR\plugins"
RMDir /r "$INSTDIR\common"
Delete "$SMPROGRAMS\ClearCanvas Ris Client\Uninstall.lnk"
Delete "$SMPROGRAMS\ClearCanvas Ris Client\Website.lnk"
Delete "$DESKTOP\ClearCanvas Ris Client.lnk"
Delete "$SMPROGRAMS\ClearCanvas Ris Client\ClearCanvas Ris Client.lnk"
RMDir "$SMPROGRAMS\ClearCanvas Ris Client"
RMDir /r "$INSTDIR"
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
SetAutoClose true
SectionEnd