vijay
Posts: 26
Joined: Wed Feb 22, 2017 1:28 pm

Installer with two driver files

Hi all,
Shall I install a package with two driver file?. I have added my driver files in "Files and Folder" option. Under "Application folder",I have added the following folders:
1.WLAN 2.BT . And I have the inf and sys files names are different only. Each folder has inf,sys,dll and cat files. Actually I have to install wifi driver first and BT driver after that.And both drivers are using same device.

Please can anyone tell me how to do this?

I tried this one.I have added two driver files under "DRIVERS" option.That is first I have added Wifi driver and after that added BT driver.And finally built that. If I execute the package Wifi installed properly and also working fine.But BT not installed properly ie.,not working(.sys file not copied to System32/Driver folder).



Thanks,
Vijay.
Eusebiu
Posts: 4960
Joined: Wed Nov 14, 2012 2:04 pm

Re: Installer with two driver files

Hi Vijay,

I'm not sure why the second drive is not installed for you. Can you install it manually outside Advanced Installer? Also, can you reproduce the problem on multiple clean machines?

If so, can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com, so we can investigate them?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vijay
Posts: 26
Joined: Wed Feb 22, 2017 1:28 pm

Re: Installer with two driver files

Hi Eusebiu,
I have sent verbose log and AIP(project file) to support@advancedinstaller.com.Can you please check that zip file and solve my issue.

my mail ID:vijayraj87654321@gmail.com

Thanks,
Vijay.
Eusebiu
Posts: 4960
Joined: Wed Nov 14, 2012 2:04 pm

Re: Installer with two driver files

Hi Vijay,

I looked over the files that you send and found the following lines in the log:
DIFXAPP: INFO: Looking for Model Section ...
DIFXAPP: INFO: No matching devices found in INF "C:\Windows\System32\DriverStore\FileRepository\rpssdiobt.inf_amd64_7c1a0b7f73af14d0\rpssdioBT.inf" on the Machine.
DIFXAPP: INFO: No drivers installed. No devices found that match driver(s) contained in 'C:\Windows\System32\DriverStore\FileRepository\rpssdiobt.inf_amd64_7c1a0b7f73af14d0\rpssdioBT.inf'.
DIFXAPP: INFO: RETURN: DriverPackageInstallW (0xE000020B)
DIFXAPP: INFO: The device(s) for which the driver is being installed has not been plugged into the computer.


Also, as mentioned in our "Drivers page" article, "Advanced Installer uses Windows Driver Install Frameworks (DIFx), version 2.1, to install the drivers. This framework is designed for installing Software First Install drivers only. It is not recommended to use it for installing Hardware First Install type drivers, e.g. a driver for your sound card."

Although most hardware drivers are supported, some of them do not work and the only solution is to create a custom action. You can take a look on the "Problem installing device driver for FTDI Chip" thread which debates a similar problem.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vijay
Posts: 26
Joined: Wed Feb 22, 2017 1:28 pm

Re: Installer with two driver files

Hi Eusebiu,
Our installation following the "Software first installation" type only.If I install WiFi driver alone working properly.That is during installation,all the driver files are copied into 'Driverstore' and when I am inserting the device,will take the resources from 'Driverstore' and after that copied the .sys files to 'Drivers' path.Finally Wifi working good.The same way,during Bluetooth driver installation all the driver files are copied into 'Driverstore' but .sys file not copied into 'Drivers' folder from 'Driverstore'.And also oem.inf generated but oem.PNF not generated.

Is there any possible way to do this?

Thanks,
Vijay.
Eusebiu
Posts: 4960
Joined: Wed Nov 14, 2012 2:04 pm

Re: Installer with two driver files

Hi Vijay,

Since the driver is related to a hardware device, it is a hardware driver which is not guaranteed to work. Does the Bluetooth driver work if you try to install it manually outside Advanced Installer?

