Google Groups Home
Help | Sign in
Assigning values to util:User tag
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Ligo  
View profile
 More options Jul 8, 5:27 pm
From: Ligo <mligorow...@gmail.com>
Date: Tue, 8 Jul 2008 14:27:19 -0700 (PDT)
Local: Tues, Jul 8 2008 5:27 pm
Subject: Assigning values to util:User tag
Hi,
Maybe this is simple question, but I can't assign valid user name and
password to util:User properties (it is not refreshed)
In my main wxs file I've
<Property Id="DbUserNameProperty">sa</Property>
<Property Id="DbPasswordProperty">sa</Property>

<util:User Id="SQLUser" Name="[DbUserNameProperty]"
Password="[DbPasswordProperty]"/>

...

<Directory Id="SQLServerDirectory" Name="SQLServer">
  <Component Id="SQLServerComponent"
Guid="897C56E6-4C69-11DD-9932-159056D89593">
    <CreateFolder />
    <Sql:SqlDatabase Id='InstallSqlDatabase'
Database='[DbNameProperty]' User='SQLUser' Server='.'
Instance='SQLEXPRESS'
     CreateOnInstall='yes' DropOnUninstall='no' ContinueOnError='no'
ConfirmOverwrite='yes'>
    </Sql:SqlDatabase>
  </Component>
</Directory>

And in dialog when user has control to enter user  password I've the
following line
<Control Id="DbUserNameEdit" Type="Edit" Height="17" Width="128"
X="25" Y="105" Property="DbUserNameProperty"
Text="[DbUserNameProperty]" />

<Control Id="DbPasswordEdit" Password="yes" Type="Edit" Height="17"
Width="128" X="25" Y="140" Property="DbPasswordProperty"
Text="[DbPasswordProperty]" />

Unfortunatelly, when user changes password in DbPasswordEdit it is not
visible in util:User and sqlExtension tries to connect to database
with its original value.
What should I do to forse installer to use entered credentials instead
of initial data.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google