VS.Net Setup Projects: Passing data to a Custom Action

R

Rob Oliver

Hi,

I've seen a walkthrough for passing data from a setup project to a custom
action (an application) with an InstallClass. I am curious though--can the
data also be intercepted by a custom action defined as a vbscript? If so,
does anyone have any idea how it would be accomplished?

Thanks!
Rob Oliver
 
M

Mike Wade [MSFT]

You can use Session.Property to access the CustomActionData property. Below is a jscript example that I have
used to test this in the past:

var fso = new ActiveXObject("Scripting.FileSystemObject");
var filename = "C:\\install.txt";
var ts = fso.CreateTextFile(filename);
ts.WriteLine(Session.Property ("CustomActionData"));
ts.Close();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top