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 CreateProgramFolder function.
*
* This script creates a program folder named ExampleFolder on
* the target system.
*
\*--------------------------------------------------------------*/
// Include Ifx.h for built-in InstallScript function prototypes.
#include "Ifx.h"
export prototype ExFn_CreateProgramFolder(HWND);
function ExFn_CreateProgramFolder(hMSI)
STRING szFolderName, szTitle, szMsg;
begin
// Set up parameters for call to CreateProgramFolder.
szFolderName = "ExampleFolder";
szTitle = "CreateProgramFolder";
szMsg = "%s created successfully.";
// Create the program folder.
if (CreateProgramFolder (szFolderName) < 0) then
MessageBox ("Unable to create program folder", SEVERE);
else
SprintfBox (INFORMATION, szTitle, szMsg, szFolderName);
endif;
end;
InstallShield 2016 Help LibraryMay 2017 |
Copyright Information | Flexera Software |