This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Welcome 'X' button
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 30, 2008
09:23 AM
Welcome 'X' button
(This is a InstallScript MSI project.)
Anyone knows why the 'X' button on the top right corner of the Welcome (first) dialog does nothing? It is supposed to close the dialog. I've found this problem on a few other custom dialogs I created. Seems to me the first dialog always disables the 'X' button.
Is it just me or is it a feature of InstallShield dialog? How can I enable it?
Thanks.
Anyone knows why the 'X' button on the top right corner of the Welcome (first) dialog does nothing? It is supposed to close the dialog. I've found this problem on a few other custom dialogs I created. Seems to me the first dialog always disables the 'X' button.
Is it just me or is it a feature of InstallShield dialog? How can I enable it?
Thanks.
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 30, 2008
02:55 PM
I'm not able to reproduce this behavior in a test project.
Have you modified any of these dialogs or their script code? Can you reproduce this issue in a sample project?
Have you modified any of these dialogs or their script code? Can you reproduce this issue in a sample project?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 01, 2008
08:17 AM
I have attached a sample project to show that the 'X' button is not working.
In this project, I created one custom dialog called "SdWelcomeTest". So in function OnFirstUIBefore(), I made a single change and called OnWelcomeTest() instead of the original SdWelcome(szTitle, szMsg).
In the InstallScript "custom.rul", you can see that the OnWelcomeTest() codes are basically copied from the sample script in IS Help with slight modifications. In the switch block, there are the built-in cases DLG_CLOSE and BTN_CANCEL. Both run the Do (EXIT) step. It seems that BTN_CANCEL is working but DLG_CLOSE is not.
I set an item in the Path Variable view to point to the file source. If you unzip the attached package to c:\temp, the project will build fine. If you unzip it to another location. Please modify the pointer in the Path Variable view.
Thanks for the help.
In this project, I created one custom dialog called "SdWelcomeTest". So in function OnFirstUIBefore(), I made a single change and called OnWelcomeTest() instead of the original SdWelcome(szTitle, szMsg).
In the InstallScript "custom.rul", you can see that the OnWelcomeTest() codes are basically copied from the sample script in IS Help with slight modifications. In the switch block, there are the built-in cases DLG_CLOSE and BTN_CANCEL. Both run the Do (EXIT) step. It seems that BTN_CANCEL is working but DLG_CLOSE is not.
I set an item in the Path Variable view to point to the file source. If you unzip the attached package to c:\temp, the project will build fine. If you unzip it to another location. Please modify the pointer in the Path Variable view.
Thanks for the help.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 01, 2008
10:43 AM
Please try adding the following code to the end of the dialog loop switch block:
SdIsStdButton and SdDoStdButton handle internal clicks/keypresses such as the close ("X") and help buttons.
I noticed that this code is missing from the example script dialog code in our help docs. I've submitted work order IOC-000070931 to correct this in a future release.
default:
// check standard handling
if (SdIsStdButton( nCmdValue ) && SdDoStdButton( nCmdValue )) then
bDone = TRUE;
endif;
SdIsStdButton and SdDoStdButton handle internal clicks/keypresses such as the close ("X") and help buttons.
I noticed that this code is missing from the example script dialog code in our help docs. I've submitted work order IOC-000070931 to correct this in a future release.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 01, 2008
11:05 AM
Woohoo! That works!
Thanks a ton.
Thanks a ton.
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)