This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: OnFirstUIBefore problem
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 16, 2007
05:44 AM
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;
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;
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 16, 2007
06:53 AM
The OnFirstUIBefore() event will be used by default by InstallScript and InstallScript MSI project types.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 16, 2007
07:06 AM
so how can manage by code the dialogs?
I have used also OnBegin event but...nothing
I have used also OnBegin event but...nothing
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 16, 2007
07:13 AM
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.
If you want to use those InstallScript events you should use a pure InstallScript or a InstallScript MSI project.