The script installs a new device using Windows Device Console (devcon.exe).
Script:
Code: Select all
$operationSystemPostfix = If ([Environment]::Is64BitOperatingSystem) {"x64"} Else {"x32"}
$devconPath = (AI_GetMsiProperty APPDIR) + "\Resources\$operationSystemPostfix\devcon.exe"
$driverPath = (AI_GetMsiProperty APPDIR) + "\Driver\driver.inf"
function installDeviceDriver()
{
$params = @("install", $driverPath, "driver_identifier")
& $devconPath $params
}
installDeviceDriver
The setup wizard ended prematurely
Click the "Finish" button to exit Setup wizard.
Show log (marked checkbox).
The log file has error description:
Could you please help with the error? What does it mean? How I can get more information to solve the problem?...
CustomAction InstallDeviceDriver returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 18:01:47: InstallDeviceDriver. Return value 3.
Action ended 18:01:47: INSTALL. Return value 3.
...