Jump to content

This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

Running Scripts

1 reply to this topic


  • Full Members
  • 2 posts

Posted 11 July 2009 - 03:58

Hello, I am very new to IS 2009 and thus excuse the simple question.

I created a InstallScript project to learn the software. I wanted to create a folder in C so I pasted the example from the on-line help (some part showing only) in the RUL file.
#define DEFAULT_DIR "C:\\MyFolder"
#define SUBDIRS "N_Dir\\A_Dir"
// Include Ifx.h for built-in InstallScript function prototypes.
#include "Ifx.h"
export prototype ExFn_CreateDir(HWND);
function ExFn_CreateDir(hMSI)
STRING svPath;
// Disable the Back button in setup dialogs.

// Prompt user for a directory to be created.
AskPath ("Please enter a valid path.", DEFAULT_DIR, svPath);
Compiled the program but it does not run the script, what am I missing?
Is there some thing else I need to do to trigge the script
Any help is greatly appreciated

Stefan Krueger

Stefan Krueger


  • Administrators
  • 13,269 posts

Posted 11 July 2009 - 12:12

You created a function. Now you need to call it. If your project type is "InstallScript MSI", you can do this under Custom Actions. If your project type is "InstallScript" you should call it from the OnFirstUIBefore event handler.

Did you work through the tutorial and/or the evaluators guide?