From 393120ac58d2320bb2514d97e89a0ecf42d8e336 Mon Sep 17 00:00:00 2001 From: LoRd_MuldeR Date: Thu, 27 Oct 2022 22:06:17 +0200 Subject: [PATCH] Added post-install helper script for Win32 release. --- etc/utils/win32/post-install-helper/make.cmd | 6 ++ .../post-install-launcher.ico | Bin 0 -> 5430 bytes .../post-install-launcher.nsi | 67 ++++++++++++++++++ 3 files changed, 73 insertions(+) create mode 100644 etc/utils/win32/post-install-helper/make.cmd create mode 100644 etc/utils/win32/post-install-helper/post-install-launcher.ico create mode 100644 etc/utils/win32/post-install-helper/post-install-launcher.nsi diff --git a/etc/utils/win32/post-install-helper/make.cmd b/etc/utils/win32/post-install-helper/make.cmd new file mode 100644 index 0000000..08a397f --- /dev/null +++ b/etc/utils/win32/post-install-helper/make.cmd @@ -0,0 +1,6 @@ +@echo off +cd /d "%~dp0" +if exist "bin" rmdir /s /q "bin" +mkdir "bin" +"%NSIS3_HOME%\makensis.exe" /V4 /INPUTCHARSET UTF8 post-install-launcher.nsi +pause diff --git a/etc/utils/win32/post-install-helper/post-install-launcher.ico b/etc/utils/win32/post-install-helper/post-install-launcher.ico new file mode 100644 index 0000000000000000000000000000000000000000..65990a58a1d40e64fb3480c081d968ef47235626 GIT binary patch literal 5430 zcmcgw2UL_-79Lk~bkA8g?w;s5DJOb1#dczeAqoh?%z!8&7+A1vqF7=;28k_3kusoe z6eJ=l7ElzaN)v_|M5K4=h!p9BVgSM9*pmJB-hY^6mT02eF6ZOj_ilUd{_oxY{UZ{M z68%mzVSEXpC6W(2P^_pU`A79!Hor42mFnoA4~s z>Iv<8+f(CSH(F;SK2{CJgtr$+^meCald-Okx2Qjx9jbiHP!RYLN{?AU?iB!&s9s1z z?!cz}p#WJ(BNj)uLEp1L$@)ZZMei}bp;XBFh@Y42CB^sIyYWNz=eXj&1co8)uqt~3 zNqirq34K^z_89Erb)&U5Y#hBuoL(8R6}6Wfpi)Rsb#5j4)LZaCy&lv2+F@Dt15C&^ z``lgx?XoSFC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QtUx6gk0J;JcJt z$iEYYR2w1j&VuCY2H0I}#f&tHoesJgEaKLv-Yk-vH znDJFT-cb&0fj0>w z$Mu3*Fvm4MjpAtQ569-SASNt2<~Tn#KX5rZ5;vnYZj%PF8_<4r3+^|n(3%m5!ZRC? ze{v0KLssL%!wtw71Z-(eGSWQR!pS$e@Ud6fwy28*Z`-PP85)iVX`lThHN|d^ zr?t{LTdu69+&kb-^txfJ#hs{+(UKKJv5niv?)L;;8aLIgqD_zP({jIy=n7wkr6*g3 zScMet?JvvG8@UYTKG$L3TaVf9#ov&zHa7d2#B1l6jZvSVA@Y}Kj(0?1h$9ZHo4aC! zE!&SdxnZh(*%2|?!)j@sy08_fyJ%1CDm0PLJF!k^N!o#|qr&}Ox8{+#Xgq&g4K-iK zK!XYc^(wSy97gqdThv^zC#=9N%1P;ITf}=vyGef`VJczDaJ!JlSD}Lxca*=`EOC=i60{U0 z^qt2o_ivtB_7wb5kL}qH`y;;}5cvK6Yc!so&(O`Vt*8uLjiO^_C?pggw?O^Xebg=y z`bB|@QGCMUXB=NVtViFNf}Vv&k8Ifw`%BS0_uq;?Cec%(EWRj5PgNXB&e)=e;c94;NAWYsov0vh$x%UQLl7un74_&5-9Wq47`@o^urRSfB0K zp8Y7jOuC*kHpgcY=1?5!jNQ|2JZDe5NtU3h7mqkE!l?ok-u|!upF&+oR~Toq$rxN5&Cr-Mab`+4VEX z&-3J52>2ZT#`A9?-Bn5WraXZVFM#`*0rpR;YtP~Gg;c0c%92#x63}l*KZBmhh&;WJ zQ{bK$5RJw^M5B= 528040 ${|} Goto launch_application ${|} + ${Else} + DetailPrint ".NET Framework not found!" + ${Endif} + + !insertmacro PrintStatusMessage "Installing .NET Framework 4.8, please wait..." + ${Do} + ClearErrors + ${If} ${AtLeastBuild} 19042 + ExecShellWait /ALLOWERRORUI "runas" "$EXEDIR\ndp481-web.exe" /passive + ${Else} + ExecShellWait /ALLOWERRORUI "runas" "$EXEDIR\ndp48-web.exe" /passive + ${EndIf} + ${IfNot} ${Errors} + ${OrIf} ${Cmd} `MessageBox MB_ICONEXCLAMATION|MB_RETRYCANCEL|MB_TOPMOST "Failed to launch .NET Framework installer!" IDCANCEL` + ${ExitDo} + ${EndIf} + ${Loop} + +launch_application: + !insertmacro PrintStatusMessage "Launching the application, please wait..." + ${GetParent} $EXEDIR $1 + SetOutPath "$1" + ExecShell /ALLOWERRORUI "open" "$OUTDIR\slunkcrypt-gui.exe" +SectionEnd