470,641 Members | 1,578 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,641 developers. It's quick & easy.

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

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
1 2081
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.

Similar topics

3 posts views Thread by | last post: by
reply views Thread by Pete Wittig | last post: by
1 post views Thread by rohan_from_mars | last post: by
???
1 post views Thread by Stoney L | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.