PDA

View Full Version : How to manage with Propery?



Trottrot
05-16-2005, 02:16 AM
Hi!

I can not understand how MsiSetProperty work.
Here is an example:

1. I create empty property named GA
2. I create Event DoAction (calling SET_PROP custom action) by Next button in the InstallWelcome dialog.
3. CA SET_PROP run CA_SETPRP function


function CA_SETPRP(hMSI)
NUMBER ret;
begin
ret=MsiSetProperty(hMSI,"GA","1");
if (ret=ERROR_SUCCESS) then
return 0;
endif;
end;

4. Function work fine, ret=ERROR_SUCCESS.
5. After Event DoAction (SET_PROP custom action) I insert new event with one condition:

SpawnWaitDialog \ SetupError \ (GA=1)

6. When I run the project the is no SetupError window after Next button!

Please, help me. What I do wrong?
Thanks, Alexey V.

RobertDickau
05-16-2005, 08:42 AM
As a test (and to make your project simpler), instead of using script, perhaps look into the set-a-property custom action type?

Or for a button, perhaps try the set-a-property control event? The event settings look like:

Event: [GA]
Argument: 1
Condition: 1