I have a .Net solution with a deployment project that installs my app. I
want to use a .cmd file to install this app. I have am using one of the
TextBox dialogs as well as 2 radio button dialogs. Everything works fine
when installing interactively. However when I try to set the value of the
TextBox property from the command line, I cannot get it to work. I can set
the radio button dialogs just fine.
I am using a command line similar to the following:
msiexec /qn /i C:\sompath\Setup.msi RADIO1=rad1 RADIO2=5 TEXTBOX=abc
The radio button dialog properties are set perfectly, however the textbox
property never contains the property from the command line. It always
contains the default value from the dialog properties.
Thanks in Advance
]Monty Shaw[
Monty Shaw - 23 Oct 2003 20:14 GMT
It's been a few days and still no answer. Is there something other than
registering a nospam email address with my MSDN universal subcription that I
need to do in order to get a response? I re-registered my email again to
make sure, but it should have already been registered from earlier this
year.
Thanks
]Monty[
Mike Wade [MSFT] - 27 Jan 2004 22:19 GMT
I was playing around with this, and I don't think there is a way to do this without modifying the MSI post-build.
However, the steps I would recommend are (assuming you are using the Textboxes (A) dialog):
- Open your MSI in Orca (available from the Windows Installer SDK)
- Remove all references to CustomTextA_SetProperty_EDIT from the CustomAction and InstallUISequence tables
- Add default textbox values to the PropertyTable (i.e. add EDITA1 with value xyz)
- Modify the value at install time: msiexec /qn /i C:\sompath\Setup.msi RADIO1=rad1 RADIO2=5 EDITA1=abc

Signature
Mike Wade, VB Team
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: "Monty Shaw" <montyshaw@nospam.checkfree.com>
>Subject: How to set the TextBox property from the msiexec command line
[quoted text clipped - 16 lines]
>Thanks in Advance
>]Monty Shaw[