Search code examples
python-3.xpowershellautomationsilent-installercab

How to change TARGET DIRECTORY/path of installation for EXE file during SILENT installation


I am trying to silent install exe softwares while changing the target directory during installation.

I am not able to change the path/directoy during installment.

I am aware of switches available for exe files, i have attached the same for the exe i am trying to install , it seem to come under EDITED Advanced Installer>> (Self-Extracting Microsoft CAB archive)

Command Switches: /extract:path ; /log[:path] ; /lang:lcid ;/quiet ; /passive ; /norestart ; /forcerestat

The various commands/block i tried: Python

p = subprocess.Popen(r'path\file.exe /quiet /v"INSTALLDIR=\"path""', shell=True)
p = subprocess.Popen(r'path\file.exe /quiet TARGETDIR="path""')

I am facing the same problem with powershell.

Any help is appreciated. enter image description here


Solution

  • There dosent seem to be any Target/path usable with AccessDatabaseEngine_X64.exe, the only workaround i found was to use /extract to get the msi out of the exe then use @mklement0 suggestion.