Msiexec: automatic rollback to previous version on installation failure

后端 未结 3 1714
孤独总比滥情好
孤独总比滥情好 2021-01-18 03:52

When installing a .MSI file using msiexec in silent mode, is it possible to automate it such that on installation failure it rollbacks to the previous version? Assuming tha

3条回答
  •  梦毁少年i
    2021-01-18 04:23

    There is a possibility but it involves changing the upgrade sequence which is not always an easy thing to achieve. You should move the RemoveExistingProducts after InstallExecute action

    http://msdn.microsoft.com/en-us/library/windows/desktop/aa371197(v=vs.85).aspx

提交回复
热议问题