From f079fd9fb825dc3e9e41eea4b4cc671a926b6d90 Mon Sep 17 00:00:00 2001 From: ngdplnk Date: Mon, 8 Apr 2024 00:15:59 -0400 Subject: [PATCH] updated build.nsi making the installer and the "build yourself" processes more user-friendly --- 3-launcher/build.nsi | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/3-launcher/build.nsi b/3-launcher/build.nsi index 41e7a45..d1ea2c4 100644 --- a/3-launcher/build.nsi +++ b/3-launcher/build.nsi @@ -1,15 +1,22 @@ -!define APP_VERSION "1.1" -!define PRODUCT_VERSION "1.1.0.0" -!define APP_EDITOR "TLSoftware" - # FILL THIS WITH THE NEEDED PATHS !define ICON_PATH "" !define LAUNCHER_PATH "" +############################################################ + +Caption "SSTools4MC Installer" +UninstallCaption "SSTools4MC Uninstaller" +!define APP_VERSION "1.1" +!define PRODUCT_VERSION "1.1.0.0" +!define APP_EDITOR "TLSoftware" + Outfile "SSTools4MC_Launcher.exe" SetCompressor /SOLID lzma Icon "${ICON_PATH}" +SilentInstall silent +SilentUninstall silent + VIProductVersion "${PRODUCT_VERSION}" VIAddVersionKey "ProductName" "SSTools4MC Launcher" VIAddVersionKey "CompanyName" "TLSoftware" @@ -54,7 +61,7 @@ Section "MainSection" SEC01 WriteUninstaller "$INSTDIR\uninstaller.exe" # Show a message when the program is completely installed - MessageBox MB_YESNO "SSTools has been completely installed. Do you want to open it now?" IDYES runProgram + MessageBox MB_YESNO|MB_ICONINFORMATION "SSTools has been completely installed. Do you want to open it now?" IDYES runProgram # Don't run the program if the user clicked "No" Goto end @@ -91,6 +98,6 @@ Section "Uninstall" RMDir /r $APPDATA\TLSoftware\SSTools4MC # Show a message when the program is completely uninstalled - MessageBox MB_OK "SSTools4MC has been completely uninstalled." + MessageBox MB_OK|MB_ICONINFORMATION "SSTools4MC has been completely uninstalled." SectionEnd \ No newline at end of file