fix Start Menu shortcuts in Win9x (SetShellVarContext current doesn't work in 9x)
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
!define PRODUCT_NAME "StepMania"
|
||||
!define PRODUCT_VER "3.9 random build"
|
||||
// !define PRODUCT_VER "3.9 alpha 4b"
|
||||
# !define PRODUCT_VER "3.9 alpha 4b"
|
||||
!define PRODUCT_NAME_VER "${PRODUCT_NAME} ${PRODUCT_VER}"
|
||||
|
||||
; String used for the install directory and registry locations
|
||||
|
||||
@@ -235,7 +235,7 @@ File "smpackage.exe"
|
||||
;Rename "$INSTDIR\Data\stepmania.ini" "$INSTDIR\stepmania.ini"
|
||||
|
||||
; Create Start Menu icons
|
||||
SetShellVarContext all ; install in "All Users" if NT
|
||||
SetShellVarContext current # 'all' doesn't work on Win9x
|
||||
CreateDirectory "$SMPROGRAMS\${PRODUCT_ID}\"
|
||||
CreateShortCut "$DESKTOP\Play ${PRODUCT_NAME_VER}.lnk" "$INSTDIR\stepmania.exe"
|
||||
CreateShortCut "$SMPROGRAMS\${PRODUCT_ID}\${PRODUCT_NAME_VER}.lnk" "$INSTDIR\stepmania.exe"
|
||||
|
||||
Reference in New Issue
Block a user