Hallo all, does anybody know how to set "Property" value from UI? I have folowing code: ------------------------------------------------------------------------------------------------- <Property Id="_edtUsr" Value="x"/> .... <Control Text="sec" Id="EdtUsr" Type="Edit" X="95" Y="78" Width="150" Height="15" Property="_edtUsr" Indirect="yes"> ------------------------------------------------------------------------------------------------- But during the installation, the property "_edtUsr" is everytime "x" and it ignores user entered value :-( Thanks for your help.
The whole code is folowing: ------------------------------------------------------------------------------------------------- <?xml version='1.0' encoding='Windows-1252'?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Module Id="Module1" Guid="D7BC5F3A-6279-4a11-9D9E-01B78296CB4E" Language="0" Version="4.0.0"> <Package Id="{F2248627-6719-46b7-9505-0F5B6F1A4A3D}" InstallerVersion="200" Languages="1033" Manufacturer="SITRONICS Telecom Solutions, Czech Republic a. s." SummaryCodepage="1252" AdminImage="no" ShortNames="no" /> <Property Id="_edtUsr" Value="x"/> <!-- ###################### CUSTOM DIALOG ####################################################### --> <UI> <Binary Id="BannerBitmap" SourceFile="Banner.bmp" /> <Property Id="BannerBitmap">bannrbmp</Property> <Property Id="USERN" Admin="yes"/> <TextStyle Id="Font1" FaceName="Tahoma" Size="10" Bold="yes" /> <Dialog Id="DBConnDlg" Width="370" Height="270" Title="[ProductName] [Setup]" > <Control Id="Banner" Type="Bitmap" X="0" Y="0" Width="450" Height="44" TabSkip="no" Text="BannerBitmap" /> <Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes"> <Text>{\Font1}Module Test</Text> </Control> <Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes"> <Text>Please specify DB connection string for Test Service</Text> </Control> <!-- --> <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" /> <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" /> <!-- EDIT--> <Control Id="LblUser" Type="Text" X="40" Y="80" Width="51" Height="17" TabSkip="yes"> <Text>User name:</Text> </Control> <Control Text="sec" Id="EdtUsr" Type="Edit" X="95" Y="78" Width="150" Height="15" Property="_edtUsr" Indirect="yes"/> <Control Id="buttonNext" Type="PushButton" X="244" Y="244" Width="56" Height="17" TabSkip="no"> <Text>&Next ></Text> <Publish Event="EndDialog" Value="Return" /> </Control> <Control Id="buttonCancel" Type="PushButton" X="309" Y="244" Width="56" Height="17" TabSkip="no"> <Text>Cancel</Text> <Publish Event="SpawnDialog" Value="CancelDlg"/> </Control> </Dialog> <Show Dialog="DBConnDlg" After="CostFinalize" ></Show> <LaunchConditions After='AppSearch' /> </UI> <!-- ###################### CUSTOM DIALOG ####################################################### --> <Directory Id='TARGETDIR' Name='SourceDir'> <Directory Id='INSTALLDIR' Name='Module1' LongName='Module 1'> <!-- ###################### MODIFY XML VALUE ################################################ --> <Component Id='Settings' Guid='{D73AD5A0-E909-464a-ABDC-3AC8E71DC8AB}'> <File Id='XmlSettings' Name='Srv.cfg' LongName='SecurityService.exe.config' Source='SecurityService.exe.config' /> <!-- The value "_edtUsr" is everytime default and ignores user input :-( --> <XmlFile Id='XmlSettings2' File='[INSTALLDIR]\Module 1\SecurityService.exe.config' Action='setValue' Name='connectionString' Value='User ID=[_edtUsr];Password=OOOO;Data Source=OOOO' ElementPath='//configuration/connectionStrings/add' Sequence='2' /> </Component> </Directory> </Directory> </Module> </Wix> ------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users