Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/csharp-4.0/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 4.0 如何创建从install shield 2012中的命令行安装的安装程序_C# 4.0_Installshield_Silent Installer - Fatal编程技术网

C# 4.0 如何创建从install shield 2012中的命令行安装的安装程序

C# 4.0 如何创建从install shield 2012中的命令行安装的安装程序,c#-4.0,installshield,silent-installer,C# 4.0,Installshield,Silent Installer,我想禁用对话框选项卡中的屏幕,但我也希望安装程序不显示任何屏幕 从命令行启动并静默安装 string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop); ProcessStartInfo psi = new ProcessStartInfo(); psi.Arguments = "/s /v /qn /min"; psi.CreateNoWindow = true; psi.WindowStyl

我想禁用对话框选项卡中的屏幕,但我也希望安装程序不显示任何屏幕

从命令行启动并静默安装

string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);

ProcessStartInfo psi = new ProcessStartInfo();
psi.Arguments = "/s /v /qn /min";
psi.CreateNoWindow = true;
psi.WindowStyle = ProcessWindowStyle.Hidden;
psi.FileName = desktopPath + "\\" + "Tabcontrol.exe";
psi.UseShellExecute = false;
Process.Start(psi);

如果在silentmode下运行installshield安装程序,则需要包含安装所需信息的记录文件。一开始并不是真的沉默,更像是无人看管和沉默

在这里,您可以找到如何创建此记录文件的信息:


在这里,您可以找到有关无人参与/静默安装程序的所有需要了解的信息:

我希望安装程序时没有用户界面,并且安装在后端。实际上,当我尝试使用/r创建响应文件时,它不会在%windir%中创建任何.iss文件,并且只有安装程序已启动。响应文件适用于InstallShield Premier和Professional版本中的InstallScript项目。Express项目(或Premier或Professional版本中的基本MSI项目)不创建或读取响应文件。您使用的是哪种项目类型?