From 95f608e8f201f82054235e0252a9601a810168b6 Mon Sep 17 00:00:00 2001 From: Nick Blakely Date: Sun, 9 Aug 2020 22:26:15 -0700 Subject: [PATCH] Add GPatch script. --- .gitignore | 6 ++- GPatch/GPatch.ico | Bin 0 -> 2238 bytes GPatch/GPatch.nsi | 122 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 127 insertions(+), 1 deletion(-) create mode 100644 GPatch/GPatch.ico create mode 100644 GPatch/GPatch.nsi diff --git a/.gitignore b/.gitignore index 5f99c1f..ea7a383 100644 --- a/.gitignore +++ b/.gitignore @@ -339,4 +339,8 @@ ASALocalRun/ .localhistory/ # BeatPulse healthcheck temp database -healthchecksdb \ No newline at end of file +healthchecksdb + +#GPatch +GPatch/Files +GPatch/Launcher \ No newline at end of file diff --git a/GPatch/GPatch.ico b/GPatch/GPatch.ico new file mode 100644 index 0000000000000000000000000000000000000000..012e6a834aa076522ce14dc8f9e70ec0d1235b2f GIT binary patch literal 2238 zcmc(gdstOv7KdLj6;nhm!l*c&&=N11*JjAllq9JXyd)|r3Zsyi;;2n#P6~)17+|C+ zCTNHm38JEaSb?Izlnur;4Y`;Q7b7bX;he8^EFKSFfA^i|x7XUgcYSN`v-kHs8;s)QHndF0?}pBS&^Ga=@hLZrB#$yNK`uUbm&A{ zQL9Kb>pd-6trlHtE2>4LTDaGI4{b{`^*=Pz+lQ*%RlRgrU}io${_ z$t%hJv6AAuES!a1{uf`WYVFMmz;S6?dm zo5Wtpqe+*G?$=y2+jA)_&LQ_=4o!8JIGK`7W>ywK*_pJe&(YmE$K|u7<(B3{ublefj%Hug-8qcA_@r3P+Bjs2u8{=Y$i;0DavE*NgVbVJX*tdT_J7S_a zurHcf8}_p4$OpW+WjA|vMG+Md$$O%>&`8E?j=(n}obVlCBqxOu78JsW&|tzsg4q!q zOz3vW1GlryD~K011aLmzpP`HV3EH@Y>iSLicy3~-`v#&C)^p_0di*!8!_{LgqXYbi zjbDS`s@L%l^|V_>K!`7I`}$(!wTQ%YcbUHs+mZ9}8s^5STs~Mr%V4KvUvv6Qewvh8#}3e3kr1}GEHP8?FaOhyvO}^&|RW_{~PJM-Vd_&^n1F~u-|=QTPO2@ z@wcK;uD{NBaNaRna8kW=>Aks5?R}ennE!4(KL1lSGk)KaN$t7wu8V0S$B%bIXaS-)lT8(*G%Ygh-YhQ6u%&zuY0^v=e0+fFBr?}(N8tkruz z=d;Bd{yQ)H!ud{EDQk^e9tV_0V{@H{Jr$*fR5MW~+P}@Uhs;;15S|m@xl`IaWK6jX zPl|t~M%tU2nszLiaG_FvU5B5`uvQkz#-zJJMQ^40)c(Y9rBc3+<8@`$tGBhSL4lij)SXCqMI@Snhrg{I+al`55z;5B`Fk7{MR4xqrky5~&%WDUU{*gyt-Tm+F6wA`C)KC8~%#f3`@?w_mIzJXv zl{S8(l*tDnhFEp=2|Sl~rZA@@R1L0^*Pj}6*w~<;dzVMLKJn}e3Hd#DDHU@Ag1$av zfF-pW*f*-%;Eey5(R6(3fV9l|i1u90a%Zc5m^c+H literal 0 HcmV?d00001 diff --git a/GPatch/GPatch.nsi b/GPatch/GPatch.nsi new file mode 100644 index 0000000..bb45cb7 --- /dev/null +++ b/GPatch/GPatch.nsi @@ -0,0 +1,122 @@ +SetCompressor /SOLID lzma + +!define PRODUCT_NAME "Giants: Citizen Kabuto" +!define PRODUCT_VERSION "1.498" + +; MUI 1.67 compatible ------ +!include "MUI.nsh" + +; MUI Settings +!define MUI_ABORTWARNING +!define MUI_ICON "GPatch.ico" + +; Welcome page +;!insertmacro MUI_PAGE_WELCOME +; Directory page +!insertmacro MUI_PAGE_DIRECTORY +; Instfiles page +!insertmacro MUI_PAGE_INSTFILES +; Finish page +;!define MUI_FINISHPAGE_SHOWREADME $INSTDIR\readme.txt + +!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED +!insertmacro MUI_PAGE_FINISH + +!define MUI_LANGDLL_REGISTRY_ROOT "HKCU" +!define MUI_LANGDLL_REGISTRY_KEY "Software\PlanetMoon\Giants" +!define MUI_LANGDLL_REGISTRY_VALUENAME "SetupLanguage" + +; Language files +!insertmacro MUI_LANGUAGE "English" +!insertmacro MUI_LANGUAGE "French" +!insertmacro MUI_LANGUAGE "German" +!insertmacro MUI_LANGUAGE "Italian" +!insertmacro MUI_LANGUAGE "Spanish" + +; Language selection settings +!define MUI_LANGDLL_WINDOWTITLE "Setup Language" + +; Language strings +LangString AskInstallGSA ${LANG_ENGLISH} "The GameSpy Arcade gaming service supports multiplayer matchmaking for Giants: Citizen Kabuto. Find buddies, download patches, and chat with new opponents online. Install GameSpy Arcade?" +LangString AskInstallGSA ${LANG_FRENCH} "Le service de jeu GameSpy Arcade gčre désormais les parties multijoueurs de Giants: Citizen Kabuto. Trouvez des amis, téléchargez des patchs et discustez avec de nouveaux adversaires en ligne. Installer GameSpy Arcade ?" +LangString AskInstallGSA ${LANG_GERMAN} "Der 'GameSpy Arcade Gaming Service' unterstützt Multiplayer-Matchmaking für Giants: Citizen Kabuto. Finde Freunde, lade Patches herunter und chatte online mit neuen Gegnern. GameSpy Arcade installieren?" +LangString AskInstallGSA ${LANG_SPANISH} "Ahora, el servicio de juegos de GameSpy Arcade acepta las partidas multijugador de Giants: Citizen Kabuto. Busca amigos, descarga parches y charla con nuevos rivales conectados. żDeseas instalar GameSpy Arcade?" +LangString AskInstallGSA ${LANG_ITALIAN} "Il servizio giochi di GameSpy Arcade supporta l'abbinamento di piů giocatori per Giants: Cittadino Kabuto. Trova amici, scarica le patch e chatta coi nuovi avversari online. Installare GameSpy Arcade?" + +!include LogicLib.nsh + +; MUI end ------ + +Name "${PRODUCT_NAME} ${PRODUCT_VERSION}" +OutFile "GPatch1_498_177_0.exe" +InstallDir "$PROGRAMFILES\Giants\" +InstallDirRegKey HKCU "SOFTWARE\PlanetMoon\Giants" "DestDir" +ShowInstDetails hide + +;Request application privileges for Windows Vista+ +RequestExecutionLevel admin + +Section + SetDetailsView hide + SectionIn RO + SetOverwrite on + + ; Install DX redist for DX9 renderer + SetOutPath "$INSTDIR\Redist" + File /r "Files\Redist\*.*" + ExecWait "$INSTDIR\Redist\dxsetup.exe /silent" $0 + + ${If} $0 != 0 + MessageBox MB_OK "Setup failed to update DirectX ($0). Please visit www.microsoft.com and download the latest version of the DirectX end user redistributable." + RMDir /r "$INSTDIR\Redist" ; Delete temporary files + ;return + ${Else} + RMDir /r "$INSTDIR\Redist" ; Delete temporary files + ${EndIf} + + ; Delete old files + Delete $INSTDIR\bin\Shaders\*.* + Delete $INSTDIR\gg_dx7r.dll + Delete $INSTDIR\gg_dx8r.dll + Delete $INSTDIR\Giants.exe + Delete $INSTDIR\*.vso + Delete $INSTDIR\*.pso + + SetOutPath "$INSTDIR" + File /r "Files\*.*" + + ; remove old mods (may have compatibility issues) + Delete $INSTDIR\bin\worldlist2.bin + Delete $INSTDIR\bin\worldlist3.bin + Delete $INSTDIR\bin\worldlist4.bin + Delete $INSTDIR\bin\worldlist5.bin + Delete $INSTDIR\bin\mappack1.gzp + Delete $INSTDIR\bin\A-GRM1.gzp + + +SectionEnd + +!define NETVersion "3.5" +!define NETInstaller "dotnetfx35setup.exe" +Section "MS .NET Framework v${NETVersion}" SecFramework + IfFileExists "$WINDIR\Microsoft.NET\Framework\v${NETVersion}" NETFrameworkInstalled 0 + File /oname=$TEMP\${NETInstaller} "Files\Redist\${NETInstaller}" + + DetailPrint "Starting Microsoft .NET Framework v${NETVersion} Setup..." + ExecWait "$TEMP\${NETInstaller}" + Return + + NETFrameworkInstalled: + DetailPrint "Microsoft .NET Framework is already installed!" +SectionEnd + +;-------------------------------- +;Installer Functions + +Function .onInit + + !insertmacro MUI_LANGDLL_DISPLAY + +FunctionEnd + +;-------------------------------- \ No newline at end of file