-
Notifications
You must be signed in to change notification settings - Fork 201
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
124 changed files
with
8,309 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,119 @@ | ||
;-------------------------------- | ||
;Include Modern UI | ||
|
||
!include "MUI2.nsh" | ||
|
||
!define lbm "LittleBigMouse" | ||
!define lbm_version "5.0.0" | ||
!define lbm_file "LittleBigMouse.Ui.Avalonia.exe" | ||
|
||
|
||
!define main "..\LittleBigMouse.Ui\LittleBigMouse.Ui.Avalonia" | ||
!define daemon "..\LittleBigMouse.Daemon" | ||
!define main_out_dir "${main}\bin\x64\Release\net8.0" | ||
!define daemon_out_dir "${daemon}\bin\x64\Release" | ||
|
||
;-------------------------------- | ||
;General | ||
|
||
;Name and file | ||
Name "Little Big Mouse" | ||
OutFile "${lbm}-${lbm_version}.exe" | ||
Unicode True | ||
|
||
;Default installation folder | ||
InstallDir "$PROGRAMFILES64\${lbm}" | ||
|
||
;Get installation folder from registry if available | ||
InstallDirRegKey HKCU "Software\Mgth\${lbm}" "" | ||
|
||
;Request application privileges for Windows Vista | ||
RequestExecutionLevel admin | ||
|
||
;--------------------------------- | ||
;General | ||
|
||
!define MUI_ICON "${main}\MainIcon.ico" | ||
!define MUI_UNICON "${main}\MainIcon.ico" | ||
; !define MUI_SPECIALBITMAP "Bitmap.bmp" | ||
|
||
;-------------------------------- | ||
;Interface Settings | ||
|
||
!define MUI_ABORTWARNING | ||
|
||
;-------------------------------- | ||
;Pages | ||
|
||
; !insertmacro MUI_PAGE_LICENSE "${NSISDIR}\Docs\Modern UI\License.txt" | ||
; !insertmacro MUI_PAGE_COMPONENTS | ||
!insertmacro MUI_PAGE_DIRECTORY | ||
!insertmacro MUI_PAGE_INSTFILES | ||
|
||
!define MUI_FINISHPAGE_RUN "$INSTDIR\${lbm_file}" | ||
!insertmacro MUI_PAGE_FINISH | ||
|
||
!insertmacro MUI_UNPAGE_CONFIRM | ||
!insertmacro MUI_UNPAGE_INSTFILES | ||
|
||
|
||
;-------------------------------- | ||
;Language | ||
|
||
!insertmacro MUI_LANGUAGE "English" | ||
|
||
|
||
;-------------------------------- | ||
;Installer Sections | ||
Section "install" | ||
|
||
;Add files | ||
SetOutPath "$INSTDIR" | ||
|
||
File "${main_out_dir}\*.exe" | ||
File "${daemon_out_dir}\*.exe" | ||
File /r "${main_out_dir}\*.dll" | ||
File "${main_out_dir}\*.json" | ||
|
||
;create desktop shortcut | ||
CreateShortCut "$DESKTOP\${lbm}.lnk" "$INSTDIR\${lbm_file}" "" | ||
|
||
;create start-menu items | ||
CreateDirectory "$SMPROGRAMS\${lbm}" | ||
CreateShortCut "$SMPROGRAMS\${lbm}\Uninstall.lnk" "$INSTDIR\Uninstall.exe" "" "$INSTDIR\Uninstall.exe" 0 | ||
CreateShortCut "$SMPROGRAMS\${lbm}\${lbm}.lnk" "$INSTDIR\${lbm_file}" "" "$INSTDIR\${lbm_file}" 0 | ||
|
||
;write uninstall information to the registry | ||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${lbm}" "DisplayName" "${lbm} (remove only)" | ||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${lbm}" "UninstallString" "$INSTDIR\Uninstall.exe" | ||
|
||
WriteUninstaller "$INSTDIR\Uninstall.exe" | ||
|
||
SectionEnd | ||
|
||
|
||
;-------------------------------- | ||
;Uninstaller Section | ||
Section "Uninstall" | ||
|
||
;Delete Files | ||
RMDir /r "$INSTDIR\*.*" | ||
|
||
;Remove the installation directory | ||
RMDir "$INSTDIR" | ||
|
||
;Delete Start Menu Shortcuts | ||
Delete "$DESKTOP\${lbm}.lnk" | ||
Delete "$SMPROGRAMS\${lbm}\*.*" | ||
RmDir "$SMPROGRAMS\${lbm}" | ||
|
||
;Delete Uninstaller And Unistall Registry Entries | ||
; DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\${lbm}" | ||
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\${lbm}" | ||
|
||
SectionEnd | ||
|
||
|
||
|
||
|
||
;eof |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
74 changes: 74 additions & 0 deletions
74
LittleBigMouse.Ui/LittleBigMouse.Ui.Avalonia/Assets/Icon/Monitor.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
106 changes: 106 additions & 0 deletions
106
LittleBigMouse.Ui/LittleBigMouse.Ui.Avalonia/Assets/Icon/MonitorInfo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.