Hello
I'm trying to have my MSI take a password from an edit control or from a
command line and hide the edit control if the password is provided in the
command line.
When the property is passed on the command line (msiexec /i myinstaller.msi
password=foo), I would like to hide the password control in the UI. Can someone
point me to a sample how to do this? I've tried to add a condition <Condition
Action="hide"> NOT( password = "" ) </Condition> for the edit control, but this
gives me an error 2819 at execution if I don't declare the property, and the
declaration of the property seems to overwrite value passed in the command
line.
The code for the dialog is straightforward
<UI>
<Dialog Id="InstallDlg" Width="370" Height="270" Title="[ProductName]
[Setup]" NoMinimize="yes">
<Control Id="ct_Password" Type="Text" X="40" Y="90" Height="16"
Width="136" Transparent="yes" NoPrefix="yes" TabSkip="yes">
<Text>[DlgTitleFont]Password:</Text>
</Control>
<Control Id="ct_PasswordInput" Type="Edit" X="140" Y="90" Height="16"
Width="136" TabSkip="yes" Property="password" Indirect="yes" />
</Dialog>
</UI>
Thanks
Meir
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces.
It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users