Page 2 of 2

Re: [SOLVED] Run as administrator without a password (when the system account isn't sufficient) \o/

Published: June 15, 2020 - 11:25
by florentR2
sfonteneau wrote: Apr 30, 2020 - 2:48 PM Can you try using the run_as_administrator function?

Code: Select all

from common import run_as_administrator

run_as_administrator('sample.exe','--args')
Good morning,
I had high hopes but it doesn't work with all packages that do not support installation under SYSTEM account.
For example, EBP, which includes SQL Express.
I tried both run_as_administrator and Start-Process, both with an MSI and an EXE file
Damage

Re: [SOLVED] Run as administrator without a password (when the system account isn't sufficient) \o/

Published: July 8, 2020 - 5:00 PM
by olaplanche
I need to revisit this package sometime because I'm also deploying EPB PGI Education; I'll create a new post if I manage to do anything!

Re: [SOLVED] Run as administrator without a password (when the system account isn't sufficient) \o/

Published: November 15, 2020 - 8:51 AM
by gaelds
Good morning,
Sorry to reply to a resolved message, but I had the same problem with Archicad, so I install it by simply running the MSI file. It's worked that way for us for several years.

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *
import time

uninstallkey = ['{6AA0BE64-99F3-4148-ACD4-CAB38B3C69C8}']

def install():
    print('Installation de Archiwizard 2021 9.0.0')
    softname = 'ArchiWIZARD'
    check_installed = installed_softwares(softname)
    if check_installed:
	for uninstall in check_installed:
		key=uninstall['key']
        if installed_softwares(uninstallkey=key
			print('Desinstallation des anciens ArchiWIZARD')
			cmd = WAPT.uninstall_cmd(uninstall['key'])
			run_notfatal(cmd)
			time.sleep(5)
	run('ArchiWIZARD-2021-x64.msi /qn /norestart')

Re: [SOLVED] Run as administrator without a password (when the system account isn't sufficient) \o/

Published: November 16, 2020 - 8:53 AM
by florentR2
Thank you.
Unfortunately, I had already tried all the classic methods without success: run(), install_msi_if_needed(), install_exe_if_needed()