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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Why not manually remove the property from the Property table.
You could also try Session.Property("DISABLEADVTSHORTCUTS")="" to "NULL" it.
Answered 05/07/2008 by: AngelD
Red Belt

Please log in to comment
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?
Answered 05/07/2008 by: rayz_0020
Senior Purple Belt

Please log in to comment
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".
Answered 05/07/2008 by: AngelD
Red Belt

Please log in to comment
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.
Answered 05/07/2008 by: VBScab
Red Belt

Please log in to comment
0
why not try the reverse on the opposing system

ie when condition B is met add property to disable.
Answered 05/07/2008 by: jmcfadyen
Fifth Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity