I need a little help with this plugin, because this work for me fine but i need to set a nice script with rollback issue.
I wish to delete the rest of files installed and remove some registry as entries in Add/remove programs, etc...
well i get to delete files but the entry in "add/remove programs" it isn't removed.
this is my part of script with that:
# Rollback
# ===============================
Function Abortar
DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)"
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\$(^UninstallLink).lnk"
Delete "$DESKTOP\STR.lnk"
Delete "$QUICKLAUNCH\STR.lnk"
Delete /REBOOTOK $INSTDIR\uninstall.exe
DeleteRegValue HKLM "${REGKEY}" StartMenuGroup
DeleteRegValue HKLM "${REGKEY}" Path
DeleteRegKey /IfEmpty HKLM "${REGKEY}\Components"
DeleteRegKey /IfEmpty HKLM "${REGKEY}"
RmDir /r /REBOOTOK $SMPROGRAMS\$StartMenuGroup
RmDir /r /REBOOTOK $INSTDIR
DeleteRegValue HKLM "${REGKEY}\Components" BaseFiles
Push $R0
StrCpy $R0 $StartMenuGroup 1
StrCmp $R0 ">" no_smgroup
no_smgroup:
Pop $R0
FunctionEnd Well this script is copied from uninstaller section, i think this is correct if i wish to delete files and install a new clean installation again. 😕thx.