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
FOLLOW US
Get the latest news in Application Packaging