-
Notifications
You must be signed in to change notification settings - Fork 0
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
8 changed files
with
110 additions
and
26 deletions.
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
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,66 @@ | ||
; SeriEx Installer | ||
!include "MUI2.nsh" | ||
|
||
;------------------ | ||
; defines | ||
!define PROGRAM_NAME "SerialExaminer" | ||
!define UNINST_KEY "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\${PROGRAM_NAME}" | ||
!define INST_KEY "SOFTWARE\${PROGRAM_NAME}" | ||
|
||
;------------------ | ||
; Atributes | ||
Name "SerialExaminer" | ||
OutFile "SerialExaminerSetup.exe" | ||
InstallDir "$PROGRAMFILES64\${PROGRAM_NAME}" | ||
RequestExecutionLevel admin | ||
; Unicode True | ||
|
||
;------------------ | ||
; Icons | ||
!define MUI_UNICON "unico.ico" | ||
!define MUI_ICON "ico.ico" | ||
|
||
;------------------ | ||
; Installer | ||
!insertmacro MUI_PAGE_DIRECTORY | ||
!insertmacro MUI_PAGE_INSTFILES | ||
|
||
Section "SerialExaminer" SerialExaminer | ||
SetOutPath $INSTDIR | ||
File /r "dist-x64\SerialExaminer\*" | ||
CreateDirectory "$INSTDIR\keys" | ||
|
||
WriteRegStr HKLM "${INST_KEY}" "InstallDir" "$INSTDIR" | ||
WriteRegStr HKLM "${INST_KEY}" "DisplayName" "SerialExaminer" | ||
WriteRegStr HKLM "${INST_KEY}" "DisplayVersion" "0.4.1" | ||
WriteRegStr HKLM "${INST_KEY}" "DisplayIcon" "$\"$INSTDIR\ico.ico$\"" | ||
WriteRegStr HKLM "${INST_KEY}" "Publisher" "GitHub.com/Pixel48" | ||
WriteRegStr HKLM "${INST_KEY}" "UninstallString" "$INSTDIR\Uninstall.exe" | ||
|
||
WriteUninstaller "$INSTDIR\Uninstall.exe" | ||
|
||
WriteRegStr HKLM "${UNINST_KEY}" "InstallDir" "$INSTDIR" | ||
WriteRegStr HKLM "${UNINST_KEY}" "DisplayName" "${PROGRAM_NAME}" | ||
WriteRegStr HKLM "${UNINST_KEY}" "DisplayVersion" "0.4.1" | ||
WriteRegStr HKLM "${UNINST_KEY}" "DisplayIcon" "$\"$INSTDIR\ico.ico$\"" | ||
WriteRegStr HKLM "${UNINST_KEY}" "Publisher" "GitHub.com/Pixel48" | ||
WriteRegStr HKLM "${UNINST_KEY}" "UninstallString" "$\"$INSTDIR\Uninstall.exe$\"" | ||
WriteRegDWORD HKLM "${UNINST_KEY}" "NoModify" 1 | ||
WriteRegDWORD HKLM "${UNINST_KEY}" "NoRepair" 1 | ||
SectionEnd | ||
|
||
Section "Desktop shortcut" | ||
CreateShortcut "$DESKTOP\SerialExaminer.lnk" "$INSTDIR\SerialExaminer.exe" | ||
SectionEnd | ||
|
||
;------------------ | ||
; Uninstaller | ||
!insertmacro MUI_UNPAGE_CONFIRM | ||
!insertmacro MUI_UNPAGE_INSTFILES | ||
|
||
Section "Uninstall" | ||
Delete "$DESKTOP\SerialExaminer.lnk" | ||
RMDir /r "$INSTDIR" | ||
DeleteRegKey HKLM "${INST_KEY}" | ||
DeleteRegKey HKLM "${UNINST_KEY}" | ||
SectionEnd |
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