mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 12:28:02 +02:00
set installer to be DPI aware
This commit is contained in:
parent
95ae7e2ba8
commit
2311627599
1 changed files with 1 additions and 11 deletions
|
@ -37,6 +37,7 @@
|
||||||
; Set name prior to inner loop so uninstaller has correct values
|
; Set name prior to inner loop so uninstaller has correct values
|
||||||
Name "@CPACK_NSIS_PACKAGE_NAME@"
|
Name "@CPACK_NSIS_PACKAGE_NAME@"
|
||||||
BrandingText " "
|
BrandingText " "
|
||||||
|
ManifestDPIAware true
|
||||||
|
|
||||||
!ifdef INNER
|
!ifdef INNER
|
||||||
!echo "Inner invocation" ; just to see what's going on
|
!echo "Inner invocation" ; just to see what's going on
|
||||||
|
@ -679,7 +680,6 @@ FunctionEnd
|
||||||
|
|
||||||
ReserveFile "NSIS.InstallOptions.ini"
|
ReserveFile "NSIS.InstallOptions.ini"
|
||||||
ReserveFile "@POST_INSTALL_OPTIONS_PATH@"
|
ReserveFile "@POST_INSTALL_OPTIONS_PATH@"
|
||||||
ReserveFile "${NSISDIR}\Plugins\InstallOptions.dll"
|
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Installer Sections
|
;Installer Sections
|
||||||
|
@ -990,11 +990,6 @@ FunctionEnd
|
||||||
; determine admin versus local install
|
; determine admin versus local install
|
||||||
Function un.onInit
|
Function un.onInit
|
||||||
|
|
||||||
; manually set this process to DPI aware for fonts on high-dpi screens
|
|
||||||
${If} ${AtLeastWinVista}
|
|
||||||
System::Call 'user32::SetProcessDPIAware()'
|
|
||||||
${EndIf}
|
|
||||||
|
|
||||||
; In order for the uninstaller to be able to remove itself, we have to do some trickery here.
|
; In order for the uninstaller to be able to remove itself, we have to do some trickery here.
|
||||||
; If the $EXEPATH does not contain the $TEMP dir, this instance is not the copied one
|
; If the $EXEPATH does not contain the $TEMP dir, this instance is not the copied one
|
||||||
; so we move it to the $TEMP dir and then execute the copied uninstaller.
|
; so we move it to the $TEMP dir and then execute the copied uninstaller.
|
||||||
|
@ -1220,11 +1215,6 @@ SectionEnd
|
||||||
|
|
||||||
Function .onInit
|
Function .onInit
|
||||||
|
|
||||||
; manually set this process to DPI aware for fonts on high-dpi screens
|
|
||||||
${If} ${AtLeastWinVista}
|
|
||||||
System::Call 'user32::SetProcessDPIAware()'
|
|
||||||
${EndIf}
|
|
||||||
|
|
||||||
!ifdef INNER
|
!ifdef INNER
|
||||||
; If INNER is defined, then we aren't supposed to do anything except write out
|
; If INNER is defined, then we aren't supposed to do anything except write out
|
||||||
; the installer. This is better than processing a command line option as it means
|
; the installer. This is better than processing a command line option as it means
|
||||||
|
|
Loading…
Reference in a new issue