Here's the extract of the MSI docs:
"Components can be shared by two or more features, that is, the same
component can be referred to by more than one feature."

http://msdn.microsoft.com/en-us/library/aa368579(VS.85).aspx

-- Yan

-----Original Message-----
From: hegsie [mailto:heg...@gmail.com] 
Sent: Monday, June 22, 2009 11:49 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Re-using a component multiple times in different
features


Hi,
I have a situation where I have multiple features that all perform the
same
piece of SQL on a database, rather than have to copy the the SqlString
command multiple times, I was wondering if there is a way to do this
using
the ComponentGroup element.. the SQL looks similar to...

exec sp_addlogin '[ComputerName].[FEATURENAME]', '[PASSWORD]',
'THEDATABASE', 'us_english'

Also is there some way to set the FEATURENAME property for each usage of
this SQL in a feature?
Cheers



-- 
View this message in context:
http://n2.nabble.com/Re-using-a-component-multiple-times-in-different-fe
atures-tp3131775p3131775.html
Sent from the wix-users mailing list archive at Nabble.com.


------------------------------------------------------------------------
------
Are you an open source citizen? Join us for the Open Source Bridge
conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference:
$250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebrid
ge.org
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to