在父安装完成后启动后续msi卸载。它工作但在某些时候它开始失败后续卸载。根据日志,它成功完成但在启动Rollback之后。它恢复安装回来。我怀疑原因可能是由父安装程序引发的挂起重启标志。
MSI (s) (F8:94) [11:42:04:549]: Product: *productname* 64-bit -- Removal completed successfully.
MSI (s) (F8:94) [11:42:04:549]: Windows Installer removed the product. Product Name: *productname* 64-bit. Product Version: 14.3. Product Language: 1033. Manufacturer: *manufacturer* Software, Inc.. Removal success or error status: 0.
MSI (s) (F8:94) [11:42:04:549]: Deferring clean up of packages/files, if any exist
MSI (s) (F8:94) [11:42:04:549]: MainEngineThread is returning 0
MSI (s) (F8:C8) [11:42:04:564]: RESTART MANAGER: Previously shut down applications have been restarted.
MSI (s) (F8:C8) [11:42:04:564]: RESTART MANAGER: Session closed.
MSI (s) (F8:F4) [11:42:04:658]: User policy value 'DisableRollback' is 0
MSI (s) (F8:F4) [11:42:04:658]: Machine policy value 'DisableRollback' is 0
MSI (s) (F8:F4) [11:42:04:658]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (F8:F4) [11:42:04:658]: Executing op: Header(Signature=1397708873,Version=500,Timestamp=1224564034,LangId=1033,Platform=589824,ScriptType=2,ScriptMajorVersion=21,ScriptMinorVersion=4,ScriptAttributes=1)
MSI (s) (F8:F4) [11:42:04:658]: Executing op: DialogInfo(Type=0,Argument=1033)
MSI (s) (F8:F4) [11:42:04:658]: Executing op: DialogInfo(Type=1,Argument=*productname* 64-bit)
MSI (s) (F8:F4) [11:42:04:658]: Executing op: RollbackInfo(,RollbackAction=Rollback,RollbackDescription=Rolling back action:,RollbackTemplate=[1],CleanupAction=RollbackCleanup,CleanupDescription=Removing backup files,CleanupTemplate=File: [1])
我尝试在卸载时传递DISABLEROLLBACK = 1,但它似乎不起作用:/ 通过公共财产将是最方便的方式。
禁用回滚肯定有帮助,我尝试将“\ Software \ Policies \ Microsoft \ Windows \ Installer”“DisableRollback”设置为“1”,卸载工作正常。
我找不到其他任何属性吗?我宁愿不改变客户的环境,禁止在注册表中回滚。