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.
Photo

Display Custom Dialog in the Execute Sequence


5 replies to this topic

IgorS

IgorS
  • Members
  • 38 posts

Posted 17 January 2002 - 12:12

Hi, all.
I need to display my Custom dialog in the Execute sequence.
I cannot do it using InstallShield wizard.
I wrote Custom Action
**************************************************
function DisplayMyDlg(hMSI)  
int iRes;
begin
iRes = MsiDoAction(hMSI,  "MyDlg2");
if (iRes != ERROR_SUCCESS) then
                          ...
                          ...
*************************
But It returns error code ERROR_FUNCTION_NOT_CALLED

Anybody know how it can be done ?

Thanks, in advance.
Regards,


Ian Blake

Ian Blake
  • Members
  • 483 posts

Posted 17 January 2002 - 13:15

It is not appropriate to display any dialogs in the Execute Sequence.  There are a few exceptions but most needs are due to poor project design.  Why do you need your dialog?

IgorS

IgorS
  • Members
  • 38 posts

Posted 17 January 2002 - 13:25

I have to display Custom dialog which receives from user some parameters.
After this I call my custom action that checks validity of these parameters using just copied and registrated COM objects. And if parameters is "illegal" i should diaplay my custom dialog once more to request another one.
So it's neccessary for me to display my Custom Dialog after all files copied and registrated and added to COM+.

Ian Blake

Ian Blake
  • Members
  • 483 posts

Posted 17 January 2002 - 14:54

Add your dialog to the User Install sequence after ExecuteAction


IgorS

IgorS
  • Members
  • 38 posts

Posted 17 January 2002 - 15:07

But I have to use parameters that received from this Custom Dialog in the next Custom Actions from my Execute sequence.

IgorS

IgorS
  • Members
  • 38 posts

Posted 17 January 2002 - 17:32

Just now I found partly solution to this problem.
I used Installscript build-in function
SdShowDlgEdit3 (szTitle, szMsg, szField1, szField2, szField3, svEdit1, svEdit2, svEdit3);

And before I has to use function
Disable (BACKBUTTON);

I cannot change dialog size and size of each element, and cannot add my custom elements.

It's not so good but it works.