Old 21st February 2018, 02:09   #1
niwrad777
Junior Member
 
niwrad777's Avatar
 
Join Date: Jun 2007
Location: Perú
Posts: 24
Post Installer DPI Scaling

Hello
How can I make my installer use Windows scaling?
The UI looks blurry, with a 125% scale, the preview image is on attachments files.

Note: Winamp Installer is compatible with Windows scaling.

Regards
Attached Thumbnails
Click image for larger version

Name:	Screenshot_6.jpg
Views:	71
Size:	145.1 KB
ID:	53746   Click image for larger version

Name:	Screenshot_7.jpg
Views:	63
Size:	139.7 KB
ID:	53747  

Winamp Spanish
niwrad777 is offline   Reply With Quote
Old 21st February 2018, 16:38   #2
Pawel
Moderator
 
Pawel's Avatar
 
Join Date: Aug 2004
Location: Poland
Posts: 508
Send a message via ICQ to Pawel
Have you tested the following instructions:

ManifestDPIAware True
ManifestSupportedOS all
-Pawel
Pawel is offline   Reply With Quote
Old 21st February 2018, 23:40   #3
Nutzzz
Junior Member
 
Join Date: May 2007
Location: Orange County, CA, U.S.A.
Posts: 49
The High-DPI issue was briefly discussed last year in this thread. Depending on what features and plugins you use, you may end up with some small interface elements. If you're using the components page, there are a couple of solutions in that thread for the checkboxes, at least.
Nutzzz is offline   Reply With Quote
Old 22nd February 2018, 13:58   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,868
Just a quick note on ManifestSupportedOS.

Quote:
Originally Posted by Pawel View Post

ManifestSupportedOS all
"All" is basically all the GUIDs we know about (in that NSIS version) and the compiler default is currently "All except Vista" because that GUID has no effect if the GUID for 7 is specified.

If you are using a NSIS version released before Windows 10 you would use
Quote:
ManifestSupportedOS Win7 Win8 Win8.1 {8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}
... and if Microsoft changes their mind and creates a Windows 11 you would append that GUID until we add support for it.

I don't think you even need the latest GUIDs for DPI support to work.

If you are not using custom pages (Welcome and Finish are custom pages) then you can experiment with some undocumented (for now) attributes:

Quote:
ManifestDPIAware System ; System DPI on Vista/7/8/8.1/10(<10.1607(AU))
ManifestDPIAwareness "PerMonitorV2,System" ; PMv2 on 10.1703(CU)+, System on 10.1607(AU) with NSIS 3.03+
There are now two attributes because Microsoft has two manifest attributes because they failed and painted themselves into a corner with the first one This might change and that is why it is undocumented.

This dynamic multimonitor DPI support only works on recent Windows 10 versions. There is also a PerMonitor(V1) attribute but we don't support that at all. We are not currently parsing that string so you can specify whatever you want by looking them up on MSDN, just remember that we don't have full support for this and Microsoft keeps changing how DPI stuff works in 10 so you need to do a lot of testing.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Tags
windows scaling nsis

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump