Page 1 of 1

Print Button for Readme und License file

Posted: Fri Nov 02, 2012 1:46 pm
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

Re: Print Button for Readme und License file

Posted: Mon Nov 05, 2012 1:31 pm
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

Re: Print Button for Readme und License file

Posted: Wed Nov 14, 2012 7:51 am
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 ?

Re: Print Button for Readme und License file

Posted: Sun Dec 02, 2012 10:42 pm
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

Re: Print Button for Readme und License file

Posted: Mon Dec 03, 2012 2:11 am
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) ?