mirror of
https://github.com/etlegacy/etlegacy-tools.git
synced 2024-11-21 19:41:37 +00:00
general windows: dedicated added/fs_game set refs #39
This commit is contained in:
parent
1141eb6120
commit
1fe18095f4
1 changed files with 9 additions and 4 deletions
|
@ -7,9 +7,9 @@ Name "Wolfenstein ET: Legacy"
|
||||||
|
|
||||||
# FIXME/TODO
|
# FIXME/TODO
|
||||||
#
|
#
|
||||||
# add etlded to windows menu
|
# add etlded to windows menu (done/feedback)
|
||||||
# rename this "ET: L" in installer options to ET:Legacy V2.70
|
# rename this "ET: L" in installer options to ET:Legacy V2.70
|
||||||
# add +set fs_game legacy to etl and etlded
|
# add +set fs_game legacy to etl and etlded (done/feedback)
|
||||||
# add option to set fs_hompath
|
# add option to set fs_hompath
|
||||||
# add options to complete install (missing genuine files)
|
# add options to complete install (missing genuine files)
|
||||||
# - do a search for installed W:ET and get the files from
|
# - do a search for installed W:ET and get the files from
|
||||||
|
@ -148,7 +148,8 @@ Function Download
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
Function finishpageaction
|
Function finishpageaction
|
||||||
CreateShortcut "$DESKTOP\ET Legacy.lnk" "$INSTDIR\etl.exe" "" "$INSTDIR\wolfet.ico"
|
CreateShortcut "$DESKTOP\ET Legacy.lnk" "$INSTDIR\etl.exe" "+set fs_game legacy" "$INSTDIR\wolfet.ico"
|
||||||
|
CreateShortcut "$DESKTOP\ET Legacy dedicated.lnk" "$INSTDIR\etlded.exe" "+set fs_game legacy" "$INSTDIR\wolfet.ico"
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
Section -post PostInstall
|
Section -post PostInstall
|
||||||
|
@ -159,7 +160,9 @@ Section -post PostInstall
|
||||||
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
|
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
|
||||||
SetOutPath $SMPROGRAMS\$StartMenuGroup
|
SetOutPath $SMPROGRAMS\$StartMenuGroup
|
||||||
;CreateShortcut "$SMPROGRAMS\$StartMenuGroup\$(^UninstallLink).lnk" $INSTDIR\uninstall.exe
|
;CreateShortcut "$SMPROGRAMS\$StartMenuGroup\$(^UninstallLink).lnk" $INSTDIR\uninstall.exe
|
||||||
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\ET Legacy.lnk" "$INSTDIR\etl.exe" "" "$INSTDIR\wolfet.ico"
|
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\ET Legacy.lnk" "$INSTDIR\etl.exe" "+set fs_game legacy" "$INSTDIR\wolfet.ico"
|
||||||
|
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\ET Legacy dedicated.lnk" "$INSTDIR\etlded.exe" "+set fs_game legacy" "$INSTDIR\wolfet.ico"
|
||||||
|
|
||||||
!insertmacro MUI_STARTMENU_WRITE_END
|
!insertmacro MUI_STARTMENU_WRITE_END
|
||||||
WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayName "$(^Name)"
|
WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayName "$(^Name)"
|
||||||
WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayVersion "${VERSION}"
|
WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayVersion "${VERSION}"
|
||||||
|
@ -187,6 +190,7 @@ done${UNSECTION_ID}:
|
||||||
# Uninstaller sections
|
# Uninstaller sections
|
||||||
Section /o -un.ET:L UNMainProgram
|
Section /o -un.ET:L UNMainProgram
|
||||||
Delete /REBOOTOK "$DESKTOP\ET Legacy.lnk"
|
Delete /REBOOTOK "$DESKTOP\ET Legacy.lnk"
|
||||||
|
Delete /REBOOTOK "$DESKTOP\ET Legacy dedicated.lnk"
|
||||||
|
|
||||||
#etmain
|
#etmain
|
||||||
Delete /REBOOTOK $INSTDIR\etmain\etl_server.cfg
|
Delete /REBOOTOK $INSTDIR\etmain\etl_server.cfg
|
||||||
|
@ -220,6 +224,7 @@ Section -un.post UNPostInstall
|
||||||
DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)"
|
DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)"
|
||||||
;Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\$(^UninstallLink).lnk"
|
;Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\$(^UninstallLink).lnk"
|
||||||
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\ET Legacy.lnk"
|
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\ET Legacy.lnk"
|
||||||
|
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\ET Legacy dedicated.lnk"
|
||||||
RmDir /REBOOTOK "$SMPROGRAMS\$StartMenuGroup"
|
RmDir /REBOOTOK "$SMPROGRAMS\$StartMenuGroup"
|
||||||
Delete /REBOOTOK $INSTDIR\uninstall.exe
|
Delete /REBOOTOK $INSTDIR\uninstall.exe
|
||||||
DeleteRegValue HKLM "${REGKEY}" StartMenuGroup
|
DeleteRegValue HKLM "${REGKEY}" StartMenuGroup
|
||||||
|
|
Loading…
Reference in a new issue