MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Driver install fails to install and start driver

Hi,

I posted another thread ( http://www.advancedinstaller.com/forums ... 941#p93941 ) on a dialog that pops up during the device driver install, thinking this may be the cause, but as it turns out the dialog is "normal"... but what is not normal is the driver fails to install.

I had the developer who wrote the driver manually test installing the driver using the .INF file and it succeeds.

But the attached driver install project fails to install the driver when the installer is run.

Would you please take a look into why this project is not installing the driver?
( I have attached the project )

Thanks
Mike
Attachments
InstallTest.zip
(281.93 KiB) Downloaded 1035 times
Last edited by MLiss@Cetrus.com on Mon May 08, 2017 9:58 pm, edited 2 times in total.
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Driver install fails to install driver

Here is a snapshot of our test program after running the install

NOTE: the "Driver is not installed and not running" is the important part of the this screen shot:
Application_AfterRunningInstaller.PNG
Application_AfterRunningInstaller.PNG (9.74 KiB) Viewed 10576 times
Last edited by MLiss@Cetrus.com on Mon May 08, 2017 9:56 pm, edited 3 times in total.
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Driver install fails to install driver

After performing the manual install steps (below), I really think this is an advanced installer issue
Last edited by MLiss@Cetrus.com on Mon May 08, 2017 9:54 pm, edited 2 times in total.
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Driver install fails to install driver

Here are the manual install steps

NOTE: These steps are performed on the files (and file structure) that the installer leaves when the install is complete, but the driver is not installed or running ( see above )
Last edited by MLiss@Cetrus.com on Mon May 08, 2017 9:55 pm, edited 3 times in total.
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Driver install fails to install driver

Step 1:

Navigate to the driver folder. Right click on .INF file. Click install. Driver successfully installs (no error messages are given)
Application_After_ManualInstall_01.png
Application_After_ManualInstall_01.png (14.09 KiB) Viewed 10572 times
Last edited by MLiss@Cetrus.com on Mon May 08, 2017 5:25 pm, edited 2 times in total.
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Driver install fails to install driver

Step 2:

Open administrator command prompt . Type "sc start pdetect" and hit enter. Driver successfully starts running
Application_After_ManualInstall_04.png
Application_After_ManualInstall_04.png (13.37 KiB) Viewed 10572 times
Last edited by MLiss@Cetrus.com on Mon May 08, 2017 5:26 pm, edited 2 times in total.
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Driver install fails to install driver

Step 3:

Start the test program. Notice "Driver is installed and running" is now displayed
Application_After_ManualInstall_05.png
Application_After_ManualInstall_05.png (9.65 KiB) Viewed 10572 times
Last edited by MLiss@Cetrus.com on Mon May 08, 2017 9:56 pm, edited 1 time in total.
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Driver install fails to install driver

Please advise on how to proceed.
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Driver install fails to install and start driver

Hello Mike,

I'm not sure why when using our "Drivers" support to install your driver files your EXE application doesn't detect the installed driver, but there may be an incompatibility between your driver installation requirements and our built-in support for drivers.

However, since you iterated the manual steps for a successful driver installation, instead of using our "Drivers" page to install your driver I have configured the driver installation steps into your setup project using four "Launch file" custom actions, in "Custom Actions" page:
1. two custom actions which install, respectively start the driver service (configured on install)
2. and another two custom actions which stop the driver service , respectively uninstall the driver (configured on uninstall)

Please find attached to this thread your AIP (project file) configured accordingly. Please rebuild and test it and let us know if this works as expected.

All the best,
Daniel
Attachments
DriverInstallTest.aip
(21.8 KiB) Downloaded 673 times
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Driver install fails to install and start driver

My install fails:
installFailed.PNG
installFailed.PNG (210 KiB) Viewed 10543 times
installFailed_2.PNG
installFailed_2.PNG (185.26 KiB) Viewed 10543 times
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Driver install fails to install and start driver

Here is the install log
Attachments
InstallLog.txt
(248.15 KiB) Downloaded 449 times
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Driver install fails to install and start driver

Here is my install project - the real one... not the test one, with the changes you suggested.

NOTE: This install project installs a windows service as well as the driver

ANOTHER NOTE: the service that is installed USES the driver that is also installed.
Attachments
AgentServiceInstaller.zip
(728.66 KiB) Downloaded 786 times
Last edited by MLiss@Cetrus.com on Wed May 10, 2017 2:58 pm, edited 1 time in total.
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Driver install fails to install and start driver

Hello Mike,

Please also check the "When the system is being modified (deferred)" execution time option for all of your custom actions in "Custom Actions" page.

Let me know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Driver install fails to install and start driver

I started to post images... but attached project instead
Last edited by MLiss@Cetrus.com on Wed May 10, 2017 3:12 pm, edited 2 times in total.

Return to “Building Installers”