2002-08-23 20:06:23 +00:00
; NSIS Install Script
2002-09-09 05:22:02 +00:00
; created by
; BBF
2002-08-23 20:06:23 +00:00
; I use the following command to create the installer:
; D:\Program Files\NSIS>makensis.exe /v3 /cd "m:\Dev Projects\CVS\stepmania\stepmania.nsi"
;
2003-08-10 03:19:16 +00:00
; NOTE: this .NSI script is designed for NSIS v2.0+
2002-08-23 20:06:23 +00:00
2002-08-26 19:30:58 +00:00
2003-08-10 03:19:16 +00:00
; Product info is in a separate file so that people will change
; the version info for the installer and the program at the same time.
; It's confusing when the installer and shortcut text doesn't match the
; title screen version text.
!include "src\ProductInfo.inc"
2003-01-19 06:51:12 +00:00
2003-05-22 23:44:17 +00:00
!system "echo This may take a moment ..." ignore
2003-12-12 08:51:38 +00:00
!system "utils\upx Program\*.exe Program\*.dll" ignore
2003-05-22 23:44:17 +00:00
2003-08-10 03:19:16 +00:00
Name "${PRODUCT_NAME_VER}"
OutFile "${PRODUCT_NAME_VER}.exe"
2002-08-23 20:06:23 +00:00
2004-05-23 07:29:08 +00:00
; Don't say "StepMania 3.9 Setup"; just say "StepMania 3.9".
Caption "${PRODUCT_NAME_VER}"
UninstallCaption "${PRODUCT_NAME_VER}"
2002-08-23 20:06:23 +00:00
; Some default compiler settings (uncomment and change at will):
SetCompress auto ; (can be off or force)
SetDatablockOptimize on ; (can be off)
CRCCheck on ; (can be off)
2002-08-26 19:30:58 +00:00
AutoCloseWindow true ; (can be true for the window go away automatically at end)
2002-08-23 20:06:23 +00:00
; ShowInstDetails hide ; (can be show to have them shown, or nevershow to disable)
2003-01-19 06:29:25 +00:00
SetDateSave on ; (can be on to have files restored to their orginal date)
2003-01-19 06:51:12 +00:00
InstallDir " $PROGRAMFILES \${PRODUCT_ID}"
InstallDirRegKey HKEY_LOCAL_MACHINE "SOFTWARE\StepMania\${PRODUCT_ID}" ""
2004-02-23 04:12:07 +00:00
; DirShow show ; (make this hide to not let the user change it)
2003-02-11 21:09:14 +00:00
DirText "${PRODUCT_NAME_VER}"
2004-05-23 07:29:08 +00:00
InstallColors /windows
InstProgressFlags smooth
PageEx directory
Caption " "
PageExEnd
Page instfiles
2002-08-23 20:06:23 +00:00
2002-08-26 19:30:58 +00:00
;
; .oninit is called before window is shown
;
2002-08-23 20:06:23 +00:00
Function .onInit
2002-08-26 19:30:58 +00:00
; force uninstall of previous version using NSIS
2004-02-23 04:12:07 +00:00
; We need to wait until the uninstaller finishes before continuing, since it's possible
; to click the next button again before the uninstaller's window appears and takes focus.
; This is tricky: we can't just ExecWait the uninstaller, since it copies off the uninstaller
; EXE and exec's that (otherwise it couldn't delete itself), so it appears to exit immediately.
; We need to copy it off ourself, run it with the hidden parameter to tell it it's a copy,
; and then delete the copy ourself. There's one more trick: the hidden parameter changed
; between NSIS 1 and 2: in 1.x it was _=C:\Foo, in 2.x it's _?=C:\Foo. Rename the installer
; for newer versions, so we can tell the difference: "uninst.exe" is the old 1.x uninstaller,
; "uninstall.exe" is 2.x.
StrCpy $R1 " $INSTDIR \uninst.exe"
StrCpy $R2 "_="
IfFileExists " $R1 " prompt_uninstall_nsis
StrCpy $R1 " $INSTDIR \uninstall.exe"
StrCpy $R2 "_?="
IfFileExists " $R1 " prompt_uninstall_nsis old_nsis_not_installed
2002-08-26 19:30:58 +00:00
prompt_uninstall_nsis :
MessageBox MB_YESNO | MB_ICONINFORMATION "The previous version of StepMania must be uninstalled before continuing.$\nDo you wish to continue?" IDYES do_uninstall_nsis
Abort
2004-02-23 04:12:07 +00:00
2002-08-26 19:30:58 +00:00
do_uninstall_nsis :
2004-02-23 04:12:07 +00:00
GetTempFileName $R3
CopyFiles /SILENT $R1 $R3
ExecWait '$R3 $R2$INSTDIR' $R4
; Delete the copy of the installer.
Delete $R3
; $R4 is the exit value of the uninstaller. 0 means success, anything else is
; failure (eg. aborted).
IntCmp $R4 0 old_nsis_not_installed ; jump if 0
2004-02-23 04:23:34 +00:00
MessageBox MB_YESNO | MB_DEFBUTTON2 | MB_ICONINFORMATION "Uninstallation failed. Install anyway?" IDYES old_nsis_not_installed
2004-02-23 04:12:07 +00:00
Abort
2002-08-26 19:30:58 +00:00
old_nsis_not_installed :
2003-01-19 06:29:25 +00:00
; Check for DirectX 8.0 (to be moved to the right section later)
; We only use this for sound. Actually, I could probably make the sound
; work with an earlier one; I'm not sure if that's needed or not. For one
; thing, forcing people to upgrade drivers is somewhat of a good thing;
; but upgrading to DX8 if you really don't have to is also somewhat
; annoying, too ... -g
2002-08-23 20:06:23 +00:00
ReadRegStr $0 HKEY_LOCAL_MACHINE "Software\Microsoft\DirectX" "Version"
StrCpy $1 $0 2 2 ; 8.1 is "4.08.01.0810"
IntCmpU $1 8 check_subversion old_dx ok
check_subversion :
StrCpy $1 $0 2 5
2003-01-19 06:29:25 +00:00
IntCmpU $1 0 ok old_dx ok
2002-08-23 20:06:23 +00:00
2003-01-19 06:29:25 +00:00
; We can function without it (using WaveOut), so don't *require* this.
2002-08-23 20:06:23 +00:00
old_dx :
2004-02-23 04:31:35 +00:00
MessageBox MB_YESNO | MB_ICONINFORMATION "The latest version of DirectX (8.1 or higher) is strongly recommended.$\n Do you wish to visit Microsoft's site now?" IDNO ok
2002-08-23 20:06:23 +00:00
ExecShell "" "http://www.microsoft.com/directx/"
Abort
ok :
FunctionEnd
2002-08-26 19:30:58 +00:00
;
; The default install section
;
Section ""
; write out uninstaller
2002-08-23 20:06:23 +00:00
SetOutPath " $INSTDIR "
2004-02-23 04:42:52 +00:00
AllowSkipFiles off
2002-08-26 19:30:58 +00:00
SetOverwrite on
2004-02-23 04:12:07 +00:00
WriteUninstaller " $INSTDIR \uninstall.exe"
2002-08-26 19:30:58 +00:00
; add registry entries
2003-01-19 06:51:12 +00:00
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\StepMania\${PRODUCT_ID}" "" " $INSTDIR "
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_ID}" "DisplayName" "${PRODUCT_ID} (remove only)"
2004-02-23 04:12:07 +00:00
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_ID}" "UninstallString" '"$INSTDIR\uninstall.exe"'
2002-08-23 20:06:23 +00:00
2003-12-12 08:51:38 +00:00
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Applications\smpackage.exe\shell\open\command" "" '"$INSTDIR\Program\smpackage.exe" "%1"'
2003-02-11 21:09:14 +00:00
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\smzipfile" "" "SMZIP package"
2003-12-12 08:51:38 +00:00
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\smzipfile\DefaultIcon" "" " $INSTDIR \Program\smpackage.exe,0"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\smzipfile\shell\open\command" "" '"$INSTDIR\Program\smpackage.exe" "%1"'
2002-08-26 19:30:58 +00:00
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\.smzip" "" "smzipfile"
; Begin copying files
2002-08-23 20:06:23 +00:00
CreateDirectory " $INSTDIR \Announcers"
SetOutPath " $INSTDIR \Announcers"
2002-08-26 19:30:58 +00:00
File "Announcers\instructions.txt"
2002-08-23 20:06:23 +00:00
CreateDirectory " $INSTDIR \BGAnimations"
2002-08-26 19:30:58 +00:00
SetOutPath " $INSTDIR \BGAnimations"
File "BGAnimations\instructions.txt"
2002-08-23 20:06:23 +00:00
2002-08-26 19:30:58 +00:00
CreateDirectory " $INSTDIR \CDTitles"
SetOutPath " $INSTDIR \CDTitles"
2003-09-16 21:51:55 +00:00
File "CDTitles\Instructions.txt"
2002-08-23 20:06:23 +00:00
2003-09-25 05:24:49 +00:00
RMDir /r " $INSTDIR \Characters\default"
2003-10-09 00:12:36 +00:00
CreateDirectory " $INSTDIR \Characters\default"
2003-09-25 05:24:49 +00:00
SetOutPath " $INSTDIR \Characters"
File /r "Characters\default"
# File "Characters\instructions.txt"
2003-04-12 06:16:12 +00:00
2002-08-23 20:06:23 +00:00
CreateDirectory " $INSTDIR \Courses"
SetOutPath " $INSTDIR \Courses"
2002-08-26 19:30:58 +00:00
File "Courses\instructions.txt"
2003-04-12 06:16:12 +00:00
File /r "Courses\Samples"
2002-08-23 20:06:23 +00:00
2003-12-10 08:44:13 +00:00
CreateDirectory " $INSTDIR \Packages"
2003-12-13 06:58:30 +00:00
File "Packages\Instructions.txt"
2003-12-10 08:44:13 +00:00
2003-08-15 03:20:19 +00:00
RMDir /r " $INSTDIR \NoteSkins\common\default"
2002-10-21 02:15:06 +00:00
RMDir /r " $INSTDIR \NoteSkins\dance\MAX"
2003-02-06 07:32:57 +00:00
RMDir /r " $INSTDIR \NoteSkins\dance\default"
RMDir /r " $INSTDIR \NoteSkins\dance\flat"
RMDir /r " $INSTDIR \NoteSkins\dance\note"
2003-02-12 08:48:24 +00:00
RMDir /r " $INSTDIR \NoteSkins\dance\solo"
2002-08-26 19:30:58 +00:00
SetOutPath " $INSTDIR \NoteSkins"
File "NoteSkins\instructions.txt"
2003-08-15 03:20:19 +00:00
SetOutPath " $INSTDIR \NoteSkins\common"
File /r "NoteSkins\common\default"
2002-08-26 19:30:58 +00:00
SetOutPath " $INSTDIR \NoteSkins\dance"
2003-02-06 07:32:57 +00:00
File /r "NoteSkins\dance\default"
2003-02-10 05:30:12 +00:00
File /r "NoteSkins\dance\flat"
2003-02-06 07:32:57 +00:00
File /r "NoteSkins\dance\note"
2003-02-12 08:48:24 +00:00
File /r "NoteSkins\dance\solo"
2002-08-26 19:30:58 +00:00
2003-01-19 06:29:25 +00:00
SetOutPath " $INSTDIR \NoteSkins\pump"
2003-02-10 08:12:12 +00:00
File /r "NoteSkins\pump\Classic" ; what the heck, they're tiny
File /r "NoteSkins\pump\default"
2003-01-19 06:29:25 +00:00
2003-02-10 08:12:12 +00:00
; temporarily disabled--noteskin needs updating
;SetOutPath "$INSTDIR\NoteSkins\ez2"
;File /r "NoteSkins\ez2\original"
2003-01-19 06:29:25 +00:00
2003-02-10 08:12:12 +00:00
;SetOutPath "$INSTDIR\NoteSkins\para"
;File /r "NoteSkins\para\original"
2003-01-19 06:29:25 +00:00
2002-08-26 19:30:58 +00:00
CreateDirectory " $INSTDIR \RandomMovies"
SetOutPath " $INSTDIR \RandomMovies"
File "RandomMovies\instructions.txt"
2002-08-23 20:06:23 +00:00
CreateDirectory " $INSTDIR \Songs"
SetOutPath " $INSTDIR \Songs"
2003-09-16 21:51:55 +00:00
File "Songs\Instructions.txt"
2002-08-23 20:06:23 +00:00
2002-10-21 02:15:06 +00:00
RMDir /r " $INSTDIR \Themes\default"
2002-08-23 20:06:23 +00:00
CreateDirectory " $INSTDIR \Themes"
SetOutPath " $INSTDIR \Themes"
2002-08-26 19:30:58 +00:00
File "Themes\instructions.txt"
2002-08-23 20:06:23 +00:00
File /r "Themes\default"
CreateDirectory " $INSTDIR \Visualizations"
SetOutPath " $INSTDIR \Visualizations"
2002-08-26 19:30:58 +00:00
File "Visualizations\instructions.txt"
2002-08-23 20:06:23 +00:00
2004-05-25 07:55:17 +00:00
CreateDirectory " $INSTDIR \Docs"
SetOutPath " $INSTDIR \Docs"
File "Docs\ChangeLog.txt"
2003-04-19 17:53:10 +00:00
CreateDirectory " $INSTDIR \Data"
SetOutPath " $INSTDIR \Data"
File "Data\Translation.dat"
2003-05-18 22:40:08 +00:00
File "Data\AI.ini"
2003-07-15 23:36:11 +00:00
File "Data\Unlocks.dat"
2004-04-06 05:15:47 +00:00
File "Data\splash.png"
2003-04-19 17:53:10 +00:00
2003-12-12 08:51:38 +00:00
SetOutPath " $INSTDIR \Program"
File "Program\stepmania.exe"
File "Program\stepmania.vdi"
File "Program\smpackage.exe"
File "Program\msvcr70.dll"
File "Program\msvcp70.dll"
File "Program\jpeg.dll"
File "Program\avcodec.dll"
File "Program\avformat.dll"
File "Program\resample.dll"
File "Program\dbghelp.dll"
File "Program\zlib1.dll"
2002-12-20 19:55:15 +00:00
2004-05-26 04:44:51 +00:00
SetOverwrite off
SetOutPath " $INSTDIR \Data\MachineProfile"
2004-07-30 15:47:12 +00:00
File "Docs\Stats.xml"
2004-05-26 04:44:51 +00:00
SetOverwrite on
2003-12-12 08:51:38 +00:00
SetOutPath " $INSTDIR "
2004-06-08 06:54:16 +00:00
File "Docs\Copying.txt"
2003-02-12 06:23:33 +00:00
File "README-FIRST.html"
2002-09-09 05:22:02 +00:00
File "NEWS"
2003-01-08 04:16:39 +00:00
2002-10-02 21:34:20 +00:00
; What to do here? Better to just delete an existing INI than to
; drop the local one in ... -glenn
2002-10-08 21:57:48 +00:00
; Agreed. - Chris
2002-12-20 19:55:15 +00:00
; But we shouldn't delete, either, since that'll wipe peoples' prefs.
; Better to address upgrade problems than to make people nuke INI's.
; Maybe we should remove this for snapshot releases; that way we can
; track down problems with INI upgrades (and then possibly restore it
; for the release if we're not confident we've fixed most problems) -glenn
2003-01-08 04:16:39 +00:00
; Added message box to ask user. -Chris
2003-06-21 02:58:37 +00:00
; This is a silly check, because we force an uninstall and the installer
; removes stepmania.ini. -Chris
2003-01-08 04:16:39 +00:00
2003-06-21 02:58:37 +00:00
;IfFileExists "$INSTDIR\stepmania.ini" stepmania_ini_present
;IfFileExists "$INSTDIR\Data\stepmania.ini" stepmania_ini_present
;Goto stepmania_ini_not_present
;stepmania_ini_present:
;MessageBox MB_YESNO|MB_ICONQUESTION "Your settings from the previous installation of StepMania were found.$\nWould you like to keep these settings?" IDNO stepmania_ini_not_present
;Delete "$INSTDIR\Data\stepmania.ini"
;stepmania_ini_not_present:
;; Move ini into Data\
;Rename "$INSTDIR\Data\stepmania.ini" "$INSTDIR\stepmania.ini"
2002-08-26 19:30:58 +00:00
; Create Start Menu icons
2003-09-07 05:51:41 +00:00
SetShellVarContext current # 'all' doesn't work on Win9x
2003-01-19 06:51:12 +00:00
CreateDirectory " $SMPROGRAMS \${PRODUCT_ID}\"
2003-12-12 08:51:38 +00:00
CreateShortCut " $DESKTOP \Play ${PRODUCT_NAME_VER}.lnk" " $INSTDIR \Program\stepmania.exe"
CreateShortCut " $SMPROGRAMS \${PRODUCT_ID}\${PRODUCT_NAME_VER}.lnk" " $INSTDIR \Program\stepmania.exe"
2003-07-05 06:09:28 +00:00
CreateShortCut " $SMPROGRAMS \${PRODUCT_ID}\Open StepMania Program Folder.lnk" " $WINDIR \explorer.exe" " $INSTDIR \"
2004-07-30 15:47:12 +00:00
CreateShortCut " $SMPROGRAMS \${PRODUCT_ID}\View Machine Statistics.lnk" " $INSTDIR \Data\MachineProfile\Stats.xml"
2003-12-12 08:51:38 +00:00
CreateShortCut " $SMPROGRAMS \${PRODUCT_ID}\StepMania Tools and Package Exporter.lnk" " $INSTDIR \Program\smpackage.exe"
2003-02-12 06:23:33 +00:00
CreateShortCut " $SMPROGRAMS \${PRODUCT_ID}\README-FIRST.lnk" " $INSTDIR \README-FIRST.html"
2004-02-23 04:12:07 +00:00
CreateShortCut " $SMPROGRAMS \${PRODUCT_ID}\Uninstall ${PRODUCT_NAME_VER}.lnk" " $INSTDIR \uninstall.exe"
2003-01-19 06:51:12 +00:00
CreateShortCut " $SMPROGRAMS \${PRODUCT_ID}\Go To StepMania web site.lnk" "http://www.stepmania.com"
2002-08-26 19:30:58 +00:00
2003-12-12 09:01:47 +00:00
CreateShortCut " $INSTDIR \StepMania.lnk" " $INSTDIR \Program\stepmania.exe"
2003-12-12 08:53:44 +00:00
2003-09-16 22:49:11 +00:00
# We want to delete a few old desktop icons, since they weren't being
# uninstalled correctly during alpha 2 and 3. They were installed in
# the 'all' context. Try to delete them in both contexts.
SetShellVarContext all
Delete " $DESKTOP \Play StepMania 3.9 alpha 2.lnk"
Delete " $DESKTOP \Play StepMania 3.9 alpha 3.lnk"
SetShellVarContext current
Delete " $DESKTOP \Play StepMania 3.9 alpha 2.lnk"
Delete " $DESKTOP \Play StepMania 3.9 alpha 3.lnk"
2003-01-19 06:51:12 +00:00
Exec '$WINDIR\explorer.exe "$SMPROGRAMS\${PRODUCT_ID}\"'
2002-08-23 20:06:23 +00:00
SectionEnd ; end of default section
2002-08-26 19:30:58 +00:00
;
2002-08-23 20:06:23 +00:00
; begin uninstall settings/section
2002-08-26 19:30:58 +00:00
;
UninstallText "This will uninstall StepMania from your system.$\nAny add-on packs or songs you have installed will not be deleted."
2002-08-23 20:06:23 +00:00
Section Uninstall
2002-08-26 19:30:58 +00:00
2002-08-23 20:06:23 +00:00
; add delete commands to delete whatever files/registry keys/etc you installed here.
2004-02-23 04:12:07 +00:00
Delete " $INSTDIR \uninstall.exe"
2003-02-12 06:32:48 +00:00
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\StepMania\${PRODUCT_ID}"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_ID}"
2002-08-23 20:06:23 +00:00
2002-08-26 19:30:58 +00:00
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Applications\smpackage.exe\shell\open\command"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Classes\smzipfile"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Classes\.smzip"
2002-08-23 20:06:23 +00:00
2002-08-26 19:30:58 +00:00
Delete " $INSTDIR \Announcers\instructions.txt"
RMDir " $INSTDIR \Announcers"
2002-08-23 20:06:23 +00:00
2002-08-26 19:30:58 +00:00
Delete " $INSTDIR \BGAnimations\instructions.txt"
RMDir " $INSTDIR \BGAnimations"
2002-08-23 20:06:23 +00:00
2002-08-26 19:30:58 +00:00
Delete " $INSTDIR \Cache\instructions.txt"
2002-08-23 20:06:23 +00:00
RMDir " $INSTDIR \Cache"
2003-09-16 21:51:55 +00:00
Delete " $INSTDIR \CDTitles\Instructions.txt"
2002-08-26 19:30:58 +00:00
RMDir " $INSTDIR \CDTitles"
2003-10-09 00:12:36 +00:00
RMDir /r " $INSTDIR \Characters\default"
RMDir " $INSTDIR \Characters"
2003-04-12 06:16:12 +00:00
2003-01-19 06:29:25 +00:00
RMDir /r " $INSTDIR \Cache"
2002-08-26 19:30:58 +00:00
2003-12-10 08:44:13 +00:00
Delete " $INSTDIR \Packages\instructions.txt"
RMDir " $INSTDIR \Packages"
2002-08-26 19:30:58 +00:00
Delete " $INSTDIR \Courses\instructions.txt"
2003-04-20 01:52:49 +00:00
RMDir /r " $INSTDIR \Courses\Samples"
2002-08-23 20:06:23 +00:00
RMDir " $INSTDIR \Courses"
2002-08-26 19:30:58 +00:00
Delete " $INSTDIR \NoteSkins\instructions.txt"
2003-09-05 23:03:34 +00:00
RMDir /r " $INSTDIR \NoteSkins\common\default"
RMDir " $INSTDIR \NoteSkins\common"
2003-02-06 07:32:57 +00:00
RMDir /r " $INSTDIR \NoteSkins\dance\default"
RMDir /r " $INSTDIR \NoteSkins\dance\flat"
RMDir /r " $INSTDIR \NoteSkins\dance\note"
2003-02-12 08:48:24 +00:00
RMDir /r " $INSTDIR \NoteSkins\dance\solo"
2003-01-19 06:29:25 +00:00
RMDir " $INSTDIR \NoteSkins\dance"
RMDir /r " $INSTDIR \NoteSkins\pump\classic"
2003-02-12 08:48:24 +00:00
RMDir /r " $INSTDIR \NoteSkins\pump\default"
2003-01-19 06:29:25 +00:00
RMDir " $INSTDIR \NoteSkins\pump"
RMDir /r " $INSTDIR \NoteSkins\ez2\original"
RMDir " $INSTDIR \NoteSkins\ez2"
RMDir /r " $INSTDIR \NoteSkins\para\original"
RMDir " $INSTDIR \NoteSkins\para"
2002-08-26 19:30:58 +00:00
RMDir " $INSTDIR \NoteSkins"
2002-08-23 20:06:23 +00:00
2002-08-26 19:30:58 +00:00
Delete " $INSTDIR \RandomMovies\instructions.txt"
RMDir " $INSTDIR \RandomMovies"
2003-09-16 21:51:55 +00:00
Delete " $INSTDIR \Songs\Instructions.txt"
2002-08-26 19:30:58 +00:00
RMDir " $INSTDIR \Songs" ; will delete only if empty
Delete " $INSTDIR \Themes\instructions.txt"
2002-08-23 20:06:23 +00:00
RMDir /r " $INSTDIR \Themes\default"
RMDir " $INSTDIR \Themes"
2002-08-26 19:30:58 +00:00
Delete " $INSTDIR \Visualizations\instructions.txt"
2002-08-23 20:06:23 +00:00
RMDir " $INSTDIR \Visualizations"
2004-05-25 07:55:17 +00:00
Delete " $INSTDIR \Docs\ChangeLog.txt"
RMDir " $INSTDIR \Docs"
2003-04-19 17:59:26 +00:00
; Don't delete high scores.
2003-04-19 17:53:10 +00:00
Delete " $INSTDIR \Data\Translation.dat"
2003-05-18 22:40:08 +00:00
Delete " $INSTDIR \Data\AI.ini"
2003-04-19 17:59:26 +00:00
Delete " $INSTDIR \Data\stepmania.ini"
Delete " $INSTDIR \Data\Keymaps.ini"
Delete " $INSTDIR \Data\GamePrefs.ini"
2004-05-22 03:19:07 +00:00
Delete " $INSTDIR \Data\splash.png"
2003-04-19 17:53:10 +00:00
RMDir " $INSTDIR \Data"
2003-12-12 08:51:38 +00:00
Delete " $INSTDIR \Program\stepmania.exe"
Delete " $INSTDIR \Program\smpackage.exe"
Delete " $INSTDIR \Program\StepMania.vdi"
Delete " $INSTDIR \Program\msvcr70.dll"
Delete " $INSTDIR \Program\msvcp70.dll"
Delete " $INSTDIR \Program\jpeg.dll"
Delete " $INSTDIR \Program\avcodec.dll"
Delete " $INSTDIR \Program\avformat.dll"
Delete " $INSTDIR \Program\resample.dll"
Delete " $INSTDIR \Program\dbghelp.dll"
Delete " $INSTDIR \Program\zlib1.dll"
2004-02-14 22:02:40 +00:00
Delete " $INSTDIR \Program\lua.dll"
2004-05-26 04:44:51 +00:00
RMDir " $INSTDIR \Program"
; It's harmless to delete this, as long as we leave Stats.xml alone; it'll be rewritten
; by the program the next time it's run.
Delete " $INSTDIR \Data\MachineProfile\stats.html"
RMDir " $INSTDIR \Data\MachineProfile"
2002-08-23 20:06:23 +00:00
Delete " $INSTDIR \COPYING.txt"
2003-02-12 06:23:33 +00:00
Delete " $INSTDIR \README-FIRST.html"
2002-09-09 05:22:02 +00:00
Delete " $INSTDIR \NEWS"
2003-01-19 06:29:25 +00:00
Delete " $INSTDIR \log.txt"
2003-02-10 05:30:12 +00:00
Delete " $INSTDIR \info.txt"
2003-04-19 17:53:10 +00:00
Delete " $INSTDIR \crashinfo.txt"
2003-12-12 09:01:47 +00:00
Delete " $INSTDIR \StepMania.lnk"
2002-08-26 19:30:58 +00:00
RMDir " $INSTDIR " ; will delete only if empty
2003-09-16 22:49:11 +00:00
SetShellVarContext current
2003-09-04 20:50:14 +00:00
Delete " $DESKTOP \Play StepMania CVS.lnk"
2003-09-04 20:47:02 +00:00
Delete " $DESKTOP \Play ${PRODUCT_NAME_VER}.lnk"
2003-01-19 06:51:12 +00:00
; I'm being paranoid here:
Delete " $SMPROGRAMS \${PRODUCT_ID}\*.*"
RMDir " $SMPROGRAMS \${PRODUCT_ID}"
2002-08-23 20:06:23 +00:00
SectionEnd ; end of uninstall section
; eof