473,378 Members | 1,426 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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 2608
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: MENTAT | last post by:
Hi, I am trying to create an installer for my web application. So I added a web setup project to my solution (I am using VS.NET 2003). Been playing around with it since then and it basically...
1
by: moonriver | last post by:
I intend to establish a setup project including one or multiple windows service project(s). The outcome package should be SELF-INSTALLABLE on a separate Windows 2003 PC. How to do?
4
by: briano | last post by:
I can get my setup application to display a dialog and pass entered values to the Installer class of my app. How do I get this from the Command-Line? Currently, setting ENVNAME1=QA, just as I...
3
by: | last post by:
I have created a web setup project for my ASP.NET application that works fine. Also, I have followed the instructions for using a custom action to launch a web page after the installation is...
1
by: Jan K | last post by:
Hello, I've a web setup project where I include a custom action and an Installer class, in order to disable anonymous access in the web-application to be created. This was done by following...
1
by: Rob Oliver | last post by:
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...
4
by: Joe | last post by:
I created a CustomAction for this but I don't think I have it in the right place. I tried both Install and Commit but neither allow it to get to the final screen. Are there any examples of this...
0
by: Pete Wittig | last post by:
Hi, I am working in VS2005. I have a solution with four projects. One is a setup and deployment project the other three contain various Serviced Components. Let's call the Serviced Component...
1
by: rohan_from_mars | last post by:
I have a windows service and am also using Enterprise Library June 2005 version. Now i have created Setup and Deployment Project which installs the service. but how do i add EL dlls-...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.