RSS

case12 在windows 2008上安装exchange 2007 rollup失败?

10 Aug

这个case绝对经典

日志来源:空空,王亮,kongkong777

如果你在windows 2008上安装rollup失败,在经历很多多常见排错后,还没有结果。那么随我来看看msi日志记录吧。

请使用下面的语句重新执行安装

Exchange2007-KB<kb # of Rollup>-x64-EN.msp /lxv* c:\<kb # of rollup>.log 

如果出现错误,就跑去看日志,然后查‘return value 3’ 。我这里的日志压缩成rar包有2MB打开有点辛苦,要耐心点。

于是我就看到的是这一段

   1: 这个log来自客户提供,中文环境。
   2:  
   3: MSI (s) (48!80) [00:26:36:768]: PROPERTY CHANGE: Deleting QtExecCmdLine property. Its current value is '"D:\Program Files\Microsoft\Exchange Server\\bin\QuietExe.exe" "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" " -command . 'D:\Program Files\Microsoft\Exchange Server\\bin\servicecontrol.ps1' BeforePatch"'.
   4: MSI (s) (48!80) [00:26:37:643]: Creating MSIHANDLE (19) of type 790531 for thread 6528
   5: CAQuietExec:  Error 0x80070001: Command line returned an error.
   6: MSI (s) (48!80) [00:26:37:643]: Closing MSIHANDLE (19) of type 790531 for thread 6528
   7: MSI (s) (48!80) [00:26:37:643]: Creating MSIHANDLE (20) of type 790531 for thread 6528
   8: CAQuietExec:  Error 0x80070001: CAQuietExec Failed
   9: MSI (s) (48!80) [00:26:37:643]: Closing MSIHANDLE (20) of type 790531 for thread 6528
  10: MSI (s) (48!80) [00:26:37:643]: Closing MSIHANDLE (17) of type 790541 for thread 6528
  11: MSI (s) (48:78) [00:26:37:643]: Closing MSIHANDLE (16) of type 790542 for thread 5296
  12: 操作结束 0:26:37: CA_SAVEDATA_STOP_SERVICES。返回值 3。

 

Exchange rollup打补丁的期间执行了一个自定义操作CA_SAVEDATA_STOP_SERVICES, 其实就是执行了一个脚本servicecontrol.ps1 并且带上了‘BeforePatch ’的开关

   1: 'D:\Program Files\Microsoft\Exchange Server\\bin\servicecontrol.ps1' BeforePatch 

可是呢,powershell安装后 默认的脚本执行策略是

 

在安装完exchange 2007后,应该是默认将执行策略修改为remotesigned的。

Restricted - Default execution policy. 
 
- Permits individual commands, but will not run scripts. 
- Prevents running of all script files, including formatting and configuration files (.ps1xml), module script files (.psm1), and Windows PowerShell profiles (.ps1).
 
RemoteSigned 
- Scripts can run. 
- Requires a digital signature from a trusted publisher on scripts and configuration files that are downloaded from the Internet (including e-mail and instant messaging programs). 
- Does not require digital signatures on scripts that you have run and that you have written on the local computer (not downloaded from the Internet). 
- Risks running signed, but malicious, scripts.

restricted状态是无法执行脚本的。改成remotesigned就可以执行了。

在windows 6上呢,如果要求修改powershell的策略需要powershell运行在administrator权限上。

所以因为无法修改powershell的执行策略,进而导致无法运行脚本,所以运行脚本的时候就报错。然后由于该脚本放置在安装补丁前,如果执行失败就会导致补丁安装失败。

解决办法:

 

在administrator权限下修改运行策略。

然后重新再次安装就没问题了。

——————

然后呢,可能还会遇到这个错误

   1: MSI (c) (94:D4) [00:26:40:190]: Windows Installer 已安装一个更新。产品名称: Microsoft Exchange Server。产品版本: 8.1.240.6。产品语言: 2052。更新名称: Update Rollup 9 for Exchange Server 2007 Service Pack 1 (KB970162) 8.1.393.1。安装成功或错误状态: 1603。
   2:  
   3: MSI (c) (94:D4) [00:26:40:190]: Note: 1: 1729 
   4: MSI (c) (94:D4) [00:26:40:190]: Note: 1: 2262 2: Error 3: -2147287038 
   5: MSI (c) (94:D4) [00:26:40:206]: Transforming table Error.
   6:  
   7: MSI (c) (94:D4) [00:26:40:206]: Transforming table Error.
   8:  
   9: MSI (c) (94:D4) [00:26:40:206]: Note: 1: 2262 2: Error 3: -2147287038 
  10: MSI (c) (94:D4) [00:26:40:221]: Transforming table Error.
  11:  
  12: MSI (c) (94:D4) [00:26:40:221]: Transforming table Error.
  13:  
  14: MSI (c) (94:D4) [00:26:40:237]: Note: 1: 2262 2: Error 3: -2147287038 
  15: MSI (c) (94:D4) [00:26:40:237]: Note: 1: 2262 2: Error 3: -2147287038 
  16: MSI (c) (94:D4) [00:26:40:237]: Transforming table Error.
  17:  
  18: MSI (c) (94:D4) [00:26:40:253]: Transforming table Error.
  19:  
  20: MSI (c) (94:D4) [00:26:40:253]: Note: 1: 2262 2: Error 3: -2147287038 
  21: MSI (c) (94:D4) [00:26:40:268]: Transforming table Error.
  22:  
  23: MSI (c) (94:D4) [00:26:40:268]: Transforming table Error.
  24:  
  25: MSI (c) (94:D4) [00:26:40:268]: Note: 1: 2262 2: Error 3: -2147287038 
  26: MSI (c) (94:D4) [00:26:40:268]: 产品: Microsoft Exchange Server -- 配置失败。
  27:  
  28: MSI (c) (94:D4) [00:26:40:268]: Windows Installer 已重新配置产品。产品名称: Microsoft Exchange Server。产品版本: 8.1.240.6。产品语言: 2052。重新配置成功或错误状态: 1603。
  29:  
  30: MSI (c) (94:D4) [00:26:40:268]: Attempting to delete file C:\Users\ADMINI~1.BJ\AppData\Local\Temp\2\15c0d9.msp
  31: MSI (c) (94:D4) [00:26:40:268]: Unable to delete the file. LastError = 32
  32: MSI (c) (94:D4) [00:26:40:284]: Grabbed execution mutex.
  33: MSI (c) (94:D4) [00:26:40:284]: Cleaning up uninstalled install packages, if any exist
  34: MSI (c) (94:D4) [00:26:40:284]: Attempting to delete file C:\Users\ADMINI~1.BJ\AppData\Local\Temp\2\15c0d9.msp
  35: MSI (c) (94:D4) [00:26:40:284]: MainEngineThread is returning 1603

这个也好理解嘛,还是uac导致的。

解决办法:

同上,在administrator权限下运行cmd,然后在cmd中执行安装命令。

——-

[后记]

其实呢,通常这种安装错误,大家都要多多想想windows 6引入的uac功能。

针对本文的排错还有以下几点:

1、重新下载安装介质。因为很多时候可能以为下载的原因,安装介质损坏了。但是下载2次都损坏的例子就很少了。

2、确定服务器baseOS,windows5和windows6最大的区别就是UAC

3、确定自己的执行权限。

Advertisements
 
Leave a comment

Posted by on August 10, 2009 in Exchange Server

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: