0
votes

I do not want to display my bundle in Programs and features. But when uninstalling it should be removed along with the MSIs. In order to hide the the bundle I can set disableModify property to yes. This will hide the bundle. But this will disable the uninstall feature for the bundle. That is not what I want. Because How can I hide the bundle from Programs and Features and still uninstall it during an uninstall? Please advice.

3
Not including a bundle in Programs and Features does just that. The very same uninstall command will still uninstall it. (That probably doesn't help but it is something you should know.) - Tom Blodget
I hid it from Programs and features and uninstalled my app. Then when I run the installer again with a version lower than what I had previously, installer says there is already a higher version. Though I just uninstalled that higher version. This behavior is not there if I don't hide the exe. Why is that then? :( - AnOldSoul

3 Answers

1
votes

From the perspective of the bundle, there is no "app", only 0 or more packages.

From the perspective of a package installer (e.g., .msi), there is no bundle. It could have been installed/referenced by 0 or more bundles and/or installed manually or some other system.

Uninstalling a package "breaks" the bundle. It could be repaired or uninstalled with the same bundle version itself but it can't be repaired by installing a lower versioned bundle.

The most straightforward approach is to hide your application-specific packages from Programs and Features and let the users view the bundle as "the application". (Any packages your bundle treats as permanent should typically not be hidden.)

0
votes

See this answer about handling MSI and MSP in bundles

It sounds like the behavior you are after.

Note that that answer is for WiX 3.9 or later

0
votes

The Visible="yes" will show you the installed packages separately.

<MsiPackage Id="Dependency1" SourceFile="your.msi" Cache="no" Visible="yes"  DisplayInternalUI="yes" EnableFeatureSelection="yes" />