Page 1 of 1

Package that cannot be installed with the System account / run_as_administrator function

Published: July 22, 2020 - 12:16 PM
by mviale
Hello everyone,

I have a program that won't install using the system account.
After searching the forum, I tried a command suggested by Simon: `wapt-get install --direct mypackage` from an MS-DOS command prompt in administrator mode, and my package deploys correctly.
However, as soon as I try to deploy it via the console, I get error 1602, which corresponds to "The user cancels installation."

I saw that there's a `run_as_administrator` function available, but it only seems to deploy .exe files? In my case, it's an .msi file. If I use the command: `
run_as_administrator('msiexec.exe /I As-Tech_Web_Mobile.msi /qn,'')`
, it doesn't seem to find msiexec.exe.

Is there an equivalent function for MSI files?

Mathieu