Well, MSI SDK says not to do what you're doing so that's the first step to undo. <smile/>
After that, you need to come up with a new KeyPath for your Component... or merge the Components together. The latter is the most ideal from a companion file point of view, but does create servicing challenges if you, say, ever needed to not ship the companion file anymore. Another option is to use the Directory as the KeyPath... or use a Registry Key. I'd have to play with various scenarios for a while to see what worked best... haven't used companion files myself in a very long time. -----Original Message----- From: jnewton [mailto:jonathan.new...@ni.com] Sent: Tuesday, January 27, 2009 07:53 To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Dealing with Components with Only Non-Versioned Files Thanks for the reply Rob. Yeah, I realized that when WiX through an error which was great. I'm just not sure how to handle this scenario then. How is one to deal with a component with all non-versioned files? Maybe one should never get into this scenario, but if you have any advice as to what alterations I should make, please let me know. Thanks -Jonathan Rob Mensching-2 wrote: > > WiX doesn't support making a companion file the KeyPath because the MSI > SDK says not to. From the Companion Files topic: "Note that a file that > is the key path for its component must not be a companion file." > > -----Original Message----- > From: jnewton [mailto:jonathan.new...@ni.com] > Sent: Tuesday, January 27, 2009 06:15 > To: wix-users@lists.sourceforge.net > Subject: Re: [WiX-users] Dealing with Components with Only Non-Versioned > Files > > > For those few components that have these non-versioned files, I just > choose > one of the fonts or message files. I'm really not sure what the behavior > will be when using companion files and setting a keypath in that component > (i.e. which WiX doesn't let you which is why I have to do a post-build > step.). Maybe I don't really need to do this, but this code has just been > this way for years (i.e. in Wise). As I was converting over, I noticed > this > but wasn't sure how to handle it. > > -Jonathan > > > Bob Arnson-6 wrote: >> >> jnewton wrote: >>> I have a few components that only contain non-versioned files (i.e. >>> message >>> files, fonts). Currently I am using a core DLL that I install as the >>> companion file for the files in those components. However, this means >>> that I >>> don't have a keypath for these components. I'm not sure if this is a >>> problem >>> or not, and if so, any suggestions? Currently I am just doing a >>> post-build >>> step to insert a keypath back into this component. >>> >> >> What keypath are you putting in? >> >> -- >> sig://boB >> http://joyofsetup.com/ >> >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> SourcForge Community >> SourceForge wants to tell your story. >> http://p.sf.net/sfu/sf-spreadtheword >> _______________________________________________ >> WiX-users mailing list >> WiX-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wix-users >> >> > > -- > View this message in context: > http://n2.nabble.com/Dealing-with-Components-with-Only-Non-Versioned-Files-tp2218510p2225933.html > Sent from the wix-users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > -- View this message in context: http://n2.nabble.com/Dealing-with-Components-with-Only-Non-Versioned-Files-tp2218510p2226478.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users