OK, so I need a CustomAction that assigns to CONNECTIONSTRING property from a number of different properties. If the user selected IntegratedSecurity, then I want to assign it the string "{Data Source=[DBNAME];Integrated Security=SSPI;}". If the user selected NotIntegratedSecurity, then I want to assign "{Data Source=[DBNAME];User Id=[USERIDVALUE];Password=[PWDVALUE];}". I tried to put in a condition for the CustomAction to do one of these two things based on the USEINTEGRATEDSECURITY listbox, but my CustomAction won't take a condition.
How do I make the CustomAction do one of two different assignments based on a condition? Tim On Tue, Jun 3, 2008 at 12:44 PM, Bob Arnson <[EMAIL PROTECTED]> wrote: > Tim Fisher wrote: >> <RegistryValue Name="ConnectionString" >> Type="string" >> Value="{Data Source=[DBSERVERNAME];[[USEINTEGRATEDSECURITY]]}" >> /> ... >> <Property Id="USEINTEGRATEDSECURITY" Value="IntegratedSecurity" /> >> <Property Id="IntegratedSecurity" Value="Integrated Security=SSPI;" /> >> <Property Id="NotIntegratedSecurity" Value="User >> Id=[USERIDVALUE];Password=[PWDVALUE];" /> >> >> USEINTEGRATEDSECURITY is assigned to a listbox, which switches it >> between "IntegratedSecurity" and "NotIntegratedSecurity". I hope you >> can see what I'm trying to do here, but it says [USERIDVALUE] and >> [PWDVALUE] are illegal references. >> > > You need to use a CustomAction/Property=,Value= to set a property that > has values from other properties. > > -- > sig://boB > http://joyofsetup.com/ > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > 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 > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. 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