Greetings all!

I'm using the following WiseScript custom action to try to do a little text handling on a property value and then pass the new value back into the MSI.

When I add DisplayMessage items to it, I confirm that it runs and I confirm that it is making the change that I want...

However, the property doesn't seem to get changed inside the MSI.

The custom action is set to run Synchronously - and I have it in the same If-block as one of the dialogs if NOT Installed and NOT PATCH.

Any ideas?

The custom action is pasted below.

Thanks in advance,

- Sean Roberts


item: Custom Script Item
Filename=Get Windows Installer Property.wse
Variable Name1=_PROPERTYNAME_
Variable Value1=CURRENTLOCATION
Variable Name2=_PROP_VAR_
Variable Value2=CURRENTLOCATION
Variable Name3=HELPFILE
Variable Value3=C:\Program Files\Wise Package Studio\HELP\WiseScriptEditor.chm
end
item: If/While Statement
Value=Len(CURRENTLOCATION) = 1
Flags=00001101
end
item: Custom Script Item
Filename=Set Windows Installer Property.wse
Variable Name1=_PROPERTYNAME_
Variable Value1=CURRENTLOCATION
Variable Name2=HELPFILE
Variable Value2=C:\Program Files\Wise Package Studio\HELP\WiseScriptEditor.chm
Variable Name3=_PROPERTYVAL_
Variable Value3=%CURRENTLOCATION%___
end
item: End Block
end
item: If/While Statement
Value=Len(CURRENTLOCATION) = 2
Flags=00001101
end
item: Custom Script Item
Filename=Set Windows Installer Property.wse
Variable Name1=_PROPERTYNAME_
Variable Value1=CURRENTLOCATION
Variable Name2=HELPFILE
Variable Value2=C:\Program Files\Wise Package Studio\HELP\WiseScriptEditor.chm
Variable Name3=_PROPERTYVAL_
Variable Value3=%CURRENTLOCATION%__
end
item: End Block
end
item: If/While Statement
Value=Len(CURRENTLOCATION) = 3
Flags=00001101
end
item: Custom Script Item
Filename=Set Windows Installer Property.wse
Variable Name1=_PROPERTYNAME_
Variable Value1=CURRENTLOCATION
Variable Name2=HELPFILE
Variable Value2=C:\Program Files\Wise Package Studio\HELP\WiseScriptEditor.chm
Variable Name3=_PROPERTYVAL_
Variable Value3=%CURRENTLOCATION%_
end
item: End Block
end
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Sean,

Two things.. first, do you have the property you want to set defined in the property table? You have to have an empty property in the table before a CA can set it.

Second, Are you from the Detroit area?


Best regards,

George
Answered 03/25/2004 by: gswitzer
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity