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

Custom Action Sequence Problem


3 replies to this topic

rpatil

rpatil
  • Full Members
  • 3 posts

Posted 17 December 2009 - 13:01

Hi...

I am using InstallShield 2010, Ver 16.X. and working on Basic MSI Project.
There is specific requirement that a Custom actions needs to be called on Click of Next Pushbutton of InstallWelcom dialog.
Scenario - i have a Custom action of type InstallScript. This calls one function given below.
QUOTE
export prototype BeforeLicenseAggrement(HWND);
function BeforeLicenseAggrement(hMSI)
STRING szCommandLine; 
begin             
               SdShowMsg('Gathering System Information...', TRUE);
lbl_CheckUserIsAdmin:
    //Do some work
                lbl_CheckDatabse:        
                    //Do some work
lbl_InstallRunTimes:
                   //Do some work
lbl_StopCluserServices:
                   //Do some work
              Delay(10); //slight delay to allow time for the service to start
              Enable(HOURGLASS);
              SdShowMsg('Gathering System Information...', FALSE);
end;


If i edit the behavior of InstallWelcome, On Next Click, I have specified following actions.

I call above function by specify an event as given below,
QUOTE
    Event          Argument                        Condition
DoAction    BeforeLicenseAggrement           1  

After completing this CustomAction, next action is to go to LicenseAgreement dialog as specified below,
QUOTE
  Event            Argument            Condition
  NewDialog    LicenseAgreement         1    



1. Both the action are geting executed but, After the Click of Next button the welcome screen doesn't get disappear. How should i do that?

2. When i say back from the LicenseAgreement Dailog and again says Next on InstallWelcome the above metioned actions need to be executed, how should i do that?

Please help.

Thanks & Regards
rpatil

Edited by rpatil, 20 December 2009 - 12:51.


yus

yus
  • Full Members
  • 8 posts

Posted 18 December 2009 - 07:29

QUOTE (rpatil @ 2009-12-17 13:01)
Event            Argument            Condition
DoAction    LicenseAgreement         1        


You should change the Event from DoAction to NewDialog.
Because LicenseAgreement is Dialog not CustomAction.

rpatil

rpatil
  • Full Members
  • 3 posts

Posted 22 December 2009 - 21:15

Please help me.....

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 23 December 2009 - 12:01

QUOTE (rpatil @ 2009-12-22 21:15)
Please help me.....

Did you follow yus' advice? Did it help What are the symptoms now?