Created
October 11, 2020 19:32
-
-
Save jasonw4331/7f7b03f26fc08994807933047d2c199e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!include MUI2.nsh | |
!include LogicLib.nsh | |
!include x64.nsh | |
BrandingText "https://pmmp.io" | |
InstallDir "$EXEDIR\PocketMine-MP" | |
Name "PocketMine-MP" | |
OutFile "PocketMine-MP.exe" | |
RequestExecutionLevel "user" | |
SpaceTexts "none" | |
ShowInstDetails "nevershow" | |
Function createshortcut | |
CreateShortcut "$DESKTOP\PocketMine-MP.lnk" "$INSTDIR\start.cmd" "" $EXEFILE 0 | |
FunctionEnd | |
Function .onInit | |
${IfNot} ${RunningX64} | |
MessageBox MB_OK "PocketMine-MP is no longer supported on 32-bit systems." | |
Abort | |
${EndIf} | |
FunctionEnd | |
!define MUI_WELCOMEFINISHPAGE_BITMAP "welcome-finish.bmp" | |
!define MUI_ABORTWARNING | |
!define MUI_FINISHPAGE_RUN "start.cmd" | |
!define MUI_FINISHPAGE_RUN_TEXT "Run PocketMine-MP" | |
!define MUI_FINISHPAGE_SHOWREADME | |
!define MUI_FINISHPAGE_SHOWREADME_TEXT "Create Desktop Shortcut" | |
!define MUI_FINISHPAGE_SHOWREADME_FUNCTION createshortcut | |
!define MUI_WELCOMEPAGE_TITLE "Welcome to the PocketMine-MP Installation Wizard" | |
!define MUI_FINISHPAGE_TITLE "Complete PocketMine-MP Setup" | |
!define MUI_ICON "icon.ico" | |
!insertmacro MUI_PAGE_WELCOME | |
!insertmacro MUI_PAGE_DIRECTORY | |
!insertmacro MUI_PAGE_INSTFILES | |
!insertmacro MUI_PAGE_FINISH | |
!insertmacro MUI_LANGUAGE "English" | |
Section "Install" | |
SetOutPath $INSTDIR | |
SetDetailsPrint none | |
inetc::get /NOCANCEL https://jenkins.pmmp.io/job/PocketMine-MP/Stable/artifact/PocketMine-MP.phar PocketMine-MP.phar | |
inetc::get /NOCANCEL https://gist.githubusercontent.com/jasonwynn10/f3e8cdb10f0fc39c17835a4c1c2c0538/raw/96512ac4e8ef6b8e91374ac841bbe0a8bba954a2/start.cmd start.cmd | |
inetc::get /NOCANCEL https://gist.githubusercontent.com/jasonwynn10/f3e8cdb10f0fc39c17835a4c1c2c0538/raw/96512ac4e8ef6b8e91374ac841bbe0a8bba954a2/start.ps1 start.ps1 | |
inetc::get /NOCANCEL https://raw.githubusercontent.com/pmmp/PocketMine-MP/stable/LICENSE LICENSE | |
inetc::get /NOCANCEL https://raw.githubusercontent.com/pmmp/PocketMine-MP/stable/README.md README.md | |
inetc::get /NOCANCEL https://raw.githubusercontent.com/pmmp/PocketMine-MP/stable/CONTRIBUTING.md CONTRIBUTING.md | |
inetc::get /NOCANCEL https://jenkins.pmmp.io/job/PHP-7.3-Aggregate/lastSuccessfulBuild/artifact/PHP-7.3-Windows-x64.zip Windows.zip | |
ZipDLL::extractall Windows.zip . | |
ExecWait '"vc_redist.x64.exe" /install /passive /norestart' | |
Delete "vc_redist.x64.exe" | |
Delete "Windows.zip" | |
SectionEnd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment