Nevermind, I got it. I used this string "{Data
Source=[DBSERVERNAME];[[USEINTEGRATEDSECURITY]]}" as my connection
string, the listbox switches USEINTEGRATEDSECURITY between either
IntegratedSecurity or NotIntegratedSecurity. Then IntegratedSecurity
property gets "Integrated Security=SSPI" while the CustomAction
assigns to NotIntegratedSecurity the value "{User
Id=[USERIDVALUE];Password=[PWDVALUE];}" and everything works!

<Whew>

Tim

On Tue, Jun 3, 2008 at 4:16 PM, Tim Fisher <[EMAIL PROTECTED]> wrote:
> 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

Reply via email to