cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
msaponaro
Level 3

OnFirstUIBefore problem

Hi, I have created a Basic MSI project in IS2008.
In a InstallScript file I have added the function OnFirstUIBefore:
When I run the application the debugger doesn't stop in this function.
Is this the right way to manage by code the dialog?
It's necessary to modify the Custom Action and sequences?

Thanks!!

#include "iswi.h"
#include "Ifx.h"

function OnFirstUIBefore( )
NUMBER nResult, nSetupType;
STRING szTitle, szMsg, svName, svCompany, svSerial;
STRING szDir;
begin
nSetupType = TYPICAL;
szDir = INSTALLDIR;
//szName = "";
//szCompany = "";
Dlg_Start:
// Beginning of dialogs label
Dlg_SdWelcome:
szTitle = "";
szMsg = "";
nResult = SdWelcome( szTitle, szMsg );
if (nResult = BACK) goto Dlg_Start;
// get user information
Dlg_SdRegisterUserEx:
szTitle = "";
szMsg = "";
nResult = SdRegisterUserEx( szTitle, szMsg, svName, svCompany, svSerial );
if (nResult = BACK) goto Dlg_SdWelcome;
Dlg_SdAskDestPath:
szTitle = "";
szMsg = "";
nResult = SdAskDestPath( szTitle, szMsg, szDir, 0 );
INSTALLDIR = szDir;
if (nResult = BACK) goto Dlg_SdRegisterUserEx;
//
// show other dialogs
//
// show the progress dialog
Enable(STATUSEX);
return 0;
end;
Labels (1)
0 Kudos
(3) Replies
Holger_G
Level 10

The OnFirstUIBefore() event will be used by default by InstallScript and InstallScript MSI project types.
0 Kudos
msaponaro
Level 3

so how can manage by code the dialogs?
I have used also OnBegin event but...nothing
0 Kudos
Holger_G
Level 10

For Basic MSI projects you must adjust the UI sequence.

If you want to use those InstallScript events you should use a pure InstallScript or a InstallScript MSI project.
0 Kudos