ravedadave Posted April 1, 2010 Posted April 1, 2010 Hi,I run an open source project called Qemu Manager.I am day's of releasing the latest version but am having major issues installing a driver.Its a slightly modified version of the OpenVPN TAP-WIN32 driver.DriverThe only way at present to install it is using devcon.exe but I don't want to redistribute that due to licensing etc.....I have also tried dpinst.exe and that fails also.If anyone can provide an open source/free solution it would be greatly appreciated.Any suggestions would be welcomed.Thanks.Dave.
jaclaz Posted April 1, 2010 Posted April 1, 2010 (edited) There is already a rather known project called Qemu Manager, if I may, you should change slightly the name of your project to avoid confusion.Hey, wait, the link is on daveryn.co.uk, which is the home of the Qemu Manager!So you're Dave! Welcome to MSFN, happy to meet you. Back to your problem.Cannot you use a .inf file? The linked file has one.I am not an expert at all in using them, but if I managed to put together an install of a service:http://www.boot-land.net/forums/index.php?showtopic=9765you can do it as well.Basically:RunDll32.exe setupapi.dll,InstallHinfSection DefaultInstall 128 <your_driver>.infand you need a DefaultInstall section in the actual <your_driver>.infJust post if you need further help, if you better explain what the driver is for, I can try modifying the .inf and test it.jaclaz Edited April 1, 2010 by jaclaz
ravedadave Posted April 1, 2010 Author Posted April 1, 2010 There is already a rather known project called Qemu Manager, if I may, you should change slightly the name of your project to avoid confusion.Hey, wait, the link is on daveryn.co.uk, which is the home of the Qemu Manager!So you're Dave! Welcome to MSFN, happy to meet you. Back to your problem.Cannot you use a .inf file? The linked file has one.I am not an expert at all in using them, but if I managed to put together an install of a service:http://www.boot-land.net/forums/index.php?showtopic=9765you can do it as well.Basically:RunDll32.exe setupapi.dll,InstallHinfSection DefaultInstall 128 <your_driver>.infand you need a DefaultInstall section in the actual <your_driver>.infJust post if you need further help, if you better explain what the driver is for, I can try modifying the .inf and test it.jaclazHi Jaclaz,Yes I develop the main Qemu Manager that's been going for about 5 years now.The site is down at the min as it is being merged with another site ready for the release Qemu Manager 7.0 which is quite a big release.I have tried the rundll32 solution above as part of my tests, unfortunately it does not work.The driver is a network card driver. It installs fine if installed via devcon.exe or device manager. I would really like to have an automted way of installing this driver on demand, it will help other users greatly, and add value to the overallprogram.If you have any other tips it would be appreaciated,Thanks.Dave.
jaclaz Posted April 1, 2010 Posted April 1, 2010 I have tried the rundll32 solution above as part of my tests, unfortunately it does not work.The driver is a network card driver. It installs fine if installed via devcon.exe or device manager. I would really like to have an automted way of installing this driver on demand, it will help other users greatly, and add value to the overallprogram.If you have any other tips it would be appreaciated,No, but the method should work.Please post how you succeed to install it with devcon.exe, and I'll try to make a "working" .inf for it.(I need to understand how it behaves when succesfully installed)jaclaz
ravedadave Posted April 1, 2010 Author Posted April 1, 2010 I have tried the rundll32 solution above as part of my tests, unfortunately it does not work.The driver is a network card driver. It installs fine if installed via devcon.exe or device manager. I would really like to have an automted way of installing this driver on demand, it will help other users greatly, and add value to the overallprogram.If you have any other tips it would be appreaciated,No, but the method should work.Please post how you succeed to install it with devcon.exe, and I'll try to make a "working" .inf for it.(I need to understand how it behaves when succesfully installed)jaclazHi Jaclaz,Many thanks for taking the time to speak.I install it by: devcon.exe install oemwin2k.inf tap08qemu.sysThis then installs it. This can be ran multiple times, installing more than one instance of the network adapter.It shows in the network and sharing center as "Local Area Connection x"Hope this helps.Dave.
jaclaz Posted April 1, 2010 Posted April 1, 2010 No.The devcon.exe doesn't work for me (XP SP2).C:\Downloaded\tapdriver\TAPDriver\i386>devcon.exe install oemwin2k.inf tap08qemu.sysDevice node created. Install is complete when drivers are updated...Updating drivers for tap08qemu.sys from C:\Downloaded\tapdriver\TAPDriver\i386\oemwin2k.inf.devcon.exe failed.It starts installing but then fails, it seems like there is the need for some other files beside the .sys, or maybe it doesn't "connect" properly to the virtual device.In the .inf there are additional files "REMmed out" by using ; .Among the Remmed ones there is the "right" way (supposedly) to install this service, which is running tapinstall.exe, which seems like being a file coming with OpenVPN, which should be an equivalent to devcon.exe.here is a partial output of devcon listclass NETROOT\MS_PTIMINIPORT\0000 : Direct ParallelROOT\NET\0000ROOT\NET\0001ROOT\NET\0005ROOT\VMWARE\0000 : VMware Virtual Ethernet Adapter for VMnet1ROOT\VMWARE\0001 : VMware Virtual Ethernet Adapter for VMnet8with bolded the devices installed in various attempts.Something possibly very easy to fix must have been overlooked or it is missing.jaclaz
jaclaz Posted April 1, 2010 Posted April 1, 2010 (edited) Ok, found the problem with devcon.exe.You need to change this:;----------------------------------------------------------------; Manufacturer + Product Section (Done);----------------------------------------------------------------[Manufacturer] %Provider% = tap08qemu[tap08qemu] %DeviceDescription% = tap08qemu.ndi, tap08qemuto this:[Manufacturer] %Provider% = tap08qemu[Models]; Note 1. Replace the bogus *NM_OFDRIVER "hw-id" with a real hardware PnP ID ; Note 2. Optionally, add more NIC models supported by this file;; DisplayName Section hw-id; ----------- ------- ------;%DeviceDescription%=*yourdriver.ndi, *NM_OFDRIVER [tap08qemu] %DeviceDescription% = tap08qemu.ndi, *QEMU_TAPthendevcon.exe install oemwin2k.inf *QEMU_TAPworks for me (don't ask which is the trick, as I don't know).Just got tapinstall.exe from OpenVPN, which I think it is not redistributable as well (but check it's status - I am not at all sure of this ).And I can confirm that:tapinstall.exe install oemwin2k.inf *QEMU_TAPworks allright with the modified .inf.I'll see if I can find anythng else.jaclazP.S.:Found an interesting link:http://forum.installsite.net/index.php?showtopic=15898it seems like the most "plain" way is to create a DIFX package using DPINST, which is redistributable. Edited April 1, 2010 by jaclaz
ravedadave Posted April 2, 2010 Author Posted April 2, 2010 Ok, found the problem with devcon.exe.You need to change this:;----------------------------------------------------------------; Manufacturer + Product Section (Done);----------------------------------------------------------------[Manufacturer] %Provider% = tap08qemu[tap08qemu] %DeviceDescription% = tap08qemu.ndi, tap08qemuto this:[Manufacturer] %Provider% = tap08qemu[Models]; Note 1. Replace the bogus *NM_OFDRIVER "hw-id" with a real hardware PnP ID ; Note 2. Optionally, add more NIC models supported by this file;; DisplayName Section hw-id; ----------- ------- ------;%DeviceDescription%=*yourdriver.ndi, *NM_OFDRIVER [tap08qemu] %DeviceDescription% = tap08qemu.ndi, *QEMU_TAPthendevcon.exe install oemwin2k.inf *QEMU_TAPworks for me (don't ask which is the trick, as I don't know).Just got tapinstall.exe from OpenVPN, which I think it is not redistributable as well (but check it's status - I am not at all sure of this ).And I can confirm that:tapinstall.exe install oemwin2k.inf *QEMU_TAPworks allright with the modified .inf.I'll see if I can find anythng else.jaclazP.S.:Found an interesting link:http://forum.installsite.net/index.php?showtopic=15898it seems like the most "plain" way is to create a DIFX package using DPINST, which is redistributable.Thanks for all your work!I will look at this today, If I could just find a different solution to devcon.exe / tapinstall.exe it would be greate,I have experimented with DPINST but had no luck so far.Dave.
jaclaz Posted April 2, 2010 Posted April 2, 2010 Everything seems to lead that "something else" besides the .inf is needed when installing a "hardware" driver.This could be the "right" solution:http://nsis.sourceforge.net/InstDrv_plug-inthe NSIS installer is competely free. I am attaching a quickly put together thingy, that works for me, obviously it will need to be refined and polished, but it seems like working. jaclazQEMUTAPNSIS.zip
ravedadave Posted April 2, 2010 Author Posted April 2, 2010 Everything seems to lead that "something else" besides the .inf is needed when installing a "hardware" driver.This could be the "right" solution:http://nsis.sourceforge.net/InstDrv_plug-inthe NSIS installer is competely free. I am attaching a quickly put together thingy, that works for me, obviously it will need to be refined and polished, but it seems like working. jaclazYou are a * that works great!,I can't thank you enough.Dave.
jaclaz Posted April 2, 2010 Posted April 2, 2010 You are a * that works great!I am an asterisk? I can't thank you enough.You don't need to , just my small way to thank you for the great work you've done over the years with Qemu Manager. jaclaz
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now