Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Windows Installer Public Properties

Posted on 2007-03-23
4
Medium Priority
?
162 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

610 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