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: Suite: basic function not compiled in InstallScript function in IS2014
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 13, 2015
10:18 AM
Suite: basic function not compiled in InstallScript function in IS2014
In IS2014 suite project, the basic function such as MessageBox can't be compiled. I included ifx.h and then ISRTWindows.h. Anyting missing?
--------------------
/ Include Ifx.h for built-in InstallScript function prototypes and for Suite
// function prototypes.
#include "ifx.h"
#include "ISRTWindows.h"
// The keyword export identifies MyFunction() as an entry-point function.
// The argument it accepts must be an object for a Suite extension interface.
export prototype MyFunction(OBJECT);
// To Do: Declare global variables, define constants, and prototype user-
// defined and DLL functions here.
///////////////////////////////////////////////////////////////////////////////
//
// Function: MyFunction
//
// Purpose: This function will be called by the script engine when
// the Suite engine calls your InstallScript action.
//
///////////////////////////////////////////////////////////////////////////////
function MyFunction(oExtension)
// To Do: Declare local variables.
string str1;
begin
MessageBox("MyFunction:",INFORMATION);
//SprintfBox(INFORMATION,"MyFunction:","%s", str1);
// To Do: Write script that will be executed when MyFunction is called.
str1="Hello";
end;
--------------------
/ Include Ifx.h for built-in InstallScript function prototypes and for Suite
// function prototypes.
#include "ifx.h"
#include "ISRTWindows.h"
// The keyword export identifies MyFunction() as an entry-point function.
// The argument it accepts must be an object for a Suite extension interface.
export prototype MyFunction(OBJECT);
// To Do: Declare global variables, define constants, and prototype user-
// defined and DLL functions here.
///////////////////////////////////////////////////////////////////////////////
//
// Function: MyFunction
//
// Purpose: This function will be called by the script engine when
// the Suite engine calls your InstallScript action.
//
///////////////////////////////////////////////////////////////////////////////
function MyFunction(oExtension)
// To Do: Declare local variables.
string str1;
begin
MessageBox("MyFunction:",INFORMATION);
//SprintfBox(INFORMATION,"MyFunction:","%s", str1);
// To Do: Write script that will be executed when MyFunction is called.
str1="Hello";
end;
- Tags:
- suite project
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 14, 2015
02:46 PM
I am not certain of IS2014, but IS2013 did not allow any UI dialogs/message boxes to display.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 15, 2015
04:11 AM
I think that you answered my question. Fortunately, LaunchAppAndWait() works.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)