-
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.
Merge pull request #22 from sev-2/feat/windows-installer
Enhance Build and Release Workflow
- Loading branch information
Showing
3 changed files
with
50 additions
and
4 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
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,34 @@ | ||
!include "MUI2.nsh" | ||
|
||
!insertmacro MUI_PAGE_WELCOME | ||
!insertmacro MUI_PAGE_INSTFILES | ||
!insertmacro MUI_PAGE_FINISH | ||
!insertmacro MUI_UNPAGE_INSTFILES | ||
!insertmacro MUI_LANGUAGE "English" | ||
|
||
!define NAME "Raiden" | ||
!define APPFILE "raiden.exe" | ||
|
||
Name "${NAME}" | ||
Outfile "raiden-windows-${ARCH}-setup.exe" | ||
InstallDir $WINDIR | ||
ShowInstDetails show | ||
RequestExecutionLevel admin | ||
|
||
Section | ||
SetOutPath $INSTDIR | ||
File raiden.exe | ||
|
||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Raiden" "DisplayName" "Raiden" | ||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Raiden" "Publisher" "Refactory" | ||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Raiden" "UninstallString" "$\"$INSTDIR\raiden-uninstall.exe$\"" | ||
|
||
WriteUninstaller $INSTDIR\raiden-uninstall.exe | ||
SectionEnd | ||
|
||
Section "Uninstall" | ||
Delete $INSTDIR\raiden.exe | ||
Delete $INSTDIR\raiden-uninstall.exe | ||
|
||
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Raiden" | ||
SectionEnd |