简体   繁体   English

Installshield和可再发行文件

[英]Installshield and Redistributables

I have .net 3.5 application 我有.net 3.5应用程序

I have made basic MSI installer with installshield added .net 3.5 in Redistributables tab rebuild and checked . 我已经完成了基本的MSI安装程序,并在Redistributables选项卡中添加了.net 3.5的installshield Redistributables构建并进行了检查。 msi and . msi和。 exe but size is same .net only added in ISSetupPrerequisites folder exe但大小相同ISSetupPrerequisites仅添加到ISSetupPrerequisites文件夹中

Installshield does not put Redistributables in .msi? Installshield不会将可Redistributables放在.msi中吗?

I must send full folder (DiskImages) to my clients? 我必须将完整文件夹(DiskImages)发送给客户端吗?

their would be no points in putting the redistribuable in the MSI since you cannot launch another msi while an msi is runing. 将可重分发文件放入MSI毫无意义,因为在运行MSI时无法启动另一个MSI。

a good practice would be to compressed all your files in the setup.exe. 一个好的做法是压缩setup.exe中的所有文件。 it's easier to carry around and prevent anyone from replacing them with nasty stuff and launch them with admin's right. 随身携带更容易,防止任何人用讨厌的东西代替它们并以管理员的权限启动它们。 right click on the prerequisit and open the properties 右键单击先决条件并打开属性

Now specificly for the .net 3.5, since it's a windows feature on most of the modern OS (anything but xp...) the installation of the module will failed. 现在专门针对.net 3.5,由于它是大多数现代OS(除了xp ...之外的任何东西)的Windows功能,因此模块的安装将失败。 I would suggest making a launch condition validation the presence of the registry key HKLM\\SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\v3.5|Version . 我建议使启动条件验证注册表项HKLM\\SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\v3.5|Version like that 像那样

it will make your installer smaller and probably more usefull since you can customize the error message to explain how to activate it. 因为您可以自定义错误消息以说明如何激活它,所以它将使您的安装程序更小并且可能更有用。

You can compress everything into the .exe file (select compressed, and "extract from setup.exe" as appropriate), but since Windows Installer does not handle prerequisites, it cannot be just the .msi file. 您可以将所有内容压缩到.exe文件中(选择压缩的文件,然后适当地“从setup.exe提取”),但是由于Windows Installer无法处理先决条件,因此它不能仅仅是.msi文件。

If you stick to the uncompressed build you described, then yes, you must send the full contents of at least the Disk1 folder (also any other Disk folders if there are any; they're typically only used for multiple-disk media scenarios). 如果您坚持使用所描述的未压缩版本,则必须发送至少Disk1文件夹的完整内容(如果有的话,还应发送任何其他Disk文件夹;它们通常仅用于多磁盘媒体方案)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM