cannot install a 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!

doolav
Posts: 23
Joined: Mon Dec 13, 2010 1:29 pm

cannot install a driver

Hello,
I am trying a very simple install project in order to install a (network related) driver on 32bit windows 7 machine. Manual installation using .inf file works fine, however when I run my project, it does not install the driver - it copies the .sys and .inf files into my c:\program files\testCompany\testInstallDriver\bin directory, but it does not copy the .sys file into c:\windows\system32\drivers directory, so my driver is not getting installed.
The aip file is attached - is there something obviously wrong with it?

Thanks,
Alex.
Attachments
setup.aip
(12.17 KiB) Downloaded 606 times
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: cannot install a driver

Hi and welcome to our forums,

The driver is not installed because you have not set it in the Drivers page. In this case the setup package built by Advanced Installer will simply
place the file in the destination folder you have set.

To install the driver please go to Drivers page and use the "Add" option to select the .inf file which is already added in the project.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
doolav
Posts: 23
Joined: Mon Dec 13, 2010 1:29 pm

Re: cannot install a driver

Hi Bogdan,
Thanks for the fast reply.
Yes, sorry - lost that .inf entry somewhere... but I tried with that entry - see the 'proper' aip file attached - it's still the same issue.

Thanks,
Alex.
Attachments
setup.aip
(12.9 KiB) Downloaded 553 times
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: cannot install a driver

Hi,

Can you please create a verbose log of the installation process and send it to support at advancedinstaller dot com so we can investigate it?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
doolav
Posts: 23
Joined: Mon Dec 13, 2010 1:29 pm

Re: cannot install a driver

Sure - attached.
Also - although the .sys file was not placed into c:\windows\system32\drivers directory, it was placed into c:\windows\system32\driverstore\filerepository\tcpredirector.inf_x86_neutral_bb76b04d4f138581 directory...

Thanks,
Alex.
Attachments
msi.log
(259.94 KiB) Downloaded 480 times
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: cannot install a driver

Hi,
Please note Advanced Installer can creates setup package that install 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.

Is your driver a Software First Install one or a Hardware one?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
doolav
Posts: 23
Joined: Mon Dec 13, 2010 1:29 pm

Re: cannot install a driver

I think it's a SW first - it's a WFP callout tcp traffic redirector. It does not talk to HW directly anyway.

Thanks,
Alex.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: cannot install a driver

Hi,

Can you please send us the .inf anf .sys files so we can analyze this behavior further more?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
doolav
Posts: 23
Joined: Mon Dec 13, 2010 1:29 pm

Re: cannot install a driver

Attached!

Thanks,
Alex.
Attachments
tcpredirector.zip
(12.59 KiB) Downloaded 479 times
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: cannot install a driver

Hi,

The log seems to indicate the install completes successfully and Windows Installer does nor report any problem.

Advanced Installer uses Windows Driver Install Frameworks (DIFx), version 2.1, to install the drivers. Maybe your driver is not fully compatible with DIFx, can you please contact
the provider of the driver and ask them if the driver can be installed using DIFx 2.1?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
doolav
Posts: 23
Joined: Mon Dec 13, 2010 1:29 pm

Re: cannot install a driver

Hi,
the provider of this driver is me :)
However, I tried the same with MS WDK sample called ddproxy (this I used as a prototype for my driver), and the result was the same.
Is there any workaround I could use to install my driver?
Thanks,
Alex.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: cannot install a driver

Hi Alex,

Since the driver is not compatible with DIFx the Drivers page cannot be used.

Another option would be to try using custom actions to install the driver. You can use an EXE, C++ DLL, VBScript or JavaScript.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
doolav
Posts: 23
Joined: Mon Dec 13, 2010 1:29 pm

Re: cannot install a driver

Hi Bogdan,
I, probably, could make the driver DIFx-compatible, but I think I still would have to use custom action, as this driver installation is conditional - it only has to be installed if we are on windows 7 or higher.
Anyway, with custom action it works fine, I just wonder - if I have a DIFx driver - can I put a condition on its installation in the 'drivers' page?
Thanks,
Alex.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: cannot install a driver

Hi Alex,

You can set a condition very easy, but from the Organization page, not Drivers page. When you add a driver Advanced Installer automatically creates a feature for it, what you need to do
is to go to Organization page and use the "Install based on condition:" option to condition the corespondent feature, as you would to with a custom action.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
doolav
Posts: 23
Joined: Mon Dec 13, 2010 1:29 pm

Re: cannot install a driver

Great, thanks for your help!

Return to “Common Problems”