Prev Previous Post   Next Post Next
Old 12th September 2010, 00:11   #1
thanatos83
Junior Member
 
Join Date: Dec 2009
Posts: 29
using rollback with "CABsetup.dll"

HI all.

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:

PHP Code:
# 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 //REBOOTOK $SMPROGRAMS\$StartMenuGroup
    RmDir 
//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.
thanatos83 is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump