InstallShield安装时出现“1152:error extracting"的解决方案

InstallShield制作的安装文件可能会出现”1152:error extracting"错误。那么应该怎么解决呢?

如果安装的是英文操作系统,这个问题一般不太会出现,但是是中文系统或者韩文操作系统,这个问题就很有可能出现,不管是XP,2K,还是server。

到底为什么会出现这种错误呢?

答案是安装时可能会涉及到一些特殊的字符(例如版权符号等),而这些字符在中文系统下不一定会识别。当然可能会有其他原因。

至于最常见的原因可以参看Installshield的官方解决方案,Q107317: ERRDOC: Setup.exe Error 1152

无非就是重新下载,temp的权限修改。

下面介绍的是我自己的安装经历:

我的机器是Windows server 2003,中文版的。安装时出现上述错误。不得已,跑到英文版上的去安装,成功了。于是我检查了一下windows installer的版本,是最新版本的,然后再检查temp的权限,改成writable,但是还是不行。

一不小心发现安装的界面上有几个乱码,于是想是不是这个方面的原因呢?突然想起3年前编译个项目因为里面有些法文字符,改一下区域和语言设置解决了问题。于是跑到控制面板里将里面的所有设置都修改英文的。重启机器。然后安装,搞定。但是同时我发现我机器上很多原来显示正常的中文现在不正常了,于是又改了回来。


以上转自 http://www.cnblogs.com/confach/archive/2008/05/29/1209870.html

经过尝试,出现这个错误貌似只能重新安装系统了。

我的机器同样是server2003,中文版,我修改了计算机的语言,还有temp的权限,(其中temp权限的修改根本不能起作用,改为之后再次查看发现还是只写的)

官方的解决方案中:http://kb.flexerasoftware.com/selfservice/viewContent.do?externalID=Q107317


导致这个问题的原因:

When a compressed network image (single compressed setup.exe) is launched, the files compressed within it will be extracted to the TEMP folder and launched from that location. If one or more files cannot be extracted, then error 1152 occurs.

大概意思是 安装过程中会在安装包中抽出一个安装文件,到temp文件夹下,然后启动这个 安装文件,现在不能安装大概就是拷贝文件到这个目录下或者从这个目录启动的时候失败了,我在弹出 这个错误的时候查看temp文件夹下的内容发现一个

安装包文件,直接点击安装,安装到一半提示失败,提示有文件没有找到,感觉在中文系统下路径不能解析正确。


官方的解决方案不知道怎么实施:

A. Verify that the TEMP folder is writable.
 
The TEMP folder is the folder used by the system to place temporary files that can be deleted at a later time. Provide users with Write privileges to the TEMP folder. Follow the steps below to determine the TEMP folder for your system and the permissions set on the folder.
  1. To find the name of the default Temp directory, launch the DOS prompt on the machine, type 'Set T', and then hit the 'Enter' key. This will display the values of all the environment variables that have names that start with 'T', including TEMP.
  2. Open Windows Explorer.  Using the directory name found in Step 1, locate the TEMP folder, right-click on it, and choose properties. Verify that the Read-Only check box is not checked.
  3. If you are running the installation on a Windows 2000 or Windows NT Operating System that is using a NTFS partition, verify that the user running the setup has permissions to write to this folder.
  4. Right-click the TEMP folder, and choose properties. Now select the Security tab. A list of users will be viewable within this tab. The permissions for each user will be viewable underneath. You can add additional users and change permissions if needed. Permissions should not be an issue if running on Windows 9X systems.
B. There is not enough disk space on the hard drive in which files are being extracted.
 
Clean the default TEMP folder and Free up as much disk space as possible on the drive that holds the TEMP folder.
C. One or more files have been corrupted. This may have occurred if the installation was downloaded.
  1. Re-download and rerun the installation.
  2. If the installation is being run from a network location, try running it locally.

我将安装报考到win7系统下已经正常安装。


这个问题真麻烦。。