mirror of
https://github.com/azahar-emu/azahar
synced 2025-11-07 07:29:58 +01:00
Installer: Further cleanups and high DPI support (#1234)
* Installer: Further cleanups and high DPI support * Reverted removal of `(User)` suffix --------- Co-authored-by: OpenSauce04 <opensauce04@gmail.com>
This commit is contained in:
parent
106e994dbf
commit
05aa6af325
@ -17,6 +17,8 @@
|
|||||||
!error "PRODUCT_VARIANT must be defined"
|
!error "PRODUCT_VARIANT must be defined"
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
|
ManifestDPIAware true
|
||||||
|
|
||||||
!define PRODUCT_NAME "Azahar"
|
!define PRODUCT_NAME "Azahar"
|
||||||
!define PRODUCT_PUBLISHER "Azahar Emulator Developers"
|
!define PRODUCT_PUBLISHER "Azahar Emulator Developers"
|
||||||
!define PRODUCT_WEB_SITE "https://azahar-emu.org/"
|
!define PRODUCT_WEB_SITE "https://azahar-emu.org/"
|
||||||
@ -60,6 +62,7 @@ Page custom desktopShortcutPageCreate desktopShortcutPageLeave
|
|||||||
; Instfiles page
|
; Instfiles page
|
||||||
!insertmacro MUI_PAGE_INSTFILES
|
!insertmacro MUI_PAGE_INSTFILES
|
||||||
; Finish page
|
; Finish page
|
||||||
|
!define MUI_FINISHPAGE_RUN "$INSTDIR\azahar.exe"
|
||||||
!insertmacro MUI_PAGE_FINISH
|
!insertmacro MUI_PAGE_FINISH
|
||||||
|
|
||||||
; Uninstaller pages
|
; Uninstaller pages
|
||||||
@ -106,7 +109,6 @@ Function .onInit
|
|||||||
StrCpy $DesktopShortcut 1
|
StrCpy $DesktopShortcut 1
|
||||||
!insertmacro MULTIUSER_INIT
|
!insertmacro MULTIUSER_INIT
|
||||||
|
|
||||||
; Keep in sync with build_info.txt
|
|
||||||
!define MIN_WIN10_VERSION 1607
|
!define MIN_WIN10_VERSION 1607
|
||||||
${IfNot} ${AtLeastwin10}
|
${IfNot} ${AtLeastwin10}
|
||||||
${OrIfNot} ${AtLeastWaaS} ${MIN_WIN10_VERSION}
|
${OrIfNot} ${AtLeastWaaS} ${MIN_WIN10_VERSION}
|
||||||
@ -123,9 +125,9 @@ FunctionEnd
|
|||||||
|
|
||||||
!macro UPDATE_DISPLAYNAME
|
!macro UPDATE_DISPLAYNAME
|
||||||
${If} $MultiUser.InstallMode == "CurrentUser"
|
${If} $MultiUser.InstallMode == "CurrentUser"
|
||||||
StrCpy $DisplayName "$(^Name) (User)"
|
StrCpy $DisplayName "${PRODUCT_NAME} (User)"
|
||||||
${Else}
|
${Else}
|
||||||
StrCpy $DisplayName "$(^Name)"
|
StrCpy $DisplayName "${PRODUCT_NAME}"
|
||||||
${EndIf}
|
${EndIf}
|
||||||
!macroend
|
!macroend
|
||||||
|
|
||||||
@ -165,9 +167,6 @@ Section "Base"
|
|||||||
${If} $DesktopShortcut == 1
|
${If} $DesktopShortcut == 1
|
||||||
CreateShortCut "$DESKTOP\$DisplayName.lnk" "$INSTDIR\azahar.exe"
|
CreateShortCut "$DESKTOP\$DisplayName.lnk" "$INSTDIR\azahar.exe"
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
; ??
|
|
||||||
SetOutPath "$TEMP"
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
!include "FileFunc.nsh"
|
!include "FileFunc.nsh"
|
||||||
@ -207,9 +206,10 @@ Section Uninstall
|
|||||||
RMDir /r "$INSTDIR\scripting"
|
RMDir /r "$INSTDIR\scripting"
|
||||||
RMDir "$INSTDIR"
|
RMDir "$INSTDIR"
|
||||||
|
|
||||||
|
DeleteRegKey HKCU "Software\Classes\discord-1345366770436800533"
|
||||||
|
|
||||||
DeleteRegKey SHCTX "${PRODUCT_UNINST_KEY}"
|
DeleteRegKey SHCTX "${PRODUCT_UNINST_KEY}"
|
||||||
DeleteRegKey SHCTX "${PRODUCT_DIR_REGKEY}"
|
DeleteRegKey SHCTX "${PRODUCT_DIR_REGKEY}"
|
||||||
DeleteRegKey HKCU "Software\Classes\discord-1345366770436800533"
|
|
||||||
|
|
||||||
SetAutoClose true
|
SetAutoClose true
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user