/build/static/layout/Breadcrumb_cap_w.png

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.

0 Comments   [ + ] Show comments

Answers (1)

Posted by: cs_m_si 19 years ago
Senior Yellow Belt
0
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
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