Solved

Windows Installer Public Properties

Posted on 2007-03-23
4
147 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
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
.NET tools for adding thread safety to a web app? 3 33
Reading the web config for a running service on Windows 10 16 41
.NET 2008 VB and C# 6 27
C# Gridview 1 31
Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 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