Hey Everyone,


This is the second time I have run into this scenario and I thought it was a
good point to stop and share. A couple months back I was asked to integrate
the functionality of the "Print" button (PrintEula Custom Action) into a
product that did not use the cookie cutter dialogs provided by the toolset.
This, itself, is quite the easy task. There was an addition to the scope,
"…we would like to print a second dialog as well." So, I looked into the
code base to find the following query would prevent me from doing this in a
simple fasion.



LPCWSTR vcsEulaQuery = L"SELECT `Text` FROM `Control` WHERE
`Control`='LicenseText'";



This required a rewrite of the CA in our environment. I have since modified
the code and we are using everything that was there before but with a slight
change. We now allow for a property in the MSI to set which control we
should query for the RTF content.



LPCWSTR vcsQueryFormat = L"SELECT `Text` FROM `Control` WHERE
`Control`='%s'";

…

hr = WcaGetProperty( L"PDCAControlName", &pwzControlName);

…

hr = StrAllocFormatted(&pwzQuery, vcsQueryFormat, pwzControlName);


This now allows us to have any dialog print any value we need to have
printed.


Simple enough fix I suppose. Now I am, again, faced with the same problem if
I would like to extend the functionality of the rich tools that WIX
provides. I am in the process of looking to move from 3.0.3526.0 to
3.0.3907.0 and have found a bit of a problem. The ValidatePath path CA has
the below hardcoded.



hr = WcaGetProperty(L"WIXUI_INSTALLDIR", &pwszWixUIDir);



In this scenario, I have been asked to provide a "nearly" identical dialog
as the InstallDirDlg. The difference being that a second location for folder
selection is going to be added. I know that I can add a new property and use
it as it was used in the version I am migrating to at the moment. However, I
would like to gain the functionality that WIX provides with this new custom
action.



Thanks in advance,
-- 
Brian Rogers
"Intelligence removes complexity." - BR
http://www.codeplex.com/wixml/
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to