MSFN Forum: Drivers Instalation in Post-Install stage (New Method) - MSFN Forum

Jump to content



  • 31 Pages +
  • « First
  • 22
  • 23
  • 24
  • 25
  • 26
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Drivers Instalation in Post-Install stage (New Method) Updated: 1.XII.2009 version 2.0.0.28 Rate Topic: -----

#451 User is offline   MadBoy 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 464
  • Joined: 21-February 05

Posted 21 March 2008 - 11:36 AM

View PostpSycho-Y2K, on Mar 19 2008, 11:05 AM, said:

I've made some succesfull progress tracing the "COM Error with DOM!" 80041013 error. It seems related to the removal of the "Help and Support" component in nLite. Leaving the component alone did the trick :thumbup

Nice catch!

Quote

I'm still trying to figure out my previous problem with the dutch version of the Found New Hardware Wizard where it doesn't repond to Next, but fortunately it does work with the Finish button :blink: I'll try to mess around a bit more with the settings. Madboy, maybe you can see where the problem is? See my previous post for the log and settings.


I think i found the problem today when i was playing with vmware and setting things up in win2k3. I've never seen this msg before (as i wasnt testing the program on real missing device driver so most likely my program wouldn't know what to do here. In your case you had similar window to the one described below? Or not?

Quote

Welcome to the Found New Hardware Wizard
Windows will search for current and updated software by looking on your computer, on the hardware installation CD, or on the Windows Update Web site (with your permission).
Can Windows connect to Windows Update to search for software?
<A>Online privacy information</A>
&Yes, this time only
Yes, now and &every time I connect a device
No, not this &time
Click Next to continue.



Quote

Another thing I'm struggling with is the Driver Signing policy. I let nLite disable the Driver Signing Policy, but unfortunately it switches back on during the first boot after a fresh Windows installation. Hacking into the registry doesn't work as Windows recognizes the action als a harmfull attack. My workaround for this is a VBS script which automaticly go to sysdm.cpl and pushing the buttons to disable it (with sleep commands to wait for the windows to pop up). Then your tool will be executed and the drivers will be installed without unsigned driverpopups. But unfortunately, on slow or heavy loaded systems it doens't work properly :(

Maybe if you have the time, you can add this also to the drivertool?


SUre, it's planned :)


#452 User is offline   pSycho-Y2K 

  • Newbie
  • Group: Members
  • Posts: 44
  • Joined: 20-October 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 26 March 2008 - 09:42 AM

No, I don't have a similar window as you described, just the standard Found New Hardware window where you have to press Next to search for a driver. But I wrote a small VBS as a temporary workaround until this is resolved. :)
Dim WshShell, DriverTool
Set WshShell = WScript.CreateObject("WScript.Shell")
Set DriverTool = WshShell.Exec("Hardware.exe")
Do While DriverTool.Status = 0
WScript.Sleep(5000)
WshShell.SendKeys ("%+O")
Loop
WScript.Quit

The code waits every 5 seconds to press on ALT+O which is the keyboard action to press Next in the dutch version, it loops until the program is finished. That way, the problem is solved as a temporary fix. I still don't know why only the Finish button works. I'm very happy knowing the installation-disc is now fully unattended :D

This post has been edited by pSycho-Y2K: 26 March 2008 - 09:45 AM


#453 User is offline   MadBoy 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 464
  • Joined: 21-February 05

Posted 27 March 2008 - 03:16 AM

View PostpSycho-Y2K, on Mar 26 2008, 04:42 PM, said:

No, I don't have a similar window as you described, just the standard Found New Hardware window where you have to press Next to search for a driver. But I wrote a small VBS as a temporary workaround until this is resolved. :)
Dim WshShell, DriverTool
Set WshShell = WScript.CreateObject("WScript.Shell")
Set DriverTool = WshShell.Exec("Hardware.exe")
Do While DriverTool.Status = 0
WScript.Sleep(5000)
WshShell.SendKeys ("%+O")
Loop
WScript.Quit

The code waits every 5 seconds to press on ALT+O which is the keyboard action to press Next in the dutch version, it loops until the program is finished. That way, the problem is solved as a temporary fix. I still don't know why only the Finish button works. I'm very happy knowing the installation-disc is now fully unattended :D


pSycho-Y2K try this please http://pro-solutions...p?id=2352344231

Simply start Add Hardware Wizard (i've hardcoded your nl values), start this file and see what happens. It should detect window (pop a button to press), detect next (pop a button to press) etc

Don't do this atm in automated way as it's just a test ;) The thing is i just cut out the code from my program and tested on both Win2k3 and WinXP, both english and it worked fine.

This post has been edited by MadBoy: 27 March 2008 - 03:16 AM


#454 User is offline   pSycho-Y2K 

  • Newbie
  • Group: Members
  • Posts: 44
  • Joined: 20-October 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 27 March 2008 - 05:13 AM

Okay, I followed your instructions and I see your AutoIT script window displaying a STOP error, the Next button isn't pressed by the script. I've captured both windows in the screenshot below:

