/build/static/layout/Breadcrumb_cap_w.png

VbScript to delete Property using a Custom Action

Can somebody help me in framing a VbScript to delete a property by a custom action....
B4 tat let me brief the issue tat i face... I have a property DISABLEADVTSHORTCUTS in my app which disables the shortcut to be advertised but i want that shortcut to be advertised.. I tried deleting the property from the property table in the transform and setting the value to Zero by a CA[SetProperty] just b4 InstallFinalize in Immediate mode; but still the value is applied as 1. It takes the value from some CA, but i have changed the value at the end of all CAs and still tat doesnt help.
So, can someone suggest me the syntax to be used in the VBscript to delete the property
(Something like, as used to set property in scripts as
Session.Property("DISABLEADVTSHORTCUTS")="0" )........

0 Comments   [ + ] Show comments

Answers (5)

Posted by: AngelD 16 years ago
Red Belt
0
Why not manually remove the property from the Property table.
You could also try Session.Property("DISABLEADVTSHORTCUTS")="" to "NULL" it.
Posted by: rayz_0020 16 years ago
Senior Purple Belt
0
I tried deleting the property from the property table in the transform and setting the value to Zero by a CA[SetProperty] just b4 InstallFinalize in Immediate mode; but still the value is applied as 1.

irrespective of the value set, it takes it as 1. its bcoz of this i am tryin to delete it just b4 the insatllation ends.. is there any possibilities to do tat?
Posted by: AngelD 16 years ago
Red Belt
0
So if you manually remove the property does it come back?
If so it sound like it's not you who are the "father" of this package and there may exist a custom action setting the property "back".
Posted by: anonymous_9363 16 years ago
Red Belt
0
I'll bet a substantial figure that this is an InstallShield-authored vendor MSI. I'll further wager that there's a Custom Action calling some bizarre function e.g. F4 in one of the InstallShield DLLs.

Run the MSI in your authoring tool's debugger and set a breakpoint for when the property's value changes. You can then see precisely which CA is setting the property and sequence your own 'Set Property' CA accordingly.
Posted by: jmcfadyen 16 years ago
5th Degree Black Belt
0
why not try the reverse on the opposing system

ie when condition B is met add property to disable.
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