MichaelNesmith wrote:You should be able to do this if you add a Print button to your form, and then capture the click event on that button, and call Run Program on the license agreement file, open wordpad or notepad, with the print command line parameter.
You may study the CD Autorun template if you would like to find out how to capture clicks on form buttons - it is the perfect example.
It was easy to add a print button to the Autorun example. In the wizard dialog I inserted a BitBtn button named "Print". I did not modifiy Object Rules or Object Behavior. In fact, I want to Have the control "Print" write to a variable, but that option is greyed out on the Object Behavior dialog. I can't see any difference between the Object Propeties of my button and the other buttons that do allow writing values to variable.
In the script there is a comment "// Exit Applet" and then several "ifs" referring to a variable "CHOICE". What is the applet? From where/when the variable CHOICE? If I try to add to the script:
If Variable CHOICE Equals PRINT
Run Program $PROGRAMFILES$\\Windows NT\\accessories\\wordpad.exe /p $SUPPORTDIR$\\license.rtf (WAIT)
end
then nothing happens (I added license.rtf as a support file ...Remember that you may include any file as a support file, and access it while the installation is running using the SUPPORTDIR variable).
I even tried moving this Run Program command into the "If Variable CHOICE Equals WEBSITE" section, and nothing happens.
When I add the Print button to the licensecheck dialog of a "Windows Installer" themed wizard project, I have no idea where to invoke the Run Program command, assuming I could get it to work.
We really want to buy InstallAware. I'm a novice at installation packages, so I'm somewhat at a loss here

. I've read the entire help file (even copied into a document and created a PDF which I have read). I'm reading all the forum messages, and have read all the material on the ia website, but I'm not getting anywhere.
Thanks in advance for the assistance (my supervisor is awaiting some results before he'll spring for the purchase).