Print Button for Readme und License file

Got a problem you cannot solve? Try here.
Post Reply
mikKummerfeld
Posts: 252
Joined: Sat Dec 03, 2011 3:07 am
Location: Konstanz, Germany
Contact:

Print Button for Readme und License file

Post by mikKummerfeld »

Hello Guys,

some customers wishes a print and/or save button next to the readme and license text boxes to
save and print each of them. How can I do that?

Heiko
Kind regards

Heiko Kummerfeld
MIK GmbH

Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Print Button for Readme und License file

Post by FrancescoT »

Dear Heiko,

I suppose that you can achieve this creating a custom (native) DLL or with a specialized plugin (even with NET ... with IA NX or above).

Alternatively the print process could be started even via IA script with a call to "Run Program" command and if the the used document have the appropriate application installed on target system.

I suggest you to have a look at the following forum topics;
http://www.installaware.com/forum/viewt ... ?f=2&t=466
http://www.installaware.com/forum/viewt ... f=2&t=6218

Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
mikKummerfeld
Posts: 252
Joined: Sat Dec 03, 2011 3:07 am
Location: Konstanz, Germany
Contact:

Re: Print Button for Readme und License file

Post by mikKummerfeld »

Finished and works :)

Code: Select all

 label: License Check
 Display Dialog: licensecheck, wait for dialog to return (modal)
 if Variable WIZARD Equals (Ignore Case) Print
   if Variable language Equals (Ignore Case) german
     Run Program C:\Program Files\Windows NT\Accessories\wordpad.exe /p $SUPPORTDIR$\license.german.rtf
   end
   if Variable language Equals (Ignore Case) english
     Run Program C:\Program Files\Windows NT\Accessories\wordpad.exe /p $SUPPORTDIR$\license.english.rtf
   end
   GoTo Label: License Check
 end
 if Variable WIZARD Equals BACK
   GoTo Label: Welcome Dialog
   else
   if Variable WIZARD Equals CANCEL
     GoTo Label: Main Install
   end
 end
And now save button ? Any idea how to save a document from SUPPORTFILES ?
Kind regards

Heiko Kummerfeld
MIK GmbH

Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
Trusler
Posts: 5
Joined: Sat Nov 24, 2012 9:53 pm

Re: Print Button for Readme und License file

Post by Trusler »

Saving:

If the user chooses to save a file, go to a custom dialog where the user can specify a file name.
Then use the Move Or Copy Local Files function to copy from SupportFiles to the selected location
mikKummerfeld
Posts: 252
Joined: Sat Dec 03, 2011 3:07 am
Location: Konstanz, Germany
Contact:

Re: Print Button for Readme und License file

Post by mikKummerfeld »

Trusler wrote:Saving:

If the user chooses to save a file, go to a custom dialog where the user can specify a file name.
Then use the Move Or Copy Local Files function to copy from SupportFiles to the selected location
Thank you. Can I open a dialog in front of the normal dialog (eg. like a messagebox) ?
Kind regards

Heiko Kummerfeld
MIK GmbH

Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
Post Reply