Alasdair King
2014-04-12 21:16:18 UTC
I'm working on a C# Managed Bootstrapper Application. I don't quite
understand how my bundle is identified as already-installed or not.
Examples I have read simply check the installed state (PackageState) of one
of the MSI packages - for example,
http://bryanpjohnston.com/2012/09/28/custom-wix-managed-bootstrapper-application/
This is then used as the install state of the bundle.
I have two problems with this:
1 It isn't correct, is it? What if a user has PackageA.msi installed, but
not through my bundle, and my MBA tests for PackageA.msi - this logic will
identify that the Bundle is installed when it isn't.
2 The WiX help says there is a property:
WixBundleInstalled - gets whether the bundle was already installed and will
be set to 1 once the bundle is installed.
So my question is:
Why use the MSI package install state rather than "WixBundleInstalled"?
(Testing indicates that this property is not in fact set for installed
bundles. So is the answer "because WixBundleInstalled doesn't work
properly"?)
Thanks!
Alasdair
understand how my bundle is identified as already-installed or not.
Examples I have read simply check the installed state (PackageState) of one
of the MSI packages - for example,
http://bryanpjohnston.com/2012/09/28/custom-wix-managed-bootstrapper-application/
This is then used as the install state of the bundle.
I have two problems with this:
1 It isn't correct, is it? What if a user has PackageA.msi installed, but
not through my bundle, and my MBA tests for PackageA.msi - this logic will
identify that the Bundle is installed when it isn't.
2 The WiX help says there is a property:
WixBundleInstalled - gets whether the bundle was already installed and will
be set to 1 once the bundle is installed.
So my question is:
Why use the MSI package install state rather than "WixBundleInstalled"?
(Testing indicates that this property is not in fact set for installed
bundles. So is the answer "because WixBundleInstalled doesn't work
properly"?)
Thanks!
Alasdair
--
Alasdair King
Alasdair King