为什么安装会在最后回滚?

时间:2016-10-26 06:33:22

标签: wix windows-installer

我们的组织使用Wix Toolset为我们的某个应用程序(64位)创建安装包。我们使用InstallShield创建了旧版本产品(32位)的安装。我们有一个要求 - 当我们安装新版本(WiX安装,64位)时,如果存在旧版本(InstallShield - 32位),则需要在安装过程中卸载它。我们在两个安装中都使用相同的升级代码。

行为1 - (当我们使用相同的升级代码时) - 安装结束(创建所有应用程序快捷方式),然后抛出错误' [AppName]安装向导提前结束'和回滚安装。

行为2 - (当我们使用不同的升级代码时) - 正如预期的那样,两个应用程序在安装后都存在。

有人遇到类似的问题吗?怎么解决这个?过去3天我一直坚持这个问题!

[更新]我正在使用Bootstrapper,默认启用日志记录。请在下面找到日志文件中的一些摘录。最后,您可以看到返回值为3的致命错误。

MSI (s) (A0:5C) [10:08:56:340]: Executing op: RegAddValue(Name=Readme,,)
MSI (s) (A0:5C) [10:08:56:340]: Executing op: RegAddValue(Name=Publisher,Value=Future Fibre Technologies,)
MSI (s) (A0:5C) [10:08:56:341]: Executing op: RegCreateKey()
MSI (s) (A0:5C) [10:08:56:341]: Executing op: RegCreateKey()
MSI (s) (A0:5C) [10:08:56:341]: Executing op: RegCreateKey()
MSI (s) (A0:5C) [10:08:56:341]: Executing op: RegAddValue(Name=ModifyPath,Value=#%MsiExec.exe /I{3D7E14A8-61BB-41EE-9FEB-2A0272B730C4},)
MSI (s) (A0:5C) [10:08:56:341]: Executing op: RegCreateKey()
MSI (s) (A0:5C) [10:08:56:341]: Executing op: RegCreateKey()
MSI (s) (A0:5C) [10:08:56:341]: Executing op: RegAddValue(Name=InstallSource,Value=\\COMP_Name\Install\Testing\Software\AppName\v1.22.5\,)
MSI (s) (A0:5C) [10:08:56:341]: Executing op: RegAddValue(Name=InstallLocation,Value=C:\Program Files (x86)\CompanyName\AppName\,)
MSI (s) (A0:5C) [10:08:56:341]: Executing op: RegAddValue(Name=InstallDate,Value=20161026,)
MSI (s) (A0:5C) [10:08:56:342]: Executing op: RegAddValue(Name=HelpTelephone,Value= ,)
MSI (s) (A0:5C) [10:08:56:342]: Executing op: RegAddValue(Name=HelpLink,Value=#%http://www.abc.com.au,)
MSI (s) (A0:5C) [10:08:56:342]: Executing op: RegAddValue(Name=DisplayVersion,Value=x.yy.0050,)
MSI (s) (A0:5C) [10:08:56:342]: Executing op: RegAddValue(Name=Contact,Value= ,)
MSI (s) (A0:5C) [10:08:56:342]: Executing op: RegAddValue(Name=Comments,Value= ,)
MSI (s) (A0:5C) [10:08:56:342]: Executing op: RegAddValue(Name=AuthorizedCDFPrefix,,)
MSI (s) (A0:5C) [10:08:56:342]: Executing op: RegOpenKey(Root=-2147483646,Key=Software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\8A41E7D3BB16EE14F9BEA220277B034C\InstallProperties,SecurityDescriptor=BinaryData,BinaryType=1,,)
MSI (s) (A0:5C) [10:08:56:342]: Executing op: RegCreateKey()
MSI (s) (A0:5C) [10:08:56:342]: Executing op: RegCreateKey()
MSI (s) (A0:5C) [10:08:56:342]: Executing op: RegCreateKey()
MSI (s) (A0:5C) [10:08:56:342]: Executing op: RegCreateKey()
MSI (s) (A0:5C) [10:08:56:342]: Executing op: RegAddValue(Name=Language,Value=#1033,)
MSI (s) (A0:5C) [10:08:56:342]: Executing op: RegAddValue(Name=Version,Value=#18219058,)
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegAddValue(Name=WindowsInstaller,Value=#1,)
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegAddValue(Name=VersionMinor,Value=#22,)
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegAddValue(Name=VersionMajor,Value=#1,)
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegAddValue(Name=URLUpdateInfo,Value=http://www.abc.com.au,)
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegAddValue(Name=URLInfoAbout,Value=http://www.abc.com.au,)
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegAddValue(Name=UninstallString,Value=#%MsiExec.exe /I{3D7E14A8-61BB-41EE-9FEB-2A0272B730C4},)
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegCreateKey()
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegAddValue(Name=EstimatedSize,Value=#53956,)
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegAddValue(Name=Size,,)
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegAddValue(Name=Readme,,)
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegAddValue(Name=Publisher,Value=Future Fibre Technologies,)
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegCreateKey()
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegCreateKey()
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegCreateKey()
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegAddValue(Name=ModifyPath,Value=#%MsiExec.exe /I{3D7E14A8-61BB-41EE-9FEB-2A0272B730C4},)
MSI (s) (A0:5C) [10:08:56:343]: Executing op: RegAddValue(Name=LocalPackage,Value=C:\Windows\Installer\37e30.msi,)
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegCreateKey()
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegAddValue(Name=InstallSource,Value=\\COMP_NAME\Install\Testing\Software\Application\vx.yy.z\,)
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegAddValue(Name=InstallLocation,Value=C:\Program Files (x86)\CompanyName\AppName\,)
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegAddValue(Name=InstallDate,Value=20161026,)
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegAddValue(Name=HelpTelephone,Value= ,)
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegAddValue(Name=HelpLink,Value=#%http://www.abc.com.au,)
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegAddValue(Name=DisplayVersion,Value=1.22.0050,)
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegAddValue(Name=Contact,Value= ,)
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegAddValue(Name=Comments,Value= ,)
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegAddValue(Name=AuthorizedCDFPrefix,,)
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegOpenKey(Root=-2147483646,Key=Software\Microsoft\Windows\CurrentVersion\Installer\TempPackages,,BinaryType=1,,)
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegRemoveValue(Name=C:\Windows\Installer\37e30.msi,Value=#0,)
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegRemoveKey()
MSI (s) (A0:5C) [10:08:56:344]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\TempPackages 3: 2 
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegOpenKey(Root=-2147483646,Key=Software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\8A41E7D3BB16EE14F9BEA220277B034C\Transforms,,BinaryType=1,,)
MSI (s) (A0:5C) [10:08:56:344]: Executing op: RegRemoveKey()
MSI (s) (A0:5C) [10:08:56:344]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\8A41E7D3BB16EE14F9BEA220277B034C\Transforms 3: 2 
MSI (s) (A0:5C) [10:08:56:344]: Executing op: End(Checksum=0,ProgressTotalHDWord=0,ProgressTotalLDWord=0)
MSI (s) (A0:5C) [10:08:56:344]: Error in rollback skipped.  Return: 5
MSI (s) (A0:5C) [10:08:56:345]: Note: 1: 2318 2:  
MSI (s) (A0:5C) [10:08:56:346]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
MSI (s) (A0:5C) [10:08:56:347]: Destroying RemoteAPI object.
MSI (s) (A0:58) [10:08:56:347]: Custom Action Manager thread ending.
MSI (s) (A0:5C) [10:08:56:347]: No System Restore sequence number for this installation.
MSI (c) (C8:7C) [10:08:56:363]: Back from server. Return value: 1603
MSI (c) (C8:7C) [10:08:56:363]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
MSI (c) (C8:7C) [10:08:56:364]: PROPERTY CHANGE: Deleting SECONDSEQUENCE property. Its current value is '1'.
Action ended 10:08:56: ExecuteAction. Return value 3.
MSI (c) (C8:7C) [10:08:56:364]: Doing action: FatalError
Action 10:08:56: FatalError. 
Action start 10:08:56: FatalError.
Action 10:08:56: FatalError. Dialog created
Action ended 10:08:57: FatalError. Return value 2.
Action ended 10:08:57: INSTALL. Return value 3.
Property(C): DiskPrompt = [1]
Property(C): UpgradeCode = {03599145-22C5-4253-8D9A-78A05166A71F}
Property(C): WIXNETFX4RELEASEINSTALLED = #394254
Property(C): LicenseAccepted = 1

更新 - 安装执行顺序:

<InstallExecuteSequence>
  <Custom Action='StopAppService' Before='InstallValidate'/>
  <Custom Action='StopApplicationMonitor' After='InstallValidate'/>
  <Custom Action='BackupConfigFile' After='StopApplicationMonitor'>
    UPGRADINGPRODUCTCODE OR REMOVE="ALL"
  </Custom>
  <Custom Action='ImportConfigFile' After='InstallFinalize'>Not Installed</Custom>
  <Custom Action='PrepareStartApplicationMonitor' After='ImportConfigFile'>Not Installed</Custom>
  <Custom Action='StartApplicationMonitor' After='PrepareStartApplicationMonitor'>Not Installed</Custom>
</InstallExecuteSequence>

0 个答案:

没有答案