How to view code of hard coded Message dialog

Got a problem you cannot solve? Try here.
Post Reply
abhimudgal1
Posts: 15
Joined: Thu Jul 15, 2010 11:36 pm

How to view code of hard coded Message dialog

Post by abhimudgal1 »

Hi,
I would like to see the code to modify according to requirement, of dialog box such as during cancel, or abort process.
I also require to modify button controls of these dialogs.
Help in this regard would be very appreciative.

thanks in Advance
-Abhishek
mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: How to view code of hard coded Message dialog

Post by mills »

It is not clear what you are asking for. Please review the document "Creating and registering new dialogs" toward the bottom of this page:
http://www.installaware.com/publication ... papers.htm
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.
abhimudgal1
Posts: 15
Joined: Thu Jul 15, 2010 11:36 pm

Re: How to view code of hard coded Message dialog

Post by abhimudgal1 »

mills wrote:It is not clear what you are asking for. Please review the document "Creating and registering new dialogs" toward the bottom of this page:
http://www.installaware.com/publication ... papers.htm
Dear Mill, thanks for your interest in reply, let me clear my question:
" When user initiate installation in that dialog there is Cancel button also, and click on it will ask for confirmation to abort the installation, I want to see the code of that dialogs, their controls (OK, CANCEL) and messages"

I hope, this will bring some useful answer for me.
Best . . .
mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: How to view code of hard coded Message dialog

Post by mills »

It sounds like you want to get into the Button_Click() functions?

You might notice that in the dialogs you create yourself, you cannot specify code that runs as a result of a button click, inside the dialog. You can only assign the predefined actions to it. Though, a non-modal dialog will display while MSIcode runs in the background (until the Hide Dialog command is reached). Otherwise, your logic will have to take place between the dialogs you display.

The dialog you mention is displayed by InstallAware as part of the "Cancel Setup" action (which you can set by double-clicking on the button/control in the dialog editor).

I hope this clears things up a bit. It can take a little getting used to how the dialog logic works.
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.
abhimudgal1
Posts: 15
Joined: Thu Jul 15, 2010 11:36 pm

Re: How to view code of hard coded Message dialog

Post by abhimudgal1 »

mills wrote:It sounds like you want to get into the Button_Click() functions?


The dialog you mention is displayed by InstallAware as part of the "Cancel Setup" action (which you can set by double-clicking on the button/control in the dialog editor).
.
Here with I have attached a dialog snap, pls help me where is this dialog and its code is located?
Attachments
installationProceessCancelDialog.JPG
installationProceessCancelDialog.JPG (6.8 KiB) Viewed 6308 times
mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: How to view code of hard coded Message dialog

Post by mills »

That dialog is hard-coded in InstallAware binaries and is only displayed when clicking Cancel on the form "The InstallAware Wizard is verifying the contents of this setup packag. This may take a moment". It is not editable...

If your intent is to remove the Cancel button, that is a known bug which we will be fixing to only display buttons Yes/No as a response.

If you do not want the yes/no/cancel messagebox to appear, as a work-around, uncompressed builds do not display the verifying contents dialog which produces the messagebox you refer to.
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.
abhimudgal1
Posts: 15
Joined: Thu Jul 15, 2010 11:36 pm

Re: How to view code of hard coded Message dialog

Post by abhimudgal1 »

OK, thank you very much mills for your time I appreciate you for that.

Best . . .
alibaba
Posts: 314
Joined: Fri Jun 26, 2009 8:46 am
Location: Thuringia, Germany

Re: How to view code of hard coded Message dialog

Post by alibaba »

I avoid this dialog by setting the behaviour to "return from dialog" and not to "Cancel Setup" and then "terminate with exit code" in script.
Post Reply