/[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 273 - (hide annotations) (download)
Fri Nov 12 01:10:22 2010 UTC (9 years, 2 months ago) by william
File size: 1238 byte(s)
Auto Commited Import of: pcsx2-0.9.7-DEBUG (upstream: v0.9.7.4013 local: v0.9.7.197-latest) 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 william 273 !insertmacro UNINSTALL.LOG_UNINSTALL "$INSTDIR\Cheats"
23 william 62
24     SectionEnd
25    
26     Section "Un.Complete Registry Cleanup"
27    
28     ; Kill the entire PCSX2 registry key!
29     DeleteRegKey ${INSTDIR_REG_ROOT} Software\PCSX2
30    
31     ; Kill AppData/PCSX2 entry!
32    
33     SetShellVarContext current
34     StrCpy $0 $LOCALAPPDATA\PCSX2
35     Call un.DeleteDirIfEmpty
36     StrCpy $0 $APPDATA\PCSX2
37     Call un.DeleteDirIfEmpty
38    
39     SectionEnd

  ViewVC Help
Powered by ViewVC 1.1.22