473,405 Members | 2,171 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,405 software developers and data experts.

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 2796
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.Property("CustomActionData") 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.Property() in my VBS Script. If I
simply insert one value [ENVNAME1] into the custom action data, I can
read it using Session.Property("CustomActionData"). 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.public.dotnet.languages.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.Property("CustomActionData") 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.Property() in my VBS Script. If I
simply insert one value [ENVNAME1] into the custom action data, I can
read it using Session.Property("CustomActionData"). 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
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...
0
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...
4
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...
0
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...
1
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
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-...
2
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...
0
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? ...
0
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...
4
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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...

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.