Drivers Instalation in Post-Install stage (New Method) Updated: 1.XII.2009 version 2.0.0.28
#11
Posted 29 March 2006 - 12:21 AM
#12
Posted 29 March 2006 - 02:57 AM
#13
Posted 29 March 2006 - 05:31 AM
1. Automatic instalation of Windows (which is covered preety much on MSFN)
2. Instalation of drivers after first login to system (this program covers this phase)
3. Instalation of applications (wrote program which installs all programs unattended, detects which server to use, with nice GUI etc but it's too personalized as it is to release it - maybe later)
Okey so basically you put hardware.exe and hardware.ini on CD (or usb driver or wherver you wish but remember to set right settings in hardware.ini). Then you also put on that CD directory with all drivers you need. So it would look like:
E:\hardware.exe E:\hardware.ini E:\Drivers E:\Drivers\VGA E:\Drivers\AUDIO E:\Drivers\ETC
So after you're done with 1st phase (windows instalation), you login to system, insert CD with drivers (2nd phase) and start hardware.exe.. it should delete all unknown devices in your system.. set the right paths into registry so windows will have easy way to find it without your interaction, redetect removed unkown devices.. And that's it. You should by now have every drivers filled.
NOTE1: be sure to put drivers in clean format (it doesn[t support packed drivers or self-extracting), at least not at the moment. If it will be needed, it can be included.
NOTE2: hardware.exe / .ini not nessecary have to be in same place as drivers, so they can be put anywhere on CD or HDD.
#14
Posted 29 March 2006 - 09:30 AM
MadBoy, on Mar 29 2006, 12:21 AM, said:
This time it works but it does not remove the unknown devices.My language is Turkish by the way which are "bilinmeyen aygıt" in device manager.Is there a way you can fix this program because I want to use your prog with driverpacks from beshrat , on systems with unknown drivers.This is an hope giving utility...
Thanks in advance..
Image2.jpg (77.14K)
Number of downloads: 635
#15
Posted 29 March 2006 - 10:23 AM
#16
Posted 29 March 2006 - 10:55 AM
Written in AutoIT, isn't it?
Thanx!
#17
Posted 29 March 2006 - 10:57 AM
#18
Posted 29 March 2006 - 11:22 AM
So what I mean by that, is doing a scan of all present hardware devices and integrating only the needed drivers. That way you won't need a devicepath setting, which is linked to 4096 chars.
Another thing is the skinning/GUI. (less importance)
I don't really care about having credit for any program, so I'd gladly give my extra source back to you to perhaps use the new ideas.
#19
Posted 29 March 2006 - 11:34 AM
Atm i have bigger problem that needs to be solved and when it gets solved i can preety much add more things into it. Devcon behaviour is a bit unpredictable to me. "devcon remove =Unknown" works the first time it's started (even on polish system). Then devcon rescan .. rescans devices. It's all fine and works. But if by accident it won't find drivers for any of those removed devices.. devcon doesn't care anymore. Running "devcon remove =Unknown" second time won't show any results (and in device manager you can clearly see unknown device, just it seems invisible for devcon). Maybe you can help on this?
#20
Posted 29 March 2006 - 11:48 AM
About the devcon output... I don't know about that, but I think the devcon sourcecode is included in the DDK or the Platform SDK... so maybe this could help you...?
I do have one question for you: How do you set non-WHQL to ignore from AutoIt?
In batch I tried:
reg add "HKCU\SOFTWARE\Microsoft\Driver Signing" /v Policy /d 0 /f
reg add "HKLM\SOFTWARE\Microsoft\Driver Signing" /v Policy /d 00 /f
reg add "HKLM\SOFTWARE\Microsoft\Non-Driver Signing" /v Policy /d 00 /f
But that didn't work... auto-clicking it to "Ignore" from the XP-GUI "driver signing options" from within autoit is an option, but I'd like to know the "under the skin" way... :-)
This post has been edited by Scrapple: 29 March 2006 - 11:52 AM
#21
Posted 29 March 2006 - 11:51 AM
Func DriverSigningOff(); Sets Driver Signing to OFF.
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Driver Signing", "Policy", "REG_BINARY", "00")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Driver Signing", "Policy", "REG_DWORD", "0")
RegWrite("HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows NT\Driver Signing", "BehaviorOnFailedVerify", "REG_DWORD", "00000000")
EndFunc
Func DriverSigningOn(); Resets Driver Signing to DEFAULT.
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Driver Signing", "Policy", "REG_BINARY", "01")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Driver Signing", "Policy", "REG_DWORD", "1")
RegWrite("HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows NT\Driver Signing", "BehaviorOnFailedVerify", "REG_DWORD", "00000001")
EndFunc
This post has been edited by MadBoy: 29 March 2006 - 11:53 AM
#22
Posted 29 March 2006 - 01:26 PM
no need for more testing for now. I know where the problem is. Seems that when devices are removed from device manager by either hand (not 100% sure but think so) or devcon status from Unknown (device with problems: 28) is changed to Device with problems: 01 and is not longer marked as Unknown. So it will take me some time to redo the devcon search function and the whole process of device removal. Hopefully i will get some time at work to do this
#23
Posted 29 March 2006 - 03:09 PM
MadBoy, on Mar 29 2006, 01:26 PM, said:
no need for more testing for now. I know where the problem is. Seems that when devices are removed from device manager by either hand (not 100% sure but think so) or devcon status from Unknown (device with problems: 28) is changed to Device with problems: 01 and is not longer marked as Unknown. So it will take me some time to redo the devcon search function and the whole process of device removal. Hopefully i will get some time at work to do this
Thank u very much in advance.Your tool will be very usefull in my opinion, especially for unknown devices in presetup systems.Looking forward to your newer version..
#24
Posted 30 March 2006 - 06:41 AM
#25
Posted 04 April 2006 - 11:14 AM
Download version 0.3.6 (Current with GUI)
Problems to solve:
- Signing of drivers isn't 100% working. Unfortunetly Microsoft implemented it the way it can't be realy done just by registry. Tests shown that also during change from Warn to IGNORE mode (My Computer -> Properties -> Hardware -> Driver Signing) besides standard registry keys that can be found all over the internet this key below also changes. On my computer it has 2 values (one for IGNORE and one for WARN). So unless i'll find a way to fix it.. Bummer. Maybe someone has some nice idea? Each computer has their own diffrent keys so it's not that simple as i seen on other forums in some posts
- HKLM\Software\Microsoft\Windows\CurrentVersion\Setup\PrivateHash 15 CA EF C3 34 E8 C8 78
- HKLM\Software\Microsoft\Windows\CurrentVersion\Setup\PrivateHash 01 32 A3 68 55 C2 D2 00
Problem of signing drivers on unnatended cd doesn't exist because you can set the right value in winnt.sif or sysprep.inf. Or so i have read on Microsoft pages
Possible changes in next versions:
- Option to have copied drivers to C:\Drivers (or other dir you choose) and then using it
as the main driver directory. Mighty be usefull for ppl who like to leave the drivers
on hdd, and for use with pyron's method.
- Completly redo of GUI. As someone said GUI isn't good enough which i knew on begining,
but wanted to have something easy and done fast so i could see the progress going on.
So the project will have new GUI soon. Better, nicer. Maybe special GUI for congfiguration.
- Waiting for other ideas and problems.
Changelog for 0.3.6
- Added REMOVABLE drives to be autodetected (you can use it instead of CDROM or drive letter)
- Added function that will create hardware.ini automagically if there is no hardware.ini present (usefull ;p)
- Added option that opens Device Manager while devices are being removed/detected.
- Added option to use either RegistryDevicePath or SetupCopyOemInf by pyron
Would be nice if someone would give his opinion about this, especially about Driver Signing. Couldn't realy found good solution.
#26
Posted 04 April 2006 - 11:48 AM
MadBoy, on Apr 4 2006, 06:14 PM, said:
Changelog for 0.3.6
- Added REMOVABLE drives to be autodetected (you can use it instead of CDROM or drive letter)
- Added function that will create hardware.ini automagically if there is no hardware.ini present (usefull ;p)
- Added option that opens Device Manager while devices are being removed/detected.
- Added option to use either RegistryDevicePath or SetupCopyOemInf by pyron
Would be nice if someone would give his opinion about this, especially about Driver Signing. Couldn't realy found good solution.
Thanx, very nice of you to integrate setupcopyoeminf!
#27
Posted 05 April 2006 - 07:45 AM
Changelog for 0.3.7
- Fixed multiple Device Manager instances being started
#28
Posted 10 April 2006 - 10:41 AM
hardware_0.5.jpg (49.6K)
Number of downloads: 263
New features:
- Full support for 7zip/Rar packed drivers
- Optional backup of c:\Windows\Inf directory before applying drivers
- New look
- Ability to configure .ini file thru GUI (not realy sure i need it but i'll try to implement it if i get time ;p)
- Possibility to copy drivers to for example C:\Drivers for later use (a must to set when using packed_drivers)
- Optional output to log_file (usefull for debugging)
- Optional output_option = Full/Simple - with Full mode on 99% of what's happening including output from external programs will be placed in log. (usefull for debugging but might slow down program a lot)
- Information if Windows require reboot to use drivers or not
- Automatic or Manual start (by pressing button).
- Auto autorun file creator for easy deployment on CD.
Suggestions are welcome as i haven't done everything yet so i can change things. Later on it will be much harder (althought with log window instead of preset GUI it's much easier to change things.
Hope you guys will like the changes in new version. Hopefully out sometime soon.
This post has been edited by MadBoy: 10 April 2006 - 10:41 AM
#29
Posted 10 May 2006 - 09:34 PM
#30
Posted 26 May 2006 - 08:03 PM
I could use this functionality in our corporate upgrade project.
Basically I'm at the point that after the first logon by the user (post Win2k -> XP Pro upgrade finishes), on several types of our HW, the NIC (hardwire and wireless) were not detected properly and are listed as unknown devices. I've been able to prove, via manual method, that uninstalling/removing the unknown devices and doing a new hardware scan will then detect the devices and pick up the driver from the C:\Windows\NLDRV\001 (or 002) folder (I've used nLite to integrate the drivers, works fine). For some reason these drivers are not sensed or found during the device detection phase.
Remember, these are upgrades, not clean installs... Clean installs with the same source set created via nLite works right completely, all drivers found and installed correctly.
So, I need a way to have the upgrade finish installing the right HW drivers...
The basic thought is to:
1. Have a script/batch file fire off from a RunOnce key (which I can't get to work either with an upgrade, but that's another story)
2. Check the registry to ensure the right DevicePath is set or force it to the desired paths (I have this working with a command in a script)
3. Remove all unknown devices (don't know for sure how to do this, but maybe "devcon -remove =Unknown" might work ?? )
4. Re-scan HW to detect the devices and install the right driver (again, I think "devcon rescan" ?? )
5. Reboot the PC
So, anyone out there with some insight on doing this?



Help


Back to top









