我想知道是否有一个选项可以在“安装”自定义操作中获得msiexec命令行(对于安装程序,我们使用vs2008“设置项目”)。
我们知道我们可以访问“ CustomActionData”参数,但是如果我们运行以下命令:
[
'attribute' => 'enabled',
'format' => 'boolean',
'filter' => SwitchInput::widget([
'name' => 'DeviceSearch[enabled]',
'options' => [
'class' => 'form-control'
],
'value' => $searchModel->enabled,
'tristate' => true
])
]
我们知道如何访问“ CustomActionData”参数( user = test log = true ),但是我们不知道如何访问整个msiexec命令行参数(包括“ / i / quiet” )...
是否有可能,因为在Process Monitor中,我们可以看到在安装操作时,该msiexec进程(以SYSTEM身份运行)通过以下命令运行:
echo "<form action='' method='POST'><table>";
foreach($reports->result() as $row)
{
echo "<tr>";
echo "<td><input type="checkbox" name=""></td>;
echo "<td>".$row->name."</td>";
echo "<td>".$row->time."</td>";
echo "<td>".$row->spot."</td>";
echo "<td>".$row->priority."</td>";
echo "</tr>";
}
echo "<tr><td colspan='5'><input type='submit'></td></tr>";
echo "</table></form>";
那么,是否有可能在安装程序(c ++)代码中获取“ msiexec”命令行参数?