Reputation: 199
I have a WPF application which communicates with a device through serial port in Windows 10. My application is installed to a computer by using Setup.exe as shown by the following icon:
When one runs the Setup.exe it installs into the path:
C:\Users\myUserName\AppData\Local\DeployMyApp
with the following folders and files:
So far so good, but the thing is that a driver of the device also needs to be installed to be able to communicate with my WPF program.
And of course if I install the driver package(called dpinst64.exe) myself first and then run my application things work. But when I send my application to users, I would just want them to click Setup.exe once and it would first install dpinst64.exe and then the WPF.
But I also use auto updater Squirrel which checks the version each time the program is executed and updates the program if there is a new version. So the driver only needs to be installed if it is not installed.
1-) I have never dealt with such a situation before and would there be a workaround?
Basically how can I dictate Setup.exe to run to install the driver package first?
I use Nuget Package Explorer and create Setup.exe in Visual Studio by using the command: Squirrel --releasify MyNugetPackageName.nupkg
2-) If the above is not possible how can I check whether the driver is installed and if not prompt the user to install the driver when my program is executed?
Upvotes: 0
Views: 357