By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,978 Members | 1,467 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,978 IT Pros & Developers. It's quick & easy.

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

P: n/a
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

Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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();

--
Mike Wade, VB Team
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
From: "Rob Oliver" <ro*****@hotmail.com>
Subject: VS.Net Setup Projects: Passing data to a Custom Action
Date: Sun, 14 Dec 2003 15:23:16 -0500

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


Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.