InstallShield 2016 » InstallScript Language Reference
Note • To call this function in a Basic MSI setup, you must first create a custom action for the entry-point function, execute the custom action in a sequence or as the result of a dialog's control event, and then build the release.
/*--------------------------------------------------------------*\
*
* InstallShield Example Script
*
* Demonstrates the QueryShellMgr function.
*
* QueryShellMgr is called to find the name of the shell
* manager. The name is then displayed in a message box.
*
\*--------------------------------------------------------------*/
// Include Ifx.h for built-in InstallScript function prototypes.
#include "Ifx.h"
export prototype ExFn_QueryShellMgr(HWND);
function ExFn_QueryShellMgr(hMSI)
STRING svShellMgrName, szTitle, szMsg;
NUMBER nReturn;
begin
// Get the name of the program shell.
nReturn = QueryShellMgr (svShellMgrName);
if (nReturn < 0) then
// Report an error.
MessageBox ("Could not retrieve the program shell.", SEVERE);
else
// Display the name of the shell.
MessageBox ("The shell manager is " + svShellMgrName + ".", INFORMATION);
endif;
end;
InstallShield 2016 Help LibraryMay 2017 |
Copyright Information | Flexera Software |