【发布时间】:2021-01-01 08:59:31
【问题描述】:
我正在尝试静默安装 exe 软件,同时在安装过程中更改目标目录。
我无法在安装过程中更改路径/目录。
我知道可用于 exe 文件的开关,我为我尝试安装的 exe 附加了相同的开关,它似乎属于 已编辑 高级安装程序>> (自解压 Microsoft CAB 存档)
命令开关: /extract:path ; /log[:path] ; /lang:lcid ;/安静 ; /被动的 ; /norestart ; /forcerestat
我尝试过的各种命令/块: Python
p = subprocess.Popen(r'path\file.exe /quiet /v"INSTALLDIR=\"path""', shell=True)
p = subprocess.Popen(r'path\file.exe /quiet TARGETDIR="path""')
我在使用 powershell 时遇到了同样的问题。
【问题讨论】:
标签: python-3.x powershell automation silent-installer cab