/[pcsx2_0.9.7]/trunk/nsis/SectionUninstaller.nsh
ViewVC logotype

Annotation of /trunk/nsis/SectionUninstaller.nsh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 62 - (hide annotations) (download)
Tue Sep 7 11:08:22 2010 UTC (9 years, 4 months ago) by william
File size: 1181 byte(s)
Auto Commited Import of: pcsx2-0.9.7-r3738-debug in ./trunk
1 william 62 ; =======================================================================
2     ; Un.Installer Sections
3     ; =======================================================================
4     ; (currently web and main installers share the same uninstaller behavior. This
5     ; may change in the future, though I doubt it.)
6    
7     ; -----------------------------------------------------------------------
8     Section "Un.Exes and Plugins ${APP_NAME}"
9    
10     SetShellVarContext all
11    
12     !insertmacro UNINSTALL.LOG_UNINSTALL "$INSTDIR"
13    
14     ; Remove registry keys (but only the ones related to the installer -- user options remain)
15     DeleteRegKey HKLM "${INSTDIR_REG_KEY}"
16    
17     Call un.removeShorties
18    
19     !insertmacro UNINSTALL.LOG_UNINSTALL "$INSTDIR\Langs"
20     !insertmacro UNINSTALL.LOG_UNINSTALL "$INSTDIR\Plugins"
21     !insertmacro UNINSTALL.LOG_UNINSTALL "$INSTDIR\Docs"
22    
23     SectionEnd
24    
25     Section "Un.Complete Registry Cleanup"
26    
27     ; Kill the entire PCSX2 registry key!
28     DeleteRegKey ${INSTDIR_REG_ROOT} Software\PCSX2
29    
30     ; Kill AppData/PCSX2 entry!
31    
32     SetShellVarContext current
33     StrCpy $0 $LOCALAPPDATA\PCSX2
34     Call un.DeleteDirIfEmpty
35     StrCpy $0 $APPDATA\PCSX2
36     Call un.DeleteDirIfEmpty
37    
38     SectionEnd

  ViewVC Help
Powered by ViewVC 1.1.22