How to install Hardware First Install type driver? - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Marek
Posts: 24
Joined: Mon Dec 28, 2009 9:25 am

How to install Hardware First Install type driver?

I want to install the drivers for my USB device.
I tried to use the INF files in the group 'Drivers'. It did not work.
I found the help: "It is not recommended to use it for installing Hardware First Install type drivers, e.g. a driver for your sound card."

Then I tried to use DPInst.exe inserted into Custom Actions, but I always get the error 1721. All the driver files I have included in the project as temporary files.
I already read all the posts on this topic published in this forum. But it's still not working.
What more can I do? I ask for a working example.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How to install Hardware First Install type driver?

Hi,

Advanced Installer uses Windows Driver Install Frameworks (DIFx), version 2.1, to install drivers. This framework is designed for installing Software First Install drivers. These are the drivers that come with your application, e.g. an antivirus filter for the network adapter. It is not recommended to use it for installing Hardware First Install type of drivers, e.g. a driver for your sound card.

Although most hardware drivers are supported, they require an INF to be installed with Advanced Installer. If you can install your drivers with DIFx, you can configure them in Advanced Installer. Otherwise the only solution is a custom action.

Maybe you are getting the error because the custom action is not elevated ( it is not set with "Deferred, with no impersonation" execution option ). Can you please give us more details about the behavior and also send the .AIP (project) to support at advancedinstaller dot com so we can investigate it?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Marek
Posts: 24
Joined: Mon Dec 28, 2009 9:25 am

Re: How to install Hardware First Install type driver?

Thanks for your reply, Mihai.
I've already corrected a bug in my project installer, my mistake. I used DPInst.exe in Custom Action.

But I have some observations concerning the first case. Maybe you are interested.
1. First I added all the driver files to the 'Application Folder'. I have the driver files in two versions - 'i386' and 'amd64' - but the INF file is common to both versions.
2. I added my INF file to the 'Resources->Drivers'.
3. Advanced Installer rebuilt the structure of the components immediately (Organizations->Features And Components).
He created new feature that named as INF file.
This feature includes three components, which are called: [INFname].cat, [INFname].sys i [INFname].sys_1.
Component [INFname].cat contains two files with the extension .cat and .inf.
Component [INFname].sys contains files with the extension .sys and .dll in 'i386' version.
Component [INFname].sys_1 contains files with the extension .sys and .dll in 'amd64' version.
Everything would be fine, but a little mistake.
Property 'Condition' in component '[INFname.sys]' has value 'VersionNT64' although these files are for 'i386'. It also highlighted attribute named '64-bit Component '.
During the driver installation on 32-bit operating system does not have these files in the specified location, so the driver can not be installed.

P.S. Sorry for my english.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: How to install Hardware First Install type driver?

Hi Marek,

I'm not sure why this happens. Can you please create a zip with all the files and send it to us at support at advancedinstaller dot com so
we can investigate this further more.

In the meantime you can simply edit the conditions and flags of the components so they are installed correctly.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”