Skip to content

Commit

Permalink
updated build.nsi making the installer and the "build yourself" proce…
Browse files Browse the repository at this point in the history
…sses more user-friendly
  • Loading branch information
ngdplnk committed Apr 8, 2024
1 parent 4aafd9e commit f079fd9
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions 3-launcher/build.nsi
Original file line number Diff line number Diff line change
@@ -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 "<TYPE THE ICON.ICO PATH HERE>"
!define LAUNCHER_PATH "<TYPE THE LAUNCHER.PYW PATH HERE>"

############################################################

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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit f079fd9

Please sign in to comment.