/build/static/layout/Breadcrumb_cap_w.png

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!

0 Comments   [ + ] Show comments

Answers (7)

Posted by: anonymous_9363 14 years ago
Red Belt
0
Should have just used friggin VB scriptI honestly don't know why anyone would use WS over VBS. I toyed with it for all of 20 minutes when first starting out with Wise and that was enough.
Posted by: timmsie 14 years ago
Fourth Degree Brown Belt
0
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

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
5th Degree Black Belt
0
agree with Ian except in this case you could do it all native with an appsearch lookup for the var in question.
Posted by: aogilmor 14 years ago
9th Degree Black Belt
0
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
9th Degree Black Belt
0
great avatar BTW, just noticed it! LOL...
Posted by: anonymous_9363 14 years ago
Red Belt
0
After all this time, Owen, you only just noticed?!?
Posted by: aogilmor 14 years ago
9th Degree Black Belt
0
Ya I'm a bit clueless. also saw you over on the symantec/wise boards i went browsing the other day. man you do keep busy! take care!
O
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
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