PDA

View Full Version : Problem executing LUA scripts


Jacobo
07-29-2008, 01:59 AM
I have three custom actions:

CUSTOMACTION1 -> Execute vbscript
CUSTOMACTION2 -> Execute vbscript
CUSTOMACTION3 -> Execute LUA script

On the Exit Dialog (exit success), I have published three events for the Finish Button (the last button viewed during de installation progress...). I have specified the numeric timing secuence to do this action in order. The last published event executes his the default published action (Event: Dialog --- Return).

Definitively, when i push Finish button, CUSTOMACTION1 and CUSTOMACTION2 are executed, but CUSTOMACTION3 (exe LUA) do nothing.
This LUA script file only have one sentence:
Dialog.Message("Hello","Hello", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);

-------------------------------------------
That are the options for CUSTOMACTION3:

Scheduling: Inmediate.
Return: Ignore.
Supress modularization: unchecked.

Timing secuence empty.
------------------------------------------

Published Events for Finish button:
Event: DoAction Value: CUSTOMACTION1 (timing secuence 996).
Event: DoAction Value: CUSTOMACTION2 (timing secuence 997).
Event: DoAction Value: CUSTOMACTION3 (timing secuence 998).
Event: EndDialog Value:Return (timing secuence 999).

-----------------------------------------

What is the problem?

Adam
07-29-2008, 09:24 AM
Be sure that you are using the latest version 2.1.1002.0 since there was a bug fixed for this version dealing with the Lua Script custom action.

- What happens if you just have the LuaScript action and not the other 2 first? Does it work?

Adam Kapilik

Jacobo
07-30-2008, 01:49 AM
Yes, my MSI Factory version is 2.1.1002.0

I was initiating one windows service when push Finish button. With vbscript runs without problems, but LUA script don't execute.

I think that LUA script execution associated to a 'DoAction' have a bug...but I am not sure, because I don't know if my way to execute this script, when I push one button, is the correct way.

Thanks. My best regards.

Jacobo
07-30-2008, 01:54 AM
- What happens if you just have the LuaScript action and not the other 2 first? Does it work?
Adam Kapilik

I am going to do this. And tomorrow I'll to tell you. Anyhow, there should not be problems with it.

Thanks. My best regards.