Attached File(s)

  • Attached File  stop.png (51.53K)
    Number of downloads: 9

This post has been edited by pSycho-Y2K: 27 March 2008 - 05:21 AM


#455 User is offline   MadBoy 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 464
  • Joined: 21-February 05

Posted 27 March 2008 - 06:51 AM

View PostpSycho-Y2K, on Mar 27 2008, 12:13 PM, said:

Okay, I followed your instructions and I see your AutoIT script window displaying a STOP error, the Next button isn't pressed by the script. I've captured both windows in the screenshot below:



Please redownload the file. I have modified it so it takes as parameters Window Name Next and then Finnish
so execute it like this:

script.exe "Wizard Hardware toevoegen" Volgende Annuleren

and see what happens.

#456 User is offline   pSycho-Y2K 

  • Newbie
  • Group: Members
  • Posts: 44
  • Joined: 20-October 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 27 March 2008 - 07:03 AM

Still no success :(

Attached File(s)



#457 User is offline   MadBoy 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 464
  • Joined: 21-February 05

Posted 27 March 2008 - 07:14 AM

View PostpSycho-Y2K, on Mar 27 2008, 02:03 PM, said:

Still no success :(


What if you type in
script.exe "Wizard Hardware toevoegen" "Volgende >" Annuleren
script.exe "Wizard Hardware toevoegen" "&Volgende" Annuleren

#458 User is offline   pSycho-Y2K 

  • Newbie
  • Group: Members
  • Posts: 44
  • Joined: 20-October 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 28 March 2008 - 01:34 AM

View PostMadBoy, on Mar 27 2008, 02:14 PM, said:

What if you type in
script.exe "Wizard Hardware toevoegen" "Volgende >" Annuleren
script.exe "Wizard Hardware toevoegen" "&Volgende" Annuleren

I ran both commands, but the outcome is like the screenshots I posted earlier. It seems that "Volgende", "Volgende >" and "&Volgende" doesn't work. What could it be, it looks like the button isn't recognized? Very strange :blink:

This post has been edited by pSycho-Y2K: 28 March 2008 - 01:36 AM


#459 User is offline   Acheron 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 915
  • Joined: 28-June 04

Posted 03 May 2008 - 08:58 AM

Try "V&olgende >"

P.S. MadBoy topictitle should say 2008 not 2007 :hello:

This post has been edited by Acheron: 03 May 2008 - 08:59 AM


#460 User is offline   MadBoy 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 464
  • Joined: 21-February 05

Posted 03 May 2008 - 09:03 AM

View PostAcheron, on May 3 2008, 03:58 PM, said:

Try "V&olgende >"

P.S. MadBoy topictitle should say 2008 not 2007 :hello:


Tnx, fixed. Hopefully your tip will work for psycho. Eventually psycho you could also try "lgende" only. I'm using Partial string matching so this could work. Test it please.

This post has been edited by MadBoy: 03 May 2008 - 09:06 AM


#461 User is offline   hnmurugan 

  • Newbie
  • Group: Members
  • Posts: 20
  • Joined: 20-October 04

Posted 29 May 2008 - 11:39 AM

Hello....

Below should work without any issues. I have tested it.
Click Start, right-click Computer, and then click Properties.

On the System Properties dialog box, click the Hardware tab, and then click Windows Update.

Select Never check for drivers when I connect a device.

Somehow if it can be achieved by your exe doing same as set registry path, then your problem is over.

i have tried http://www.pctools.c...ry/detail/1217/ with no luck.

Regards
Hari

#462 User is offline   hnmurugan 

  • Newbie
  • Group: Members
  • Posts: 20
  • Joined: 20-October 04

Posted 29 May 2008 - 12:05 PM

Sorry... further trial and error reveals that it can achieved by creating below entries.

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DriverSearching]
"DontSearchWindowsUpdate"=dword:00000001
"DontPromptForWindowsUpdate"=dword:00000001

if you can add this to your program before the wizard pop up it should be fine. Then set it back to its original value same as you set registry path.

Hope this might be a solution.

Regards
Hari

#463 User is offline   MadBoy 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 464
  • Joined: 21-February 05

Posted 30 May 2008 - 11:36 AM

I will add it soon, and release it for testing. Should be ready for monday or so if i don't have to fix other things.

Thanks :)

#464 User is offline   pSycho-Y2K 

  • Newbie
  • Group: Members
  • Posts: 44
  • Joined: 20-October 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 03 June 2008 - 05:10 AM

Sorry for the late response, I was very busy in the past weeks.
But, I think I have success with your latest pro-s_test.exe :D The following windows appear when the script is run:

Quote

pro-s_test.exe "Wizard Hardware toevoegen" "lgende" Annuleren

1 FOUND WINDOW
1 FOUND NEXT

Found New Hardware scans for devices...

1 FOUND NEXT
1 FOUND NEXT
1 FOUND FINISH

Found New Hardware terminated...

1 STOP

Found New Hardware starts again and scans and stops at the question if the hardware is connected


