Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Driver install fails when using .inf file

Hello Mike,

Currently your actions are after "Remove Resources" group, therefore when they will be launched will try to cal the INF file which was already deleted from disk. Thus the uninstall driver action will fail.

Can you please move the actions like I suggest in the below screenshot.
Driver_actionPlacement.PNG
Driver_actionPlacement.PNG (31.14 KiB) Viewed 4151 times
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 when using .inf file

Thanks - a picture is worth a thousand words...

thanks again !
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Driver install fails when using .inf file

You are always welcome Mike.

Just let us know anytime you need help.

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 when using .inf file

Daniel,

this works in the "PDetectInstaller" project that I sent you ... but it does not work for our Agent Installer

I have done the EXACT same steps in each installer ...
Install the device driver and start it.

The difference between the two installers:

PDetect installer installs an APPLICATION
Agent installer installs a SERVICE

The Agent version will not start PDetect see attached:
CannotStart.png
CannotStart.png (7.32 KiB) Viewed 4148 times
I will email BOTH setup projects to you for comparison.
Last edited by MLiss@Cetrus.com on Wed Apr 25, 2018 6:34 pm, edited 1 time in total.
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Driver install fails when using .inf file

I have sent BOTH projects via email - please build and run BOTH projects

Build the PDetect Installer first... then
run it… there are NO errors during the install..
run it again – click “remove”… NO errors during remove.

Now build the Agent service installer
run it… it FAILS to start the device driver ( see above post )


When you figure out why the device driver is failing to start... use any IP for the Agent Service. (see below)
The AGENT SERVICE will fail to connect to the manager, and it will fail to start – which is OK and expected
However, the device driver should install and be running

Use any IP address (eg 1.1.1.1) in the “Manager” edit box…
IP.png
IP.png (185.4 KiB) Viewed 4148 times
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Driver install fails when using .inf file

I found it... I had the PDetect setup as a service... and it was trying to start service.
Removed the "PDetect" service and it worked.

MSI (s) (BC:F4) [11:06:58:995]: Executing op: ServiceControl(,Name=CetrusAgentService,Action=1,Wait=1,)
MSI (s) (BC:F4) [11:07:00:664]: Executing op: ServiceControl(,Name=PDetect41,Action=1,Wait=1,)
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Driver install fails when using .inf file

Thank you for your follow up on this Mike.

I'm glad you found the culprit.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”