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
- :
- Re: Message box and abort in Suite/Advanced installer
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
‎Feb 16, 2015
05:35 AM
Message box and abort in Suite/Advanced installer
Hi ,
I am working on Suite/Advanced project, in Suite installer I created a installscript file (set.rul) and calling its function as Actions in OnBegin events.And the suite installer contains two exe packages.
Inside the installscript I have
export prototype MyFunction(OBJECT);
function MyFunction(oExtension)
STRING szKey, szNumName, svNumValue,szPropertyValue ;
NUMBER nvSize,nvType;
begin
RegDBGetKeyValueEx (szKey, szNumName, nvType, svNumValue, nvSize);
SuiteSetProperty ("MyPropertyName", "true");
SuiteGetProperty("MyPropertyName",szPropertyValue );
if(szPropertyValue =true) then
MessageBox("Please install exe first",SEVERE);
abort;
endif;
end;
My questions are
1)How to add Messagebox in suite installer installscript,
2)After abort the suite installer should not execute any of its packages
I am working on Suite/Advanced project, in Suite installer I created a installscript file (set.rul) and calling its function as Actions in OnBegin events.And the suite installer contains two exe packages.
Inside the installscript I have
export prototype MyFunction(OBJECT);
function MyFunction(oExtension)
STRING szKey, szNumName, svNumValue,szPropertyValue ;
NUMBER nvSize,nvType;
begin
RegDBGetKeyValueEx (szKey, szNumName, nvType, svNumValue, nvSize);
SuiteSetProperty ("MyPropertyName", "true");
SuiteGetProperty("MyPropertyName",szPropertyValue );
if(szPropertyValue =true) then
MessageBox("Please install exe first",SEVERE);
abort;
endif;
end;
My questions are
1)How to add Messagebox in suite installer installscript,
2)After abort the suite installer should not execute any of its packages
(5) Replies
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 16, 2015
08:53 AM
If you just simply want to check the value of a key, dispaly a message and then exit the suite completey, I would create an "Exit condition". This is available under the "general Information" section of the Installation Designer for a suite project in IS Premier.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 18, 2015
06:06 AM
Thank you Hysteresis, I created an "Registry comparision" Exit condition. It is working grt
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 21, 2016
01:21 PM
The answer provided works in the specific case described. How to do this if that condition occurs later (not relevant at start of Suite)?
Thanks
Thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 25, 2016
10:37 AM
You cannot display MessageBox in the suite/advanced project. Its not allowed. What i have done in the past:
- Create a custom action with managed code and display the MessageBox from that
- Create a custom action to set a suite property and trigger a Secondary Window and handle it that way(Best IMO)
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 25, 2016
10:14 PM
Thanks @PlinyElder. I have done your second option too.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)