I have a WinForm Application done in Visual Studio 2012, Framework 4.5. I made the Setup Project with InstallShield. I need to install this App on PC that may not have Framework 4.5 installed, so I add Framework 4.5 as a PreRequisite. So far So good. What I want is to Install the PreRequisite automatically, without asking my clients when they Runs the Setup. Is that Possible? Thanks
我在Visual Studio 2012,Framework 4.5中完成了一个WinForm应用程序。我使用InstallShield创建了安装项目。我需要在可能没有安装Framework 4.5的PC上安装此应用程序,因此我将Framework 4.5添加为PreRequisite。到现在为止还挺好。我想要的是自动安装PreRequisite,而无需询问我的客户何时运行安装程序。那可能吗?谢谢
2 个解决方案
#1
1
Edit your PRQ to always install .net45 with no input. Here is a .net40 PRQ we use locally.
编辑您的PRQ以始终安装.net45而无需输入。这是我们在本地使用的.net40 PRQ。
/passive has it show a progress bar, but you could just as easily do /q (no UI at all). The only problem would be a very long startup delay to your install which the user would probably interpret as "something is wrong" so I'd recommend keeping /passive.
/ passive让它显示进度条,但你可以轻松地执行/ q(根本没有UI)。唯一的问题是你的安装很长的启动延迟,用户可能会将其解释为“出错”,所以我建议保持/被动。
#2
0
InstallShield doesn't support this feature. The closest is to make the prerequisite mandatory. Another possibility would be to associate the PRQ to a feature to make it a "feature prereq" instead of a "setup prereq". This would cause Setup.exe to go right into your MSI and then defer the installation until after user interview.
InstallShield不支持此功能。最接近的是强制要求先决条件。另一种可能性是将PRQ与特征相关联,使其成为“特征先决条件”而不是“设置先决条件”。这将导致Setup.exe直接进入您的MSI,然后将安装推迟到用户面试之后。
#1
1
Edit your PRQ to always install .net45 with no input. Here is a .net40 PRQ we use locally.
编辑您的PRQ以始终安装.net45而无需输入。这是我们在本地使用的.net40 PRQ。
/passive has it show a progress bar, but you could just as easily do /q (no UI at all). The only problem would be a very long startup delay to your install which the user would probably interpret as "something is wrong" so I'd recommend keeping /passive.
/ passive让它显示进度条,但你可以轻松地执行/ q(根本没有UI)。唯一的问题是你的安装很长的启动延迟,用户可能会将其解释为“出错”,所以我建议保持/被动。
#2
0
InstallShield doesn't support this feature. The closest is to make the prerequisite mandatory. Another possibility would be to associate the PRQ to a feature to make it a "feature prereq" instead of a "setup prereq". This would cause Setup.exe to go right into your MSI and then defer the installation until after user interview.
InstallShield不支持此功能。最接近的是强制要求先决条件。另一种可能性是将PRQ与特征相关联,使其成为“特征先决条件”而不是“设置先决条件”。这将导致Setup.exe直接进入您的MSI,然后将安装推迟到用户面试之后。