So, what can you say about these results, is the problem now resolved? :) And could this fix be in your next release?

This post has been edited by pSycho-Y2K: 03 June 2008 - 08:19 AM


#465 User is offline   MadBoy 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 464
  • Joined: 21-February 05

Posted 03 June 2008 - 05:30 AM

Yes, the problem was with & which underlines a letter and makes it active in that Hardware Window (and in any other window). In my english version i think N was underlined so it means &Next was the text to search for but since i used partial matching having Next was good for me. However in your case Volgende had O or other letter underlined which means the & was between V and O like that: V&olgende. For the partial matching to work you had to skip the beggining to get rid of & and it worked :) Hope you understand my gibberish.

Anyways I think i'll fix that in new version so when it starts matching it will remove any & before trying to match text. Thanks to that there would be no need to think about it when setting this up.

I'm glad it works ;)

#466 User is offline   hnmurugan 

  • Newbie
  • Group: Members
  • Posts: 20
  • Joined: 20-October 04

Posted 05 June 2008 - 09:17 AM

where do i download the test version?...

#467 User is offline   surfertje 

  • Member
  • PipPip
  • Group: Members
  • Posts: 127
  • Joined: 29-April 08

Posted 08 June 2008 - 12:48 PM

I wanna try this program. Have a wuistion though.

I have Five different Dell machines. Using Ghost to image them. I have added the drivers for the differentmachines and when i restore the image for a machine sysprep should install the drivers. This is not happening though. When i restore the image to a different machine as where the image was made for example: image was created with a Dell gx745 and i restore the sysprepped image to a Dell gx620 the drivers for the network, video and chipset where not installed.
I want to solve this with this program. I would like to do this with least effort, like right after the sysprep has run. Is this possible?

Second quistion is:
When i put the drivers from Dell for every machine in one folder and subolders does this program see which drivers to install? Because there are drivers for vife different machines in that folder / sufolder?

#468 User is offline   iperoni 

  • Group: Members
  • Posts: 7
  • Joined: 12-February 05

Posted 08 June 2008 - 04:38 PM

The part in share is not working for my network, i have a workgroup configuration (not a domain).
Is there a special config to work with workgroups? If not, do you plan to include in future versions?
The user and password for the workgroup is not necessary (or Guest without pass in any case).
Thanks.

#469 User is offline   MadBoy 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 464
  • Joined: 21-February 05

Posted 09 June 2008 - 02:16 AM

View Postsurfertje, on Jun 8 2008, 08:48 PM, said:

I wanna try this program. Have a wuistion though.

I have Five different Dell machines. Using Ghost to image them. I have added the drivers for the differentmachines and when i restore the image for a machine sysprep should install the drivers. This is not happening though. When i restore the image to a different machine as where the image was made for example: image was created with a Dell gx745 and i restore the sysprepped image to a Dell gx620 the drivers for the network, video and chipset where not installed.
I want to solve this with this program. I would like to do this with least effort, like right after the sysprep has run. Is this possible?

Second quistion is:
When i put the drivers from Dell for every machine in one folder and subolders does this program see which drivers to install? Because there are drivers for vife different machines in that folder / sufolder?doo


Surfertje: the program can be used the first time you login to Windows (you can make your Windows Autologin for you and start the program). The program then starts and does it's job, finish and quits (but you gotta do some testing first). What it does you ask?

What it does it takes a directory with drivers (you can have in that directory drivers for every single machine in your network) for example that looks like this:

d:\Drivers
d:\Drivers\DellX300
d:\Drivers\DellX500
d:\Drivers\HP6400

etc, you can also have it like this

D:\Drivers
D:\Drivers\VGA\ATI
D:\Drivers\SOUND\BLASTER

Anything that is under the D:\Drivers will get scanned and will be used to detect proper drivers needed. All my program does it takes every single inf directory and puts it in registry. THen it forces Windows to redetect all devices and then Windows scans all those directories for the right driver and matches with proper device. If it finds one it install the driver, if it doesn't it continues to next. No magic done here :)

So in other words yes to your 2nd question and yes to your 1st question (althought you gotta play with it to see how it works first).

#470 User is offline   MadBoy 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 464
  • Joined: 21-February 05

Posted 09 June 2008 - 02:44 AM

View Postiperoni, on Jun 9 2008, 12:38 AM, said:

The part in share is not working for my network, i have a workgroup configuration (not a domain).
Is there a special config to work with workgroups? If not, do you plan to include in future versions?
The user and password for the workgroup is not necessary (or Guest without pass in any case).
Thanks.


The network part does work ;)
1. You have to state \\server\share_name not just \\server (this won't work).
2. As you are in workgroup using SERVER_NAME as your domain should fix the problem.

So for your login you could try using: SERVER_NAME\Guest. Password leave empty. If it will not work i will have to test this solution myself on some non-joined to domain computer.

Share this topic:


  • 31 Pages +
  • « First
  • 22
  • 23
  • 24
  • 25
  • 26
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy