PDA

View Full Version : OnBegin() doesn't work



DiegoCP
01-29-2015, 09:32 AM
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! :)

DebbieL
01-29-2015, 10:08 AM
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 (http://helpnet.flexerasoftware.com/installshield21helplib/installshield21helplib.htm#StartTopic=helplibrary/IHelpIScriptOverview.htm)

I hope that helps.

DiegoCP
01-29-2015, 11:40 AM
Thank You Very Much! ill trying do it with custom action.



Have a good day.