Jump to content











Photo
- - - - -

Change DPI scale whilst WinPE is running


  • Please log in to reply
No replies to this topic

#1 misty

misty

    Gold Member

  • Developer
  • 1069 posts
  •  
    United Kingdom

Posted 2 weeks ago

Just over a year ago I posted some information about changing screen resolution and DPI scaling in WinPE on UEFI firmware (see here

I have now found two different applications that can be used to dynamically set DPI scaling whilst WinPE is running/booted.

____________________


SetDPI by imniko can be used to set / change / check DPI scaling from WinPE running on UEFI firmware. The program has been compiled as a 64-bit executable and is available from github - https://github.com/imniko/SetDPI

This is a commandline tool. Use the following syntax to check the current setting/scale (output is DPI as a percentage) -
setdpi.exe get
Or
setdpi.exe value
To change resolution on the main monitor use the following syntax (where scale is a percentage) -
setdpi.exe scale
E.g. To set scale as 125% use the following -
setdpi.exe 125
I tried setting a scale of 200% on the laptop I am using to write this post - scale was set as 175 and I believe this is the maximum supported by my panel?

There are file dependencies that will need to be added to your WinPE -
- msvcp140.dll
- vcruntime140.dll
- vcruntime140_1.dll

The file dependencies can be added to your \Windows\System32\ directory or alternatively added to the path from which setDPI.exe is running.

When using SetDPI my menu system resolution/scale and running windows were unchanged. After closing down and restarting my applications they ran at the new scale - as this is a WinPE the shell cannot be shut down and restarted as it will end the session.

____________________

windows-DPI-scaling-sample is another 64-bit program that can be used to set/check DPI scale in WinPE running on UEFI firmware.

This is another github project, however is a GUI tool - the author is lihas. It is available from the following url - https://github.com/l...-scaling-sample

It has the following file dependency that will need to be added to your WinPE -
- oledlg.dll

As per SetDPI, the file dependencies can be added to your \Windows\System32\ directory or alternatively added to the path from which DPIScalingMFCApp.exe is running.

When using DPIScalingMFCApp.exe my menu system resolution/scale and running windows were unchanged. After closing down and restarting my applications they ran at the new scale - as this is a WinPE the shell cannot be shut down and restarted as it will end the session.

cheers.gif

misty
  • wimb likes this

#2 wimb

wimb

    Platinum Member

  • Developer
  • 3756 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted A week ago

 

windows-DPI-scaling-sample is another 64-bit program that can be used to set/check DPI scale in WinPE running on UEFI firmware.

This is another github project, however is a GUI tool - the author is lihas. It is available from the following url - https://github.com/l...-scaling-sample

It has the following file dependency that will need to be added to your WinPE -
- oledlg.dll
 

 

Thank you for sharing Info on DPIScalingMFCApp.exe

 

I have used it in Win10XPE and it is working great without the need to add extra files and DPI Scaling is changed instantly thumbup.gif

 

In Win10XPE I have used WinNTSetup for Install of Windows 10/11 x64 in VHD's located on Samsung USB Portable SSD

 

that I have prepared with USB_FORMAT for Windows To Go  :cheers:

 

More Info in VHD_Compact PDF presented at MSFN and at Reboot.pro

 

W10XPE_Apply_2024-04-04_114504.jpg





3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users