/build/static/layout/Breadcrumb_cap_w.png

Getting a Wise custom action to actually SET the property you want it to...

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

Answers (1)

Posted by: gswitzer 20 years ago
Senior Yellow Belt
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