Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to access Property table in Windows INstaller?

26 views
Skip to first unread message

Michal

unread,
Nov 9, 2006, 11:19:47 AM11/9/06
to
Hi,

I am trying to change a Setup project (.NET 2005) so that I will be
able to perform a 'Quiet INstallation' without UI.
When I install this product with UI - I have several properties that I
have to set during installation: Some text boxes, and some radio
buttons.

1) How can I access Property table?
2) How to I update the 'SecureCustomProperties', so that an installing
user will be able to set his values to PUBLIC properties?
3) How do I get the return code from msiexec command? (I want to know
if it succeeded, or not + error code.)
4) Is there any other recommended way to do it??


Thanks,
Michal.

Anthony Hunter

unread,
Nov 9, 2006, 12:14:51 PM11/9/06
to
The properties that you set with the dialogs can be set in the command
line when you run it silently.

msiexec /i "file.msi" PROPERTY1="test1" PROPERTY2="test2"

Any of your properties that you need to set from command line must be
public properties. So the properties that are in SecureCustomProperties need
to be public as well.

I believe msiexec returns non zero on failure.

Anthony

"Michal" <bsmi...@hotmail.com> wrote in message
news:1163089186.9...@i42g2000cwa.googlegroups.com...

Michal

unread,
Nov 9, 2006, 4:06:05 PM11/9/06
to
Hi Anthony,

Thanks for your reply.
I still do not understand though -
1) How do I define a public property?
2) How do I edit/CHange/Add public properties to the list in
'SecureCustomProperties ' ?
3) I enter the following on the command shell:
msiexec /i Setup.msi /quiet /l* log_7.log CLS_IP="172.23.2.121"
But CLS_IP at the end of the installation remains with the default
value set in the .NETs setup project.


Thanks,
Michal

Anthony Hunter

unread,
Nov 10, 2006, 2:13:03 PM11/10/06
to
1) A public property is something in all uppercase. You can define these in
the property table or through custom actions.
2) Just edit the property table and add/edit/change the
SecureCustomProperties property. Seperate the properties with a semi-colon.
3) If CLS_IP is still being set to the default during the install, then
something in the install is over writing the one entered on the command
line. Could be a custom action.

Most of the answers to your questions are in the MSI help.

Anthony

"Michal" <bsmi...@hotmail.com> wrote in message

news:1163106365.3...@m7g2000cwm.googlegroups.com...

0 new messages