473,569 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setup project accepting Command-Line params?

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 have a custom action with
/EnvironmentName =[ENVNAME1].

Am I misinterpreting the functionality here?

Nov 16 '05 #1
4 2809
it should look something like:

my.msi ENVNAME1=QA

or

msiexec /i my.msi ENVNAME1=QA

Nov 16 '05 #2
Thanks! That is very helpful. I found that by removing the Dialog in
the Setup project;s user interface, the command line options passed are
read from Context.
Thanks again for your reply.
Brian

Nov 16 '05 #3
One more thing. Just in case my developers refuse my adding an
installer class to our application, I want to be able to do install
work in a custom action calling a VBS script file. I am having some
success reading the value of Session.Propert y("CustomAction Data") but
no other property. I tried the syntax discussed above, and found the
MSI does indeed create all the properties I send, but I get only empty
string using the syntax Session.Propert y() in my VBS Script. If I
simply insert one value [ENVNAME1] into the custom action data, I can
read it using Session.Propert y("CustomAction Data"). But I may need to
pass multiple values.

Any ideas here?

TIA -
Brian

Nov 16 '05 #4
Brian I would suggest passing those values into the script from the
arguments property of the custom action.

Todd Derksen
--------------------
Visual Basic Deployment Test Team
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: br****@avanade. com
Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
Subject: Re: Setup project accepting Command-Line params?

One more thing. Just in case my developers refuse my adding an
installer class to our application, I want to be able to do install
work in a custom action calling a VBS script file. I am having some
success reading the value of Session.Propert y("CustomAction Data") but
no other property. I tried the syntax discussed above, and found the
MSI does indeed create all the properties I send, but I get only empty
string using the syntax Session.Propert y() in my VBS Script. If I
simply insert one value [ENVNAME1] into the custom action data, I can
read it using Session.Propert y("CustomAction Data"). But I may need to
pass multiple values.

Any ideas here?

TIA -
Brian


Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2565
by: Rupang | last post by:
Make sure that IIS is installed on your Machine! If IIS is installed then you need to Run following "aspnet_regiis -i" from your VS.NET Command Prompt Regards, Rupang >-----Original Message----- >I just installed VS.NET and when attempting to start my >first project, a web application, I'm receiving an error
0
1930
by: Adam Clauss | last post by:
I have a C++ COM Addin I wrote for Outlook (2002) using VS.Net 2002. Having completed it, I am now looking to create a setup project and install it on another machine. I created a setup project and added it to my solution (selecting the "Primary Output" as the files to include from my project). However, when I attempt to build the setup...
4
2298
by: Howard Kaikow | last post by:
When I build a setup project, the dependency in the setup project is tied to the version in which it was built. Is there a way to build a setup project that can be used in both versions of the Framework? There is provision to build the app's .exe so that the .exe can be used in either version of the framework, is there not a way to do this...
0
1106
by: Fred | last post by:
I am using VS2003 and I am using files with myExt to launch my application. The file type was setup in the Setup Project under File Types. This all works well but now I won't to use Notepad to edit files with myExt. In the Setup Project I created another file type, but using the same extension, and created an Edit option. Originally I only had...
1
1426
by: Ilias Lazaridis | last post by:
If I understood things right, setuptools extends the functionality of distutils Thus replacing within a setup.py: from distutils.core import setup with try:
1
3587
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- Common.dll, Logging.dll, Configuration.dll, Data.dll into setup project so that it is also installed automatically. It should perform what the 'Install...
2
2233
by: joerozario | last post by:
I have created a windows application. Like windows search program. So I want my project link should be shown in folder right click. I have added values in the registry manually in I have got as I need. This is the Registry Script Windows Registry Editor Version 5.00 @="Project path "
0
971
by: =?Utf-8?B?Um9nZWxpbw==?= | last post by:
hey I'm using a setup project here in VS2k5, and I want to run a dos command using a command window. how do I program this into my setup project so that it does it by itself as its installing? thanks.
0
1119
by: ngxfer001 | last post by:
HI Experts, I am trying to learn VS Setup Project, the problem I experience now is, I have written a C++ program to register all my DirectShow filter by CreateProcess method. Q1: the reason I have to do this is because with VS regcap, I can't register my filter for some reason, my DX filter can register with regsvr32 perfectly? can you...
4
3693
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi all, I continue with installation. I create three windows services. Each service has a Installer class.
0
7697
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7968
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6283
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5512
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.