Solved

Windows Installer Public Properties

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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 …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

762 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now