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

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
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
Answered 11/03/2005 by: cs_m_si
Senior Yellow Belt

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