• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
fred_gaou

Screen Resolution during GUI-setup [SOLVED]

2 posts in this topic

Hi,

I use nLite to build my XP SP3 and I test my setup with VirtualBox (Sun).

I have tested 1365VidChng.exe (I renamed it VidChng.exe in my batch). I made an add-on that run at T13.

Here is my batch:

@echo off

CD /D %systemdrive%\temp\ScrRes
: Virtual Machine Resolutions, No Driver
VidChng.exe 800X600X32@1 -q
VidChng.exe 1024X768X32@1 -q

: Laptop Resolution
VidChng.exe 1024X768X32@60 -q
VidChng.exe 1200X800X32@60 -q
VidChng.exe 1400X1050X32@60 -q
VidChng.exe 1600X1200X32@60 -q

: Desktop resolutions
VidChng.exe 800X600X32@75 -q
VidChng.exe 1024X768X32@75 -q
VidChng.exe 1200X900X32@75 -q
VidChng.exe 1600X1200X32@75 -q

EXIT

It does the work ! :yes:

Before batch, the resolution is 640x480

scrres640x480.jpg

After batch, the resolution is 1024x768:

scrres1024x768.jpg

But with this result... :(

The all screen enlarged to 1024x768 but you can notice that the part of the 640x480 previous screen didn't enlarge but moved to upper left corner.

Then, display is normal during OOBE process and I don't have to confirm screen resolution :thumbup

I don't slipstream Video Driver or other drivers.

Somebody have a solution to enlarge the setup screen since VituaBox and most of system support at less 800x600? Set 800x600 in nLite options don't work for me. I think nLite use the winnt.sif tweak

Or this is happen only with VirtualBox?

Edited by fred_gaou
0

Share this post


Link to post
Share on other sites

I solved my problem using an add-on (updated download link) that patches hivesys.inf adding these lines:

HKLM,"SYSTEM\CurrentControlSet\Services\VgaSave\Device0","InstalledDisplayDrivers",0x00010000,"vga", "framebuf", "vga256", "vga64k"
HKLM,"SYSTEM\CurrentControlSet\Services\VgaSave\Device0","VgaCompatible",0x00010001,1
HKLM,"SYSTEM\CurrentControlSet\Services\VgaSave\Device0","InstalledDisplayDrivers",0x00010000,"vga", "framebuf", "vga256", "vga64k"
HKLM,"SYSTEM\CurrentControlSet\Services\VgaSave\Device0","VgaCompatible",0x00010001,1
HKLM,"SYSTEM\CurrentControlSet\Services\VgaSave\Device0","DefaultSettings.BitsPerPel",0x00010001,32
HKLM,"SYSTEM\CurrentControlSet\Services\VgaSave\Device0","DefaultSettings.XResolution",0x00010001,1024
HKLM,"SYSTEM\CurrentControlSet\Services\VgaSave\Device0","DefaultSettings.YResolution",0x00010001,768
HKLM,"SYSTEM\CurrentControlSet\Control\Video\{23A77BF7-ED96-40EC-AF06-9B1F4867732A}\Video","Service",0x00000000,"VgaSave"
HKLM,"SYSTEM\CurrentControlSet\Control\Video\{23A77BF7-ED96-40EC-AF06-9B1F4867732A}\0000","InstalledDisplayDrivers",0x00010000,"vga", "framebuf", "vga256", "vga64k"
HKLM,"SYSTEM\CurrentControlSet\Control\Video\{23A77BF7-ED96-40EC-AF06-9B1F4867732A}\0000","VgaCompatible",0x00010001,1
HKLM,"SYSTEM\CurrentControlSet\Control\Video\{23A77BF7-ED96-40EC-AF06-9B1F4867732A}\Video","Service",0x00000000,"VgaSave"
HKLM,"SYSTEM\CurrentControlSet\Control\Video\{23A77BF7-ED96-40EC-AF06-9B1F4867732A}\0000","InstalledDisplayDrivers",0x00010000,"vga", "framebuf", "vga256", "vga64k"
HKLM,"SYSTEM\CurrentControlSet\Control\Video\{23A77BF7-ED96-40EC-AF06-9B1F4867732A}\0000","VgaCompatible",0x00010001,1
HKLM,"SYSTEM\CurrentControlSet\Control\Video\{23A77BF7-ED96-40EC-AF06-9B1F4867732A}\0000","DefaultSettings.BitsPerPel",0x00010001,32
HKLM,"SYSTEM\CurrentControlSet\Control\Video\{23A77BF7-ED96-40EC-AF06-9B1F4867732A}\0000","DefaultSettings.XResolution",0x00010001,1024
HKLM,"SYSTEM\CurrentControlSet\Control\Video\{23A77BF7-ED96-40EC-AF06-9B1F4867732A}\0000","DefaultSettings.YResolution",0x00010001,768

You can do it manually adding these lines in hivesys.inf just after [AddReg] entrie:

HKLM,"SYSTEM\CurrentControlSet\Services\VgaSave\Device0","DefaultSettings.BitsPerPel",0x00010001,32
HKLM,"SYSTEM\CurrentControlSet\Services\VgaSave\Device0","DefaultSettings.XResolution",0x00010001,1024
HKLM,"SYSTEM\CurrentControlSet\Services\VgaSave\Device0","DefaultSettings.YResolution",0x00010001,768
HKLM,"SYSTEM\CurrentControlSet\Control\Video\<i class="spip">23A77BF7-ED96-40EC-AF06-9B1F4867732A</i>\0000","DefaultSettings.BitsPerPel",0x00010001,32
HKLM,"SYSTEM\CurrentControlSet\Control\Video\<i class="spip">23A77BF7-ED96-40EC-AF06-9B1F4867732A</i>\0000","DefaultSettings.XResolution",0x00010001,1024
HKLM,"SYSTEM\CurrentControlSet\Control\Video\<i class="spip">23A77BF7-ED96-40EC-AF06-9B1F4867732A</i>\0000","DefaultSettings.YResolution",0x00010001,768

So, GUI-setup is now set to 1024x768 (you can modify this values).

I use 1365VidChng.exe later in GuiRunOnce so that it sets the best display resolution for each computer.

:thumbup

Edited by fred_gaou
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.