Jump to content

Draconian

Member
  • Posts

    11
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Belgium

Posts posted by Draconian

  1. Hello Takeshi,

    thnx for your answer but it doesn't seem to be working for me, could you show me what you mean for below example,

    cmdow @ /HID

    @Echo Off

    FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\CD.txt SET CDROM=%%i:

    SET PP=%cdrom%\Software\

    SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

    REG ADD %KEY% /V TITLE /D "Installing Programs" /f

    REG ADD %KEY%\000 /VE /D "Autoit v3" /f

    REG ADD %KEY%\000 /V 1 /D "%PP%Autoit\auto3.exe" /f

    REG ADD %KEY%\001 /VE /D ".Net FrameWork 2.0" /f

    REG ADD %KEY%\002 /V 1 /D "%PP%NetFrameWork\dotfix.exe" /f

    REG ADD %KEY%\003 /VE /D "Monitor Drivers" /f

    REG ADD %KEY%\003 /V 1 /D "%PP%Monitor\Monitor.exe" /f

  2. Instead of using mouse clicks, you should take a look at the ControlClick() function in the help file of AutoItv3. Dialog box rendering is dependant of the screen resolution and font size. If the font is bigger, sometimes buttons are not at the exact same place. With ControlClick(), you just make sure the right control gets clicked. This way, your script is totally independant from the display resolution. You can also use Send() to send keyboard commands since you almost always can change the focused control with Tab and Shift-Tab. Just avoid using mouseclick when scripting installations...

    Happy scripting... :D

    Yeah I noticed that, I also notice that when you script mousemovements relative to the window sizes with mousecoord 0 that it sometimes doesn;t work proper. So yeah Controlclick is something I already use but sometimes even this doesn't work for certain programs hence I had no other option. But I'm getting the hang of it now.

  3. Well what I mean is, the scripts I made on my current windows are not working for my unattended windows, this because my unattended windows boots up in the wrong resolution:(

    PS : That page you refer to only talks about the installscreen while windows is installing, what I need is to change my desktop resolution to 1024x768 and this before windows starts executing the imported runonceex commands.

    Update : Someone just confirmed what I had already figured before,

    System-Supplied Device Setup Classes:

    Monitor:

    Class = Monitor

    ClassGuid = {4d36e96e-e325-11ce-bfc1-08002be10318}

    This class includes display monitors. An INF for a device of this class installs no device driver(s), but rather specifies the features of a particular monitor to be stored in the registry for use by drivers of video adapters. (Monitors are enumerated as the child devices of display adapters.)

    So this then per defenition would mean that you would have to install your graphic drivers first, and you will also have to do this at T minus 12 of windows install. Question is can you just install a device like a graphics card driver with a few basic lines like,

    C:\devcon install C:\Drivers\Nvidia\nv4_disp.inf PCI\VEN_10DE&DEV_0290&SUBSYS_22101682&REV_A1

    above line in my T-minus 12 batchfiles?? Cuz I did type following command,

    devcon hwids PCI\VEN_10DE&DEV_0290&SUBSYS_22101682&REV_A1\4&243D7BD0&0&0070

    and no devices matched, then I typed this,

    devcon hwids PCI\VEN_10DE&DEV_0290&SUBSYS_22101682&REV_A1

    and then this came up,

    hwidset9.jpg

    so its a defenite single match, so in theory if I somehow got my nvidia device to install before my monitor then it would work?? Attached also the inf file for my nvidia drivers, they contain the same device id.

    nv4_disp.inf

  4. Hi all,

    I have following MAJOR problem. I wanted to make a full unattended install of windows(something which I succeeded in just fine)and I was using autoit to mimic some moves to install tools, like clicking stuff automatically and moving mouse around. Well the problem I quickly ran into is that autoit doesn't work like it did on my fully installed windows. When all windows files are copied over, and the final steps of install are being finalized it will jump to my RunOnceEx.cmd and start installing all my tools but here is my problem. When windows starts installing my custom programs the DEFAULT MONITOR for windows is still selected and the mouse position is allways slightly different then when I made the scripts(note that scripts were made on exact same system). Major problem is that my unattended windows allways starts up with resolution of 640x480x32 and DEFAULT MONITOR selected, eventhough I put the following in my winnt.sif,

    QUOTE

    [Data]

    AutoPartition=0

    MsDosInitiated="0"

    UnattendedInstall="Yes"

    [unattended]

    UnattendMode=FullUnattended

    OemSkipEula=Yes

    OemPreinstall=Yes

    TargetPath=\WINDOWS

    FileSystem=*

    UnattendSwitch="yes"

    DriverSigningPolicy=Ignore

    OemPnPDriversPath="Drivers\000_chipset;Drivers\001_graphics;Drivers\002_monitor"

    [GuiUnattended]

    AdminPassword=*

    EncryptedAdminPassword=NO

    OEMSkipRegional=1

    TimeZone=105

    OemSkipWelcome=1

    [Display]

    AutoConfirm=1

    BitsPerPel=32

    Xresolution=1024

    Yresolution=768

    One thing I notice when I do a fresh install of windows XP is that I cannot install monitor drivers(*.inf, *.cat, *.icm)as long as my nvidia graphics card drivers are not installed. So firstly I have to install my graphics drivers(I have a geforce 7900GTX)and then and only then can I load my Philips Brilliance 202P4 monitor drivers.

    So what do I do to fix this mess and install my nvidia drivers and monitor drivers before my RunOnceEx.cmd starts installing all my tools, cuz remember I need a resolution of 1024x768x32 or else my unattended install will fail(cuz of autoit scripts being written to match a 1024x768x32 resolution and not 640x480x32 default).

    Any help would be vastly appreciated,

    kind regards,

    Slayer of all thats evil

    Draconian

    PS : Basically any method you guys have that will get my windows resolution on first boot on 1024x768x32 will fix all my problems, drivers or no drivers, all I need is that 1024x768 before runonceex.cmd starts running. I have added a rarfile containing my monitor drivers, so maybe someone will find a way.

    THNX MUCHO GRANDE TO EVERYONE.......

    Update : Some more info on the monitor,

    monitorue5.jpg

    monitor.rar

  5. Hiya,

    I want to make an Autoit script for this little tool called audiograbber,

    http://www.audiograbber.com-us.net/download.html

    I made following script for it and it works perfect but for the life of me I just cannot get the FINISH button at the end to be pushed???

    Run("agsetup.exe")

    WinActivate("Audiograbber 1.83 installation", "This installation program will install Audiograbber.")

    WinWaitActive("Audiograbber 1.83 installation", "This installation program will install Audiograbber.")

    controlclick("Audiograbber 1.83 installation", "&Next >", "Button1")

    WinActivate("Audiograbber 1.83 installation", "Please select the directory where Audiograbber are to be installed")

    WinWaitActive("Audiograbber 1.83 installation", "Please select the directory where Audiograbber are to be installed")

    controlclick("Audiograbber 1.83 installation", "Browse", "Button5")

    ControlSetText("Select Destination Directory", "", "Edit1","C:\Program Files\audiograbber")

    controlclick("Select Destination Directory", "OK", "Button1")

    WinActivate("Audiograbber 1.83 installation", "Please select the directory where Audiograbber are to be installed")

    WinWaitActive("Audiograbber 1.83 installation", "Please select the directory where Audiograbber are to be installed")

    controlclick("Audiograbber 1.83 installation", "&Next >", "Button1")

    Send("{TAB}")

    Send("{TAB}")

    Send("{TAB}")

    Send("{SPACE}")

    Any help would be greatly appreciated, tell me what I did wrong.

  6. I followed the guide on how to slipstream SATA/AHCI/RAID drivers to a windows install and I was testing this in a virtualPC environment. So the directory I have my drivers in is,

    D:\xpcd\$OEM$\$1\Drivers\000_chipset

    Things I added to TXTSETUP.SIF under their respective headings are,

    [sourceDisksFiles]

    iaStor.sys = 100,,,,,,3_,4,1,,,1,4

    [HardwareIdsDatabase]

    PCI\VEN_8086&DEV_2822&CC_0104 = "iaStor"

    PCI\VEN_8086&DEV_2821&CC_0106 = "iaStor"

    PCI\VEN_8086&DEV_2682&CC_0104 = "iaStor"

    PCI\VEN_8086&DEV_2681&CC_0106 = "iaStor"

    PCI\VEN_8086&DEV_27C3&CC_0104 = "iaStor"

    PCI\VEN_8086&DEV_27C6&CC_0104 = "iaStor"

    PCI\VEN_8086&DEV_27C1&CC_0106 = "iaStor"

    PCI\VEN_8086&DEV_27C5&CC_0106 = "iaStor"

    PCI\VEN_8086&DEV_2652&CC_0104 = "iaStor"

    PCI\VEN_8086&DEV_2652&CC_0106 = "iaStor"

    PCI\VEN_8086&DEV_2653&CC_0106 = "iaStor"

    [sCSI.Load]

    iaStor = iaStor.sys,4

    [sCSI]

    iaStor = "Intel® ICH8R/DO/DH Don't matter what you fill in here BLABLA CUSTOM SATA/RAID DRIVERS"

    I also edited WINNT.SIF to contain amongst others these lines,

    [Data]

    AutoPartition=0

    [unattended]

    UnattendMode=FullUnattended

    OemPnPDriversPath="Drivers\000_chipset"

    OemPreinstall=Yes

    FileSystem=*

    I also placed a compressed iastor.sy_ in my d:\xpcd\I386 folder using makecab. Now when I boot from my new windows image virtualPC boots just fine with no warnings. And when windows is installed and I go to my C:\ I can see a folder there called drivers which has all these intel ahci\raid drivers. I can also see my drivers being loaded during the F6 setup of windows. I can see it stating the contents of that one line I wrote, below on windows setup it will say,

    SETUP IS NOW LOADING "Intel® ICH8R/DO/DH Don't matter what you fill in here BLABLA CUSTOM SATA/RAID DRIVERS"

    and all other drivers, so its defenitely being picked up, only problem is I don't know if I did it correctly. When I check my registry for the devicepath key it says following,

    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\DevicePath: REG_EXPAND_SZ:%SystemRoot%\Inf;%SystemDrive%\Drivers\000_chipset

    so there's even a reference there to that folder.

    Question hence is, will my image work on a real life computer cuz I can't test it yet on a real PC since I haven't ordered all parts yet. Just want to have a working image to save me some install problems of loading drivers from a floppy disk that I don't have.

    Oooh one more thing, when I check the contents of that folder on,

    C:\Drivers\000_chipset

    it has all the files listed with an addition of 1 new file called INFCACHE.1??? What is this doing here or is this normal?? Also is it normal that the files are nowhere to be found on the virtualpc windows install other then in that folder c:\Drivers\000_chipset?

×
×
  • Create New...