cancel
Showing results for 
Search instead for 
Did you mean: 
DiegoCP
Pilgrim

OnBegin() doesn't work

Hello!

So i created a new function in Behaviour and Logic -> InstallScript tab.

Setup.rul

#include "ifx.h"

function OnBegin( )
begin
MessageBox("Welcome to the Tutorial installation!", INFORMATION);
end;


I set this function to OnBegin() but it never gets deployed. I consulted this page on how to use scripts http://helpnet.flexerasoftware.com/installshield17helplib/IScrpTutScript.htm

But it doesnt work and to be honest i feel quite helpless about it. Its a simple messagebox!!! on beginning of installer and its in your tutorials and i doesnt work.

My project is an Basic MSI project.


Thank You for your time! Smiley Happy
Labels (1)
0 Kudos
2 Replies
Highlighted
DebbieL
Pilgrim

Re: OnBegin() doesn't work

That tutorial that you are referencing is for an InstallScript project. It does not apply to Basic MSI projects.

Basic MSI projects do not support event-driven script or run events such as OnBegin. To trigger InstallScript code in a Basic MSI project, you'd need to create a custom action that calls your InstallScript function. The following help topic has more information to get you started:
Using InstallScript

I hope that helps.
0 Kudos
DiegoCP
Pilgrim

Re: OnBegin() doesn't work

Thank You Very Much! ill trying do it with custom action.



Have a good day.
0 Kudos