InstallShield安裝時出現“1152:error extracting"的解決方案

sunStd發表於2013-11-13

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系統下已經正常安裝。


這個問題真麻煩。。


相關文章