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" )........
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)
Please log in to answer
Posted by:
AngelD
16 years ago
Posted by:
rayz_0020
16 years ago
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
Posted by:
anonymous_9363
16 years ago
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.
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
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.