Tom;

No I did not try that.  I saw the bootstrapperApplicationData="yes"
attribute.  I was not sure why it was there or how I could take advantage of
it.

I appreciate Rob's explanation which made sense.  My goal was to create a
WixExtension and do a data driven CA similar to the Difx extension in Wix
when I asked the question, however I was using another sample to create a
CustomTable as a preliminary experiment to understand WiX constructs, when I
came across the above question.

After a printer driver is 'installed' using DifxExtension, I need to do some
configuration of the Printer object.  While I was trying to do this by
implementing an extension, I noticed the general concern that there is no
guarantee as to the order in which extensions are processed.   This
extension would only be used when a driver was installed with Difx, but I
don't think it will matter in which order the code is processed as long as
the install CA is sequenced after the Difx install CA.

I saw issues that others reported when they tried (like me) to copy one to
the src\ext projects into a new project, separate from the wix src tree.  I
also saw Rob's suggestion that they start from the project at wix-contrib
which is 'designed' to be a standalone project.  However I have not been
able to get either approach to compile with WiX 3.8.916.0.  (Sorry, I did
not have a chance to try out the RC yet.)
 
For starters the include and lib paths in the wix-contrib project are
incorrect as the files are not located at $(WIX)sdk\inc or $(WIX)sdk\lib. 
Even with those issues resolved both of the CA projects get a bunch of
unresolved external symbol errors.

1>     Creating library bin\Debug\WixContribSchedCA.lib and object
bin\Debug\WixContribSchedCA.exp
1>dutil.lib(fileutil.obj) : error LNK2019: unresolved external symbol
_VerQueryValueW@16 referenced in function _FileVersion@12
1>dutil.lib(fileutil.obj) : error LNK2019: unresolved external symbol
_GetFileVersionInfoW@16 referenced in function _FileVersion@12
1>dutil.lib(fileutil.obj) : error LNK2019: unresolved external symbol
_GetFileVersionInfoSizeW@8 referenced in function _FileVersion@12
1>bin\Debug\WixContribSchedCA.dll : fatal error LNK1120: 3 unresolved
externals

There is a comment at wix-contrib indicating that the quality of the code is
low.  I tried to use one of the wix\src\ext projects (in a separate project
using settings similar to the wix-contrib project), but in this situation I
cannot seem to get past errors related to changing this line 
    using DifxApp =
Microsoft.Tools.WindowsInstallerXml.Extensions.Serialize.DifxApp;
to
    using Printer =
Microsoft.Tools.WindowsInstallerXml.Extensions.Serialize.Printer;

The word Serialize is red and all references to a Printer namespace are
undefined.

So obviously I have more to learn before I can create an extension that
configures printer objects, but I am still trying any approach that would
bring a smile to the boss's face.  It is over due. :)

Thanks for any advice.
Phill



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-reference-elements-in-a-Fragment-which-do-not-have-a-XxxxRef-construct-tp7590454p7590503.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to