Help w/ Custom Action
Newbe here:
Q1. I have created a custom action that calls a vbScript. I would like the script to run at the begining of the install and only then. Currently the vbs runs at the begining of the install and also when I remove the app via Add/Remove Programs.
My settings in the Custom Action Wizard (Adminstudio) are:
In-Script Execution = Immediate execution
Execution Scheduling = Always Execute :I tried setting this to "Execute only once" but then the vbs only ran during the uninstall.
Q2. How can I pass variables that I collect (when running a vbs via custom action) back to my MSI?
Thanks in advance for any help. This forum is a great resource.
Q1. I have created a custom action that calls a vbScript. I would like the script to run at the begining of the install and only then. Currently the vbs runs at the begining of the install and also when I remove the app via Add/Remove Programs.
My settings in the Custom Action Wizard (Adminstudio) are:
In-Script Execution = Immediate execution
Execution Scheduling = Always Execute :I tried setting this to "Execute only once" but then the vbs only ran during the uninstall.
Q2. How can I pass variables that I collect (when running a vbs via custom action) back to my MSI?
Thanks in advance for any help. This forum is a great resource.
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
cs_m_si
19 years ago
Hi,
Q1. You should set a condition like "If not Installed" to make sure your action runs only during installation.
Q2. You could use the Property property of the session object to pass values of variables to a property in your msi. For more info: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/session_session.asp
CS
Q1. You should set a condition like "If not Installed" to make sure your action runs only during installation.
Q2. You could use the Property property of the session object to pass values of variables to a property in your msi. For more info: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/session_session.asp
CS
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.