Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: devkitPro/installer
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.0.0
Choose a base ref
...
head repository: devkitPro/installer
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 6 commits
  • 2 files changed
  • 3 contributors

Commits on May 23, 2018

  1. Copy the full SHA
    42634c6 View commit details
  2. fix copypasta

    WinterMute committed May 23, 2018
    Copy the full SHA
    9bba6b2 View commit details

Commits on Jun 3, 2018

  1. Copy the full SHA
    2ba59cb View commit details

Commits on Jul 4, 2018

  1. Fix typo (#10)

    Fixed a typo and use https instead of http.
    Crayon2000 authored and WinterMute committed Jul 4, 2018
    Copy the full SHA
    1982d1a View commit details

Commits on Aug 26, 2020

  1. Copy the full SHA
    3d59e1e View commit details

Commits on Sep 11, 2023

  1. repair minor typos (#41)

    fix typos in description and uninstall dialogue
    EpochFlame authored Sep 11, 2023
    Copy the full SHA
    5d820f4 View commit details
Showing with 50 additions and 8 deletions.
  1. +3 −3 nsis/INIfiles/devkitProUpdate.ini
  2. +47 −5 nsis/devkitPro.nsi
6 changes: 3 additions & 3 deletions nsis/INIfiles/devkitProUpdate.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[devkitProUpdate]
Build=53
Build=56
URL=http://downloads.devkitpro.org
Filename=devkitProUpdater-3.0.0.exe
Filename=devkitProUpdater-3.0.3.exe

[msys2]
Version=2.10.0
File=msys-2.10.0.7z
File=msys-2.10.0.1.7z
Size=118660

[Settings]
52 changes: 47 additions & 5 deletions nsis/devkitPro.nsi
Original file line number Diff line number Diff line change
@@ -15,13 +15,13 @@ RequestExecutionLevel admin ;Require admin rights on NT6+ (When UAC is turned on

; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "devkitProUpdater"
!define PRODUCT_VERSION "3.0.0"
!define PRODUCT_VERSION "3.0.3"
!define PRODUCT_PUBLISHER "devkitPro"
!define PRODUCT_WEB_SITE "http://www.devkitpro.org"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
!define PRODUCT_STARTMENU_REGVAL "NSIS:StartMenuDir"
!define BUILD "53"
!define BUILD "56"

SetCompressor /SOLID lzma

@@ -32,6 +32,8 @@ SetCompressor /SOLID lzma
!include "InstallOptions.nsh"
!include "ReplaceInFile.nsh"
!include "NTProfiles.nsh"
!include LogicLib.nsh
!include x64.nsh

;${StrTok}
${StrRep}
@@ -182,6 +184,10 @@ Section "NDS Development" SecNDSDev
SectionEnd
Section "3DS Development" Sec3DSDev
SectionEnd
Section "GameCube Development" SecGameCubeDev
SectionEnd
Section "Wii Development" SecWiiDev
SectionEnd

Section -installComponents

@@ -273,6 +279,16 @@ SkipMsys:
push ${Sec3DSDev}
call updateGroup

push "GameCubeDev"
push "gamecube-dev"
push ${SecGameCubeDev}
call updateGroup

push "WiiDev"
push "wii-dev"
push ${SecWiiDev}
call updateGroup

push "SwitchDev"
push "switch-dev"
push ${SecSwitchDev}
@@ -342,9 +358,17 @@ Section Uninstall
ReadRegStr $1 HKLM "System\CurrentControlSet\Control\Session Manager\Environment" "PATH"
${UnStrRep} $1 $1 "$INSTDIR\msys\bin;" ""
${UnStrRep} $1 $1 "$INSTDIR\msys2\usr\bin;" ""

StrCmp $1 "" 0 ResetPath

MessageBox mb_IconStop|mb_TopMost|mb_SetForeground "Trying to set path to blank string!$\nPlease reset path manually"
goto BlankedPath

ResetPath:
WriteRegExpandStr HKLM "System\CurrentControlSet\Control\Session Manager\Environment" "PATH" $1
SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000

BlankedPath:
DeleteRegKey HKCR ".pnproj"
DeleteRegKey HKCR "PN2.pnproj.1\shell\open\command"
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
@@ -366,6 +390,8 @@ SectionEnd
!insertmacro MUI_DESCRIPTION_TEXT ${SecGP32Dev} "tools for GP32 development"
!insertmacro MUI_DESCRIPTION_TEXT ${SecNDSDev} "tools for NDS development"
!insertmacro MUI_DESCRIPTION_TEXT ${Sec3DSDev} "tools for 3DS development"
!insertmacro MUI_DESCRIPTION_TEXT ${SecGameCubeDev} "tools for GameCube development"
!insertmacro MUI_DESCRIPTION_TEXT ${SecWiiDev} "tools for Wii development"
!insertmacro MUI_FUNCTION_DESCRIPTION_END

var keepINI
@@ -374,6 +400,14 @@ var mirrorINI
;-----------------------------------------------------------------------------------------------------------------------
Function .onInit
;-----------------------------------------------------------------------------------------------------------------------

${If} ${RunningX64}
${Else}
MessageBox mb_IconStop|mb_TopMost|mb_SetForeground "Sorry, this installer only supports 64 bit."
Quit
${EndIf}


; test existing ini file version
; if lower than build then use built in ini
ifFileExists $EXEDIR\devkitProUpdate.ini +1 extractINI
@@ -480,6 +514,14 @@ installing:
push ${Sec3DSDev}
call checkEnabled

push "GameCubeDev"
push ${SecGameCubeDev}
call checkEnabled

push "WiiDev"
push ${SecWiiDev}
call checkEnabled

push "SwitchDev"
push ${SecSwitchDev}
call checkEnabled
@@ -628,15 +670,15 @@ Function un.onInit
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you sure you want to completely remove all devkitPro packages?" IDYES +2
Abort

MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are absolutely sure you want to do this?$\r$\nThis will remove the whole devkitPro folder and it's contents." IDYES +2
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you absolutely sure you want to do this?$\r$\nThis will remove the whole devkitPro folder and its contents." IDYES +2
Abort

FunctionEnd



;-----------------------------------------------------------------------------------------------------------------------
; Check for a newer version of the installer, download and ask the user if he wants to run it
; Check for a newer version of the installer, download and ask the user if they want to run it
;-----------------------------------------------------------------------------------------------------------------------
Function UpgradedevkitProUpdate
;-----------------------------------------------------------------------------------------------------------------------
@@ -821,7 +863,7 @@ FunctionEnd
;-----------------------------------------------------------------------------------------------------------------------
Function WhyDonate
;-----------------------------------------------------------------------------------------------------------------------
ExecShell "open" "http://devkitpro.org/support-devkitpro/"
ExecShell "open" "https://devkitpro.org/support-devkitpro/"
FunctionEnd

;-----------------------------------------------------------------------------------------------------------------------