Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Setup / January 2004

Tip: Looking for answers? Try searching our database.

How to set the TextBox property from the msiexec command line

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Monty Shaw - 20 Oct 2003 18:16 GMT
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[

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.