Page 1 of 1

MSI installation problem as system

Published: September 5, 2023 - 10:14 AM
by tux
Hello,

I'm trying to create a package to deploy an MSI.
If I run a command prompt as administrator, my command line works perfectly.
If I'm in developer mode with PyScripter, my package works fine.

However, if I deploy the package to a machine, it doesn't work.
The only difference I've found is that in one case I'm running as administrator and in the other as system.

I tried using the `run_as_administrator` function, but it didn't change anything.

How can I force the installation as administrator without asking the user?

The MSI in question is: https://ltspice.analog.com/software/LTspice64.msi

Thank you

Re: Problem installing MSI as system

Published: September 5, 2023 - 3:37 PM
by dcardon
Hello Sébastien,

You should try launching the installation using the LOCAL SYSTEM account (this is the account used by the WAPT agent).
To do this, you can perform privilege escalation using psexec (tis-sysinternals-pstools package):

Code: Select all

psexec -i -s cmd
then launch the msi installation, either via command line or even graphically, and then see the error message that appears.

Sincerely,

Denis