Sajo Jacob

I am back blogging, almost 2 years after I decided to abandon my good ol C/C++ blog, so here goes my ramblings...
in

How to print EULA from WiX

Again there is absolutely no documentation out there on this, WiX provides out of the box support for doing this though. Just define a custom action into wixca.dll with entry point PrintEula

 

<CustomAction Id="PrintEula" BinaryKey="wixca" DllEntry="PrintEula" Return="ignore" Execute="immediate" />

 

And on the LicenseAgreement dialog, define the EULA in a ScrollableText control with ID “LicenseText", this is how WiX knows what text to print.

 

<Control Id="LicenseText" Type="ScrollableText" X="201" Y="62" Width="254" Height="66" Sunken="yes" TabSkip="no">

         <Text SourceFile="..\License.rtf" />

</Control>

 

Simple!

Comments

Sajo Jacob said:

WiX is an XML based wrapper around the Windows Installer which lets you create Installer packages without

# January 24, 2008 9:33 AM

David Hacker said:

Wow, its too bad that the documentation is still so poor.  I remember digging through Wix 'docs' a few years back, and the best way to find out functionality was to just read the code.  That was when it was very new though, so I would just search for MSI table names or Wix elements in the Wix C++ custom actions to see what they actually did.

This should be a helpful post...adding print functionality to the InstallShield license dialog by default was one of my first work orders back in my InstallShield days:)

# February 12, 2008 7:03 PM

Trejkaz said:

RTF is such an awful format though, and whatever RTF renderer WiX is using is much worse than Word itself.  If it supported HTML in this box it would be much more convenient.

# March 11, 2008 11:04 PM

Niall said:

So, how does the Custom Action get called?

Do I need a Print button under the EULA, which is linked somehow to the CA?

Thanks

# May 29, 2008 4:49 AM

spoov said:

Yes, you need a Print Button on the EULA screen...do something like this after wiring up the custom action as shown above

<Control Id="Print" Type="PushButton" X="375" Y="161" Width="53" Height="17" Text="[ButtonText_Print]">

        <Publish Event="DoAction" Value="PrintEula">1</Publish>

</Control>

# May 29, 2008 1:06 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)