If you follow the component rules then yes: this should work. The contents
of MAINFEATURE should be identical between INSTALLERA and INSTALLERB,
including the directories used and the GUIDS of the included components, as
well as the associated keypaths which must also be identical.

-----Original Message-----
From: xxxxxx [mailto:contactnim...@googlemail.com] 
Sent: Friday, May 28, 2010 6:50 PM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Quick Question: common features in multiple installers

Hi Wix users,

before I sink time into authoring installers and testing, I am seeking 
your comments wether the following concept could work, or wether I have 
missed something.

Assuming I have an INSTALLERA.msi, which consists of the features 
MAINFEATURE and DATA1 and DATA2, and another INSTALLERB, which consists 
of the features MAINFEATURE, DATA3 and DATA4, Mainfeature is identical 
in both installers, and has the same GUID.
I do use the FeatureTree UI, and author a conditional install for 
MAINFEATURE in both installers, so it will be installed only once, and 
since the feature is identical in both installers it does not matter 
which installer is executed first.

The objective is: INSTALLERA and INSTALLERB may be executed by the user 
in any order, and there is no need to install both. A typical situation 
where a sofrtware product is sold in modules. MAINFEATURE is mandatory, 
and must only be installed once. If the user leaves all settings on the 
defaults, MAINFEATURE will be installed long with the first of 
INSTALLERA and INSTALLERB, whichever is installed first.

If a user installs either INSTALLERA or INSTALLERB, but not both, 
everything is easy, he geths the MAINFEATURE and the DATAx according to 
the installer he has executed.

I am concerned if he installs both, in either order, whether, if, during 
uninstalls, the Installer is smart enough to uninstall MAINFEATURE along 
with the latter of both Installers, even if this is not the installer 
which has originally installed the component. I am not quite sure 
weither I expressed myself clear enough (sorry - natively I am German 
....), so the following table should make things clear:

user installs INSTALLERA with all features enabled, on his computer, and 
he gehts

MAINFEATURE
   DATA1
   DATA2

then he installs INSTALLERB, and has

MAINFEATURE
   DATA1
   DATA2
   DATA3
   DATA4

Now he uninstalls INSTALLERA to get rid of DATA1 and DATA2, and - 
hopefully - ends up with

MAINFEATURE
   DATA3
   DATA4

and only if he then uninstalls INSTALLERB too, MAINFEATURE gets finally 
uninstalled along with DATA3 and DATA4.

Any chance this is going to work?

Thanks,

AL.

----------------------------------------------------------------------------
--

_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------

_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to