Solved

Windows Installer Public Properties

Posted on 2007-03-23
4
153 Views
Last Modified: 2013-11-26
I have a Deployment project created in VS.net 2005.

I have added a Checkboxes dialog with two options, the property names of which are APP and DATA.

I use these two names as Conditions for installing different files.

How can you set the values of these two properties from the command line?  For example to do a silent install I thought I would need the following:

msiexec /i project.msi /qn APP=1 DATA=0

This doesn't work, the project is installed based on the default checkbox values.  Are these properties not public or have I got the syntax wrong?
0
Comment
Question by:microdrainage
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 7

Expert Comment

by:dctuck
ID: 18822571
The properties from dialog boxes within an deployment project are used by an Installer Class within your program. This is the only way of retrieving those values.

See MSDN for info on installer classes:

http://msdn2.microsoft.com/en-us/library/system.configuration.install.installer.aspx

I don't think there's any way of passing these properties directly to an msi
0
 

Author Comment

by:microdrainage
ID: 18889905
The inabilty to alter conditions that are set by Dialogs from the command line appears to by a limitation of msi packages built by VS.net.

However there is a way around this by using two conditions.  The checkbox condition is called CHKDATA.  The command line version is called DATA.  Files are installed if ((UILevel=5) And (CHKDATA)) Or (DATA).

Messy, but it solves my problem.  Does anyone have a better solution?
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 19154269
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question