Code: Select all
pnputil -i -a ximeausbx64.inf
I added the folder with the .INF and all needed files to the APPDIR as a subfolder (called "XimeaUsbDrivers"). Then I tried to add some Custom Actions.
First I rejected using Launch File and Launch Installed File because they seem to require an EXE, MSI or some other type but not a Windows batch file
Next I rejected Execute inline script code only allows for VBS or Javascript
But the Run PowerShell inline script step seemed promising. I googled around and found what looks to be a powershell command that will do it
Code: Select all
Get-ChildItem "C:\mydrivers\" -Recurse -Filter "*.inf" |
ForEach-Object { PNPUtil.exe /add-driver $_.FullName /install }
So I just need to change
to be... whatever the installed path of XimeaUsbDrivers is.C:\mydrivers\
And I tried to do that. Tried to give the script an argument of [APPDIR]\XimeaUsbDrivers. Tried to make the script take it as an argument and pass it to the command. I cannot get it right. The installer runs but this step never seems to happen. The drivers do not get installed. The installer log file tells me nothing.
Am I doing this totally wrong? Can someone point me in the right direction?
-Joe