WiX - How to uninstall the bundle when uninstall the msi

前端 未结 3 909
花落未央
花落未央 2021-01-19 05:50

Im using WiX to install my .msi, I´m generating a WiX Bundle using the Bundle Element. I try to not show the Bundle on \"Add/Remove programs\" so i set the properties of the

3条回答
  •  滥情空心
    2021-01-19 06:17

    Use -repair option when running the installer every time. It's a hack but it works. The problem is that the bundle uninstall is hidden, and when running uninstall you are only removing the package inside, not the bundle.

    This causes the issue when you want to run the installation again after uninstalling the package inside. The installer thinks that the bundle is still installed. By using the -repair option (every time you install the bundle), you are telling it to either install the bundle if no bundle is present. or repair it if the package was removed.

    -repair = repair (or install if not installed)

提交回复
热议问题