sorry for the late reply. was on vacation.
First Create the database with pre-requested values..
i created the aspnetdb by using the regsrvr and created the main pre requested data such as the name of the application and the application id etc.,
In the windows Applicaiton, the app.config file can hold the membership details.
i have used the following
<membership defaultProvider="AspNetSqlProvider">
<providers>
<clear/>
<!--The createuser wizard properties and i am declaring a few of them in the provider as below-->
<add name="ProvidersNAME say (ABCCOMPANY)" type="System.Web.Security.SqlMembershipProvider"
connectionStringName="The connection String that has been given in the Configuration section say(mycompConn)"
enablePasswordRetrieval="false"
enablePasswordReset="True"
passwordFormat="Hashed"
requiresQuestionAndAnswer="false"
applicationName="This is the Value that exist in the database ie.(in the AspnetDb.aspnet_application.applicationname -- say i have something like salesDeptApplication)"
requiresUniqueEmail="False"
maxInvalidPasswordAttempts="7"
passwordAttemptWindow="10"
minRequiredNonalphanumericCharacters="0" />
</provideres>
</membershigp>
In the Creating of the user .CS file i have added the follwing.
ProviderSettings sampleprovider1 = new ProviderSettings("ABCCOMPANY", "System.Web.Security.SqlMembershipProvider");
MembershipCreateStatus thestatus = new MembershipCreateStatus();
Membership.Providers["ABCCOMPANY"].CreateUser(The_username, the_pwd, the_emailaddress, null, null, true, null, out thestatus);
this will create the user in the aspnet_membership table with the username and password from the windows application
hope this helps.