The log file says that "the device(s) for which the driver is being installed has not been plugged into the computer", so please make sure that the Bluetooth device is connected to the computer when you try to install its driver.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vijay
Posts: 26
Joined: Wed Feb 22, 2017 1:28 pm

Re: Installer with two driver files

Hi Eusebiu,
Manual installation working fine.And we are having one device for both WIFI and BT ie.,coex driver.So in .inf file,we are keeping hardware id for WIFI driver is "USB\VID_1256&PID_041b" and for BT driver "root\companyname".



Thanks,
vijay.
Eusebiu
Posts: 4960
Joined: Wed Nov 14, 2012 2:04 pm

Re: Installer with two driver files

Hi Vijay,

Can you reproduce the problem on multiple machines? Also, does it work if you try to install only the Bluetooth drives from your package, without the WiFi driver?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vijay
Posts: 26
Joined: Wed Feb 22, 2017 1:28 pm

Re: Installer with two driver files

Hi Eusebiu,
I tried only Bluetooth driver like this.Actually my device ID is "USB\VID_1256&PID_9876".For installation testing, I have modified in .inf file that "root\companyname" as hardware ID.So if I install it from Device manager(manually),its working fine. But If I install using AI package, not working.That is all the files are copied,but after inserting the module .sys file is not copied into 'Drivers' folder.

I tried above method in multiple machines.Please help me to do this?.I dont know why it is installing manually but installer not doing?.Devcon also installing properly.




Thanks,
Vijay.
Eusebiu
Posts: 4960
Joined: Wed Nov 14, 2012 2:04 pm

Re: Installer with two driver files

Hi Vijay,

We use the Windows Installer support to install drivers and, as I already mentioned, not all of the hardware drivers are guaranteed to work. In this case the solution is to create a custom action that installs those drivers.

Would it work if you create the "Divers" folder in the "Files and Folders" page of your project and place the .sys file there, so it will be copied during the installation?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vijay
Posts: 26
Joined: Wed Feb 22, 2017 1:28 pm

Re: Installer with two driver files

Hi Eusebiu,
"Would it work if you create the "Divers" folder in the "Files and Folders" page of your project and place the .sys file there, so it will be copied during the installation?". Can you please explain me clearly?




Thanks,
Vijay.
Eusebiu
Posts: 4960
Joined: Wed Nov 14, 2012 2:04 pm

Re: Installer with two driver files

Hi Vijay,

You said that your driver is not copied in the "Drivers" folder (I think you mean the "C:\Windows\System32\Drivers" folder). So, to achieve this, you can go in the "Files and Folders" page of your project, create a new folder under the "Windows Volume -> Wnidows -> System" and call it "Drivers", then place your driver file into that folder (also keep the driver configuration in the "Drivers" page). I'm not sure if this will work, but you can try this.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vijay
Posts: 26
Joined: Wed Feb 22, 2017 1:28 pm

Re: Installer with two driver files

Hi Eusebie,
For that,I've created one .bat file which contains Devcon tool. So I'm trying to add in custom actions. After one driver installation,bat file(second driver) should be execute. Can you please tell me how to do?

Thanks,
Vijay.
Eusebiu
Posts: 4960
Joined: Wed Nov 14, 2012 2:04 pm

Re: Installer with two driver files

Hi Vijay,

To execute your BAT file in a custom action, you need to first add it in the "Files and Folders" page (you can also add it as a temporary file), then go in the "Custom Actions" page, add a "Launch file" custom action that will run the BAT file after the "Add Resources" action group and set the "deferred" with "no impersonation" options for it.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vijay
Posts: 26
Joined: Wed Feb 22, 2017 1:28 pm

Re: Installer with two driver files

Hi Eusebie,
I did that.Its working fine.But while uninstallation,"DEVCON" tool not removing oem.inf files which is related to our driver.Is there any tool available or any solution for this?

Thanks,
Vijay.

Return to “Common Problems”