Installshield的几点疑难杂症

新手学Installshield,如果错误,敬请斧正。

1、Buid的时候遭遇Error Code: 1014

解决方法:关闭Setup输出的文件夹即可。

2、InstallShield制作的安装文件可能会出现”1152:error extracting"错误

解决方法:

可以参见Installshield官方对这个错误的详细解释:http://kb.flexerasoftware.com/selfservice/viewContent.do?externalID=Q107317

按照文章描述,造成这个Error的原因可能有:Setup没有Temp文件夹写入权限;Temp文件夹对解压的空间不足;Setup文件损坏。

程序猿的方法是:修改Setup文件的运行权限(Installshield的Release的Setup.exe选项的Required Execution Level:Administrator)

用户的方法是:重新下载Setup;删除多余文件留足空间;修改Temp文件夹写入权限。

不过程序猿在实践中还是不能解决这个问题。Build出来的Setup安装的时候还是弹出这个错误。可能是因为安装的时候涉及到一些特殊字符,在国际化多语言的Build中出现异常。关于这个,还可以参见:http://www.cnblogs.com/confach/archive/2008/05/29/1209870.html

很无语的是,在项目中,修改Media/Releases/Product Configuration的General选项中,Product Name填入对应语言的产品名称就可以了。

Caution: When creating a release that uses Unicode characters (e.g. Japanese), set the product name field to the localized name and the .msi file name to the original product name, i.e. Kid-Tough Digital Studio Software, in the product configuration section.

 

3、在Windows 8上自动安装.Net的安装包

解决方法:

参见:http://www.cnblogs.com/AlvinLiang/archive/2013/04/12/3016792.html

在Win8,,无论自带.Net安装包还是怎样,最后都需要从Windows Update下载.Net 3.5安装。

如果是离线安装,则一般用户都不会,费时费力。

对此,有三个解决方法:

1、安装程序检测到Win8,跳过.Net安装步骤,直接安装。当用户运行我们的程序时,系统将会自动启动.Net的安装。

2、在安装程序中打包一个需要.Net的小程序,当检测到系统是Win8并且没有安装.Net的时候,调用此程序,启动Windows Update。这方法本人没有尝试过,哈。应该可行,不过安装进度不太好控制。

3、Installshield官方提供的解决方法:

惯例,官方链接:InstallShield Prerequisites for .NET Framework 3.5 SP1 on Windows 7 and Later, Windows Server 2008 R2 and Later

这个链接有点问题,在IE9上显示不出来,我唯有跑去Chrome……

官方说在Installshield2012上有用,本人在Installshield2011上证实可用。懒得翻译,辛苦一点看鸟语吧。

    1. If InstallShield is running, close it.
    2. Download the following files to your machine that has InstallShield:

      Microsoft .NET Framework 3.5 SP1 (Windows Feature).prq
      Helper.exe

      Important Note:  To download the updated .prq file, right-click on the download link above and select the "Save Target As" option.  Then update the file extension to .prq and change the "Save As Type" to "All Files".  If having trouble downloading the file from the above link, please click on the alternate download link in the "Attachments" section below.

    3. Place the  .prq file in the folder that contains your InstallShield prerequisite files (.prq):
      InstallShield Program Files Folder\SetupPrerequisites
    4. Place the Helper.exe file in the following directory:
      InstallShield Program Files Folder\SetupPrerequisites\Microsoft .net\3.5 SP1\Dism
      You may need to create one or more of the folders in this path.
原文地址:https://www.cnblogs.com/AlvinLiang/p/3016836.html