-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
190 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@echo off | ||
jlink.exe -v --add-modules java.base,java.logging,java.management,java.naming,java.security.jgss,java.sql,java.xml --output c:\Users\brian\src\json-roller\jre --strip-debug --compress 2 --no-header-files --no-man-pages | ||
pause |
This file contains 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
This file contains 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
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
;NSIS Modern User Interface | ||
;Basic Example Script | ||
;Written by Joost Verburg | ||
|
||
;-------------------------------- | ||
;Include Modern UI | ||
|
||
!include "MUI2.nsh" | ||
|
||
!include "EnvVarUpdate.nsh" | ||
|
||
;-------------------------------- | ||
;General | ||
|
||
;Name and file | ||
Name "json-roller" | ||
|
||
;Default installation folder | ||
InstallDir "$PROGRAMFILES\json-roller" | ||
|
||
;Get installation folder from registry if available | ||
InstallDirRegKey HKCU "Software\json-roller" "" | ||
|
||
;Request application privileges for Windows Vista | ||
RequestExecutionLevel admin | ||
|
||
!define REG_UNINSTALL "Software\Microsoft\Windows\CurrentVersion\Uninstall\json-roller" | ||
|
||
;-------------------------------- | ||
;Interface Settings | ||
|
||
!define MUI_ABORTWARNING | ||
|
||
;-------------------------------- | ||
;Pages | ||
|
||
!insertmacro MUI_PAGE_COMPONENTS | ||
!insertmacro MUI_PAGE_DIRECTORY | ||
!insertmacro MUI_PAGE_INSTFILES | ||
|
||
!insertmacro MUI_UNPAGE_CONFIRM | ||
!insertmacro MUI_UNPAGE_INSTFILES | ||
|
||
|
||
;-------------------------------- | ||
;Languages | ||
|
||
!insertmacro MUI_LANGUAGE "English" | ||
|
||
;-------------------------------- | ||
;Installer Sections | ||
|
||
Section "json-roller" Main | ||
SectionIn RO | ||
WriteRegStr HKLM "${REG_UNINSTALL}" "DisplayName" "JSON Roller" | ||
WriteRegStr HKLM "${REG_UNINSTALL}" "DisplayIcon" "$INSTDIR\Uninstall.exe" | ||
WriteRegStr HKLM "${REG_UNINSTALL}" "DisplayVersion" "1.0" | ||
WriteRegStr HKLM "${REG_UNINSTALL}" "Publisher" "openstatic.org" | ||
WriteRegStr HKLM "${REG_UNINSTALL}" "InstallSource" "$EXEDIR\" | ||
|
||
${EnvVarUpdate} $0 "PATH" "A" "HKCU" "$INSTDIR" | ||
${EnvVarUpdate} $0 "PATH" "A" "HKLM" "$INSTDIR" | ||
|
||
;Under WinXP this creates two separate buttons: "Modify" and "Remove". | ||
;"Modify" will run installer and "Remove" will run uninstaller. | ||
WriteRegDWord HKLM "${REG_UNINSTALL}" "NoModify" 1 | ||
WriteRegDWord HKLM "${REG_UNINSTALL}" "NoRepair" 0 | ||
WriteRegStr HKLM "${REG_UNINSTALL}" "UninstallString" '"$INSTDIR\Uninstall.exe"' | ||
|
||
SetOutPath "$INSTDIR" | ||
|
||
File ${PROJECT_BUILD_DIR}\json-roller.exe | ||
|
||
;Store installation folder | ||
WriteRegStr HKCU "Software\json-roller" "" $INSTDIR | ||
|
||
;Create uninstaller | ||
WriteUninstaller "$INSTDIR\Uninstall.exe" | ||
|
||
SectionEnd | ||
|
||
Section "Java Runtime Environment" java | ||
|
||
SetOutPath "$INSTDIR\jre" | ||
File /r "${PROJECT_BASEDIR}\jre\*" | ||
SectionEnd | ||
|
||
;-------------------------------- | ||
;Uninstaller Section | ||
|
||
Section "Uninstall" | ||
|
||
;ADD YOUR OWN FILES HERE... | ||
|
||
Delete "$INSTDIR\Uninstall.exe" | ||
Delete "$INSTDIR\json-roller.exe" | ||
RMDir /r "$INSTDIR" | ||
|
||
${un.EnvVarUpdate} $0 "PATH" "R" "HKCU" "$INSTDIR" | ||
${un.EnvVarUpdate} $0 "PATH" "R" "HKLM" "$INSTDIR" | ||
|
||
DeleteRegKey /ifempty HKCU "Software\json-roller" | ||
DeleteRegKey HKLM "${REG_UNINSTALL}" | ||
SectionEnd |