I am trying to package the flameshot program (.msi), but during installation I get the following error code:
Error returned non-zero exit status 1612.
I think the program is trying to install itself on the user's session. Do you have any idea how to stop the installation?
Code: Select all
uninstallkey=['{EBC7D3FB-4ED6-4EF4-ADD0-5695E6716C8B}']
def install():
# Declaring local variables
# Installing the software
print("Installing: Flameshot-12.1.0")
install_msi_if_needed ('Flameshot-12.1.0-win64.msi',properties={'ALLUSERS':'1'})
print("Flameshot-12.1.0 est installé")
def uninstall():
print("Uninstalling: Flameshot-12.1.0")
run(r'MsiExec.exe /x /q {EBC7D3FB-4ED6-4EF4-ADD0-5695E6716C8B}')
print("Flameshot-12.1.0 est désinstallé")