OK smart guys: Wise Script Set Windows Installer property
OK here's a real WTF, I use wise script today to split out a path, then I wanted to write to the Windows Installer property [NEWPATH]. Everything is OK, I get the WS variable %NEWPATH% to populate but when I set Windows Installer property [NEWPATH], bollocks as the English say. Fuck all. Blank. Some jerk said you needed to have the empty Windows Installer property first. Fucking bulllshit, excuse my french, Wise script says not.
WTF? Here are some of the things I tried:
with and without the []
calling the wise script CA different places in the InstallExecute sequence.
I thought this would be the easy part after struggling with the parse in wise script. AFter getting that right, the Windows Installer property simply would not populte at all.
And of course Wise has absolutely NO goddam samples of how to use this. I am upset and feeling really stupid. Somebody tell me this is a problem with wise script, or give me a good sample that works.
Should have just used friggin VB script....sigh!
WTF? Here are some of the things I tried:
with and without the []
calling the wise script CA different places in the InstallExecute sequence.
I thought this would be the easy part after struggling with the parse in wise script. AFter getting that right, the Windows Installer property simply would not populte at all.
And of course Wise has absolutely NO goddam samples of how to use this. I am upset and feeling really stupid. Somebody tell me this is a problem with wise script, or give me a good sample that works.
Should have just used friggin VB script....sigh!
0 Comments
[ + ] Show comments
Answers (7)
Please log in to answer
Posted by:
anonymous_9363
14 years ago
Posted by:
timmsie
14 years ago
works for me:
The Get Windows installer Property action contains property name without square brackets
The Set Windows installer Property action Property name without square brackets (doesn't matter if this exists in the msi or not) Then the property Value will be you wisescript property surrounded by % signs
The Get Windows installer Property action contains property name without square brackets
The Set Windows installer Property action Property name without square brackets (doesn't matter if this exists in the msi or not) Then the property Value will be you wisescript property surrounded by % signs
item: Custom Script Item
Filename=Get Windows Installer Property.wse
Variable Name1=_PROPERTYNAME_
Variable Value1=BE_PROJECT_SERVER
Variable Name2=_PROP_VAR_
Variable Value2=TEST
Variable Name3=HELPFILE
Variable Value3=Wise Package Studio\WiseScript Editor\wise32.HLP
end
item: Custom Script Item
Filename=Set Windows Installer Property.wse
Variable Name1=_PROPERTYNAME_
Variable Value1=NEW_PROP
Variable Name2=HELPFILE
Variable Value2=Wise Package Studio\WiseScript Editor\wise32.HLP
Variable Name3=_PROPERTYVAL_
Variable Value3=%TEST%_EXTRA
end
Posted by:
jmcfadyen
14 years ago
Posted by:
aogilmor
14 years ago
it's pretty easy to use parse (compared to VBscript, although I probably could have found/adapted a find/replace text script without a lot of effort). but add that to the effort of debugging, I was seriously feeling kind of stupid. it was one of those really stupid, irritating days when nothing seems to go right. Thanks for the feedback to you all anyway, next time hopefully things will go smoother.
Posted by:
aogilmor
14 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.