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

Calling instalScript on 'next'

I've created a function called generateConnectionString and added this to 'Custom Actions' with all sequences set to 'Absent from sequence'.

In the Dialog Behavior I've added new event 'doAction' and specified 'generateConnectionString' as the argument.

In generateConnectionString function I call the MessageBox function to show that the script is being executed. But when I run the install I don't see this message box.

Any help will be really appreciated.

Thanks
Labels (1)
0 Kudos
(5) Replies
Christopher_Pai
Level 16

Set the Condition to 1 and pay attention to the control event ordering ( right click move up, move down )

Read the comments about the condition and order columns at:

http://msdn.microsoft.com/en-us/library/aa368037
0 Kudos
tt33333
Level 3

Yeah I already have condition as 1 and the event is first event.

Any other suggestions.

Thanks.
0 Kudos
Christopher_Pai
Level 16

Log the install and see what it says when you click the next button. It's hard to say what's wrong without actually looking at your built MSI.

Btw you put 'doAction' in quotes but technically it's the 'DoAction' ControlEvent. That might just be a typo from someone used to typing camel case.
0 Kudos
tt33333
Level 3

Got it working.

Thanks.
0 Kudos
Christopher_Pai
Level 16

I'm curious, what was the problem/fix?
0 Kudos