Not able to install root enumerated driver. - Advanced Installer Community
raj.kamsani
Posts: 4
Joined: Wed Mar 22, 2017 8:03 am

Not able to install root enumerated driver.

Hi Team,

Not able to install root enumerated driver(Hardware ID in the .inf file root) using advanced installer. Could you please someone help me here.

Thanks,
Raj.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Not able to install root enumerated driver.

Dear Raj,

The indications you can follow are in the How do I install a driver? article. However, the DIFx framework we use is designed for installing Software First Install drivers only.

It might work for some Hardware First drivers but it's not assured. Basically if you can install your drivers with DIFx, you can configure them in Advanced Installer. Otherwise the only solution is a custom action.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
raj.kamsani
Posts: 4
Joined: Wed Mar 22, 2017 8:03 am

Re: Not able to install root enumerated driver.

Hello Mihai,
Thanks for your suggestion. Could you please confirm on the following,
In the custom action Can I install root enumerated driver using devcon tool. If yes, Where can I handle the Un-installation section.
Will installer take of it automatically?

Thanks,
Raj.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Not able to install root enumerated driver.

Dear Raj,

Windows Installer handles un-installation for registered resources only, custom actions you need to handle in every phase.

I am not that familiar with devcon.exe, but I can provide some guidelines to configure it in Advanced Installer:
- you should first start by playing with devcon.exe outside Advanced Installer, see how well it works with your driver, its quirks or setbacks
- once you have it working as you'd expect, you can automate that CLI configuration in the Custom Actions page
- if devcon.exe has other file dependencies you should add them in the Files and Folders page and use a Launch installed file predefined custom action
- since both the tool and the INF are installer configuration files you can consider adding them as temporary files; this way the installation can clean up after itself
- if devcon.exe is independent and portable, you can use Launch attached file predefined custom action
- you should schedule the one with the Install condition after Add Resources action group
- the one with Uninstall before Remove Resources action group
- all should have "When the system is being modified (deferred)" and "Run under the LocalSystem account with full privileges (no impersonation)" options enabled

If you have any questions or blockers just let us know.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
raj.kamsani
Posts: 4
Joined: Wed Mar 22, 2017 8:03 am

Re: Not able to install root enumerated driver.

Hello Mihai,

Thanks for the update. Now I'm able to install/Un-install the driver with devcon.exe with custom actions. But I have one issue with this approach.
When I ever I have un-installed the driver, .inf, .pnf, and .sys files are still existed for the driver which we installed using devcon tool. So next time installation is not working properly.

is there any option in the installer to remove those files, based on the Hardware ID or any other check.

Thanks,
Raj.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Not able to install root enumerated driver.

Dear Raj,

You're welcome. As I mentioned in my previous post, if you know you only use these files during installation, you can try to add them as temporary files. Another solution would be to use file removals.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”