wix - Two feature in different locations -
i trying make wix installer. have 2 features defined. want able install each feature in different location.
<feature id='serverinstallation' title='engine' level='1' configurabledirectory='targetdir'> <componentgroupref id='serverfilesystemgroup' /> <componentgroupref id='registrygroup' /> </feature> i want able put anywhere on disk, default value c:\program files\productname\feature1
<feature id='clientinstallation' title='moduletitle' level='1' configurabledirectory='installlocation'> <componentgroupref id='clientsystemgroup' /> <feature id='subfeatureid' title='subfeature' level='1'> <componentgroupref id='subfeaturesystemgroup' /> </feature> </feature> i want able put anywhere on disk, default value c:\program files\productname\feature2
but 2 feature should able installed in non-related location. tried define root directory targetdir , on same level installlocation error
the directory id 'installlocation' not valid root directory. there may single root directory per product or module , id attribute value must 'targetdir' , name attribute value must 'sourcedir'.
how can setup properly?
it might see <directory> structure, in case, can't use targetdir configurable directory. targetdir can used @ root, , goes inside.
i think yours should this:
<directory id="targetdir" name="sourcedir"> <directory id="programfilesfolder"> <directory id="productfolder" name="productname"> <directory id="installdir1" name="feature1" /> <directory id="installdir2" name="feature2" /> </directory> </directory> </directory> then can use installdir1 , installdir2 configurabledirectorys.
see also
Comments
Post a Comment