From a2b2fae204f887df570040d08a3b86d34253128e Mon Sep 17 00:00:00 2001 From: Nick Blakely Date: Sat, 31 Oct 2020 16:52:27 -0700 Subject: [PATCH] Null check in updater and fix AV false positives. --- GPatch/GPatch.nsi | 6 +-- Giants.Launcher/Giants.Launcher.csproj | 2 +- Giants.Launcher/Updater/Updater.cs | 2 +- GiantsTools.sln | 12 ++---- Shaders/Shaders.vcxproj | 54 +++++++++++++------------- 5 files changed, 37 insertions(+), 39 deletions(-) diff --git a/GPatch/GPatch.nsi b/GPatch/GPatch.nsi index d074ca8..66e85c8 100644 --- a/GPatch/GPatch.nsi +++ b/GPatch/GPatch.nsi @@ -1,5 +1,5 @@ Unicode True -SetCompressor /SOLID lzma +SetCompressor /SOLID zlib ; LZMA compresses about 20% better but is more likely to trigger AV false positives !define PRODUCT_NAME "Giants: Citizen Kabuto" !define PRODUCT_VERSION "1.498" @@ -42,7 +42,7 @@ SetCompressor /SOLID lzma ; MUI end ------ Name "${PRODUCT_NAME} ${PRODUCT_VERSION}" -OutFile "Output\GPatch1_498_224_0.exe" +OutFile "Output\GPatch1_498_224_1.exe" InstallDir "$PROGRAMFILES\Giants\" InstallDirRegKey HKCU "SOFTWARE\PlanetMoon\Giants" "DestDir" ShowInstDetails hide @@ -67,7 +67,7 @@ Section 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." ${EndIf} - ExecWait "$INSTDIR\Redist\VC_redist.x86.exe /install /passive /norestart" $0 + ExecWait "$INSTDIR\Redist\VC_redist.x86.exe /install /quiet /norestart /log $\"$Temp\GPatch_VCRedist.txt$\"" $0 ${If} $0 != 0 ${AndIf} $0 != 1638 ;0x666 - Newer version installed MessageBox MB_OK "Setup failed to install the Visual C++ Runtime. Please visit www.microsoft.com and download the latest version of the Visual C++ 2019 redistributable." diff --git a/Giants.Launcher/Giants.Launcher.csproj b/Giants.Launcher/Giants.Launcher.csproj index 7d7faf6..1388f0d 100644 --- a/Giants.Launcher/Giants.Launcher.csproj +++ b/Giants.Launcher/Giants.Launcher.csproj @@ -213,7 +213,7 @@ - xcopy /DY "$(TargetPath)" "$(GIANTS_PATH)\$(TargetFileName)*" + xcopy /DY "$(TargetPath)" "$(GIANTS_PATH)\$(TargetFileName)*"