Register default mods during installation on Windows.
This commit is contained in:
@@ -150,6 +150,16 @@ Section "Game" GAME
|
|||||||
${GetSize} "$INSTDIR" "/S=0K" $0 $1 $2
|
${GetSize} "$INSTDIR" "/S=0K" $0 $1 $2
|
||||||
IntFmt $0 "0x%08X" $0
|
IntFmt $0 "0x%08X" $0
|
||||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}" "EstimatedSize" "$0"
|
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}" "EstimatedSize" "$0"
|
||||||
|
|
||||||
|
SetShellVarContext all
|
||||||
|
CreateDirectory "$APPDATA\OpenRA\ModMetadata"
|
||||||
|
nsExec::ExecToLog '"$INSTDIR\OpenRA.Utility.exe" ra --register-mod "$INSTDIR\RedAlert.exe" system'
|
||||||
|
nsExec::ExecToLog '"$INSTDIR\OpenRA.Utility.exe" ra --clear-invalid-mod-registrations system'
|
||||||
|
nsExec::ExecToLog '"$INSTDIR\OpenRA.Utility.exe" cnc --register-mod "$INSTDIR\TiberianDawn.exe" system'
|
||||||
|
nsExec::ExecToLog '"$INSTDIR\OpenRA.Utility.exe" cnc --clear-invalid-mod-registrations system'
|
||||||
|
nsExec::ExecToLog '"$INSTDIR\OpenRA.Utility.exe" d2k --register-mod "$INSTDIR\Dune2000.exe" system'
|
||||||
|
nsExec::ExecToLog '"$INSTDIR\OpenRA.Utility.exe" d2k --clear-invalid-mod-registrations system'
|
||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section "Desktop Shortcut" DESKTOPSHORTCUT
|
Section "Desktop Shortcut" DESKTOPSHORTCUT
|
||||||
@@ -200,6 +210,10 @@ SectionEnd
|
|||||||
|
|
||||||
!macro Clean UN
|
!macro Clean UN
|
||||||
Function ${UN}Clean
|
Function ${UN}Clean
|
||||||
|
nsExec::ExecToLog '"$INSTDIR\OpenRA.Utility.exe" ra --unregister-mod system'
|
||||||
|
nsExec::ExecToLog '"$INSTDIR\OpenRA.Utility.exe" cnc --unregister-mod system'
|
||||||
|
nsExec::ExecToLog '"$INSTDIR\OpenRA.Utility.exe" d2k --unregister-mod system'
|
||||||
|
|
||||||
RMDir /r $INSTDIR\mods
|
RMDir /r $INSTDIR\mods
|
||||||
RMDir /r $INSTDIR\maps
|
RMDir /r $INSTDIR\maps
|
||||||
RMDir /r $INSTDIR\glsl
|
RMDir /r $INSTDIR\glsl
|
||||||
|
|||||||
Reference in New Issue
Block a user