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
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)
Please log in to answer
Posted by:
gswitzer
20 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.