installer update; make the SMURL registry thing have its own switch
This commit is contained in:
+14
-3
@@ -225,12 +225,13 @@ Section "Main Section" SecMain
|
|||||||
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\smzipfile\DefaultIcon" "" "$INSTDIR\Program\StepMania.exe,1"
|
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\smzipfile\DefaultIcon" "" "$INSTDIR\Program\StepMania.exe,1"
|
||||||
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\smzipfile\shell\open\command" "" '"$INSTDIR\Program\StepMania.exe" "%1"'
|
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\smzipfile\shell\open\command" "" '"$INSTDIR\Program\StepMania.exe" "%1"'
|
||||||
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\.smzip" "" "smzipfile"
|
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\.smzip" "" "smzipfile"
|
||||||
|
!endif
|
||||||
|
|
||||||
; url protocol handler
|
!ifdef ASSOCIATE_SMURL
|
||||||
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\stepmania" "" "StepMania protocol handler"
|
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\stepmania" "" "StepMania protocol handler"
|
||||||
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\stepmania" "URL Protocol" ""
|
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\stepmania" "URL Protocol" ""
|
||||||
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\stepmania\DefaultIcon" "" "$INSTDIR\Program\${PRODUCT_FAMILY}.exe"
|
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\stepmania\DefaultIcon" "" "$INSTDIR\Program\StepMania.exe"
|
||||||
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\stepmania\shell\open\command" "" '"$INSTDIR\Program\${PRODUCT_FAMILY}.exe" "%1"'
|
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\stepmania\shell\open\command" "" '"$INSTDIR\Program\StepMania.exe" "%1"'
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
!ifdef INSTALL_NON_PCK_FILES
|
!ifdef INSTALL_NON_PCK_FILES
|
||||||
@@ -395,6 +396,9 @@ Section "Main Section" SecMain
|
|||||||
!ifdef ASSOCIATE_SMZIP
|
!ifdef ASSOCIATE_SMZIP
|
||||||
Call RefreshShellIcons
|
Call RefreshShellIcons
|
||||||
!endif
|
!endif
|
||||||
|
!ifdef ASSOCIATE_SMURL
|
||||||
|
Call RefreshShellIcons
|
||||||
|
!endif
|
||||||
!ifdef INSTALL_PROGRAM_LIBRARIES
|
!ifdef INSTALL_PROGRAM_LIBRARIES
|
||||||
; microsoft!
|
; microsoft!
|
||||||
; xxx: how many of these do we really need?
|
; xxx: how many of these do we really need?
|
||||||
@@ -680,6 +684,10 @@ Section "Uninstall"
|
|||||||
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Classes\.smzip"
|
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Classes\.smzip"
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
|
!ifdef ASSOCIATE_SMURL
|
||||||
|
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Classes\stepmania"
|
||||||
|
!endif
|
||||||
|
|
||||||
!ifdef INSTALL_NON_PCK_FILES
|
!ifdef INSTALL_NON_PCK_FILES
|
||||||
Delete "$INSTDIR\Announcers\instructions.txt"
|
Delete "$INSTDIR\Announcers\instructions.txt"
|
||||||
RMDir "$INSTDIR\Announcers"
|
RMDir "$INSTDIR\Announcers"
|
||||||
@@ -771,6 +779,9 @@ Section "Uninstall"
|
|||||||
!ifdef ASSOCIATE_SMZIP
|
!ifdef ASSOCIATE_SMZIP
|
||||||
Call un.RefreshShellIcons
|
Call un.RefreshShellIcons
|
||||||
!endif
|
!endif
|
||||||
|
!ifdef ASSOCIATE_SMURL
|
||||||
|
Call un.RefreshShellIcons
|
||||||
|
!endif
|
||||||
!ifdef INSTALL_PROGRAM_LIBRARIES
|
!ifdef INSTALL_PROGRAM_LIBRARIES
|
||||||
Delete "$INSTDIR\Program\mfc71.dll"
|
Delete "$INSTDIR\Program\mfc71.dll"
|
||||||
Delete "$INSTDIR\Program\msvcr71.dll"
|
Delete "$INSTDIR\Program\msvcr71.dll"
|
||||||
|
|||||||
+2
-1
@@ -17,7 +17,8 @@
|
|||||||
!define INSTALL_PROGRAM_LIBRARIES
|
!define INSTALL_PROGRAM_LIBRARIES
|
||||||
!define INSTALL_EXECUTABLES
|
!define INSTALL_EXECUTABLES
|
||||||
!define INSTALL_NON_PCK_FILES
|
!define INSTALL_NON_PCK_FILES
|
||||||
;!define ASSOCIATE_SMZIP
|
!define ASSOCIATE_SMZIP
|
||||||
|
!define ASSOCIATE_SMURL
|
||||||
;!define SHOW_AUTORUN
|
;!define SHOW_AUTORUN
|
||||||
!define MAKE_OPEN_PROGRAM_FOLDER_SHORTCUT
|
!define MAKE_OPEN_PROGRAM_FOLDER_SHORTCUT
|
||||||
!define MAKE_OPEN_SETTINGS_FOLDER_SHORTCUT
|
!define MAKE_OPEN_SETTINGS_FOLDER_SHORTCUT
|
||||||
|
|||||||
Reference in New Issue
Block a user