-
Notifications
You must be signed in to change notification settings - Fork 6
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
4 changed files
with
65 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ gtk4-rs/ | |
*.zip | ||
*.AppImage | ||
*.lrsmod | ||
*.exe |
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,53 @@ | ||
!include "MUI2.nsh" | ||
|
||
!define MUI_ABORTWARNING | ||
!define MUI_ICON "..\windows-dist\share\logicrs.ico" | ||
|
||
Var StartMenuFolder | ||
|
||
Name "LogicRs" | ||
Outfile "logicrs-windows-x86_64-installer.exe" | ||
Unicode True | ||
InstallDir "C:\Program Files\logicrs" | ||
|
||
!insertmacro MUI_PAGE_LICENSE "..\LICENSE" | ||
!insertmacro MUI_PAGE_DIRECTORY | ||
|
||
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU" | ||
!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\Modern UI Test" | ||
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder" | ||
!insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder | ||
|
||
!insertmacro MUI_PAGE_INSTFILES | ||
|
||
!insertmacro MUI_UNPAGE_CONFIRM | ||
!insertmacro MUI_UNPAGE_INSTFILES | ||
|
||
!insertmacro MUI_LANGUAGE "English" | ||
|
||
Section "Install" | ||
SetOutPath $INSTDIR | ||
File /r "..\windows-dist\*.*" | ||
|
||
WriteRegStr HKCU "Software\LogicRs" "" "$INSTDIR" | ||
WriteUninstaller "$INSTDIR\uninstall.exe" | ||
|
||
|
||
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application | ||
CreateDirectory "$SMPROGRAMS\$StartMenuFolder" | ||
CreateShortcut "$SMPROGRAMS\$StartMenuFolder\LogicRs.lnk" "$INSTDIR\bin\logicrs.exe" | ||
CreateShortcut "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" "$INSTDIR\uninstall.exe" | ||
!insertmacro MUI_STARTMENU_WRITE_END | ||
SectionEnd | ||
|
||
Section "Uninstall" | ||
Delete "$INSTDIR\*.*" | ||
RMDir /r "$INSTDIR" | ||
|
||
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder | ||
Delete "$SMPROGRAMS\$StartMenuFolder\LogicRs.lnk" | ||
Delete "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" | ||
RmDir "$SMPROGRAMS\$StartMenuFolder" | ||
|
||
DeleteRegKey /ifempty HKCU "Software\LogicRs" | ||
SectionEnd |
This file was deleted.
Oops, something went wrong.