Hi Salome,
to save the value of your Control, you could use a line like the following:
<RegistryValue Id='UserName' Root='HKLM' Key='Software\MySoftware' Name
='UserName' Action='write' Type='string' Value='[USERNAME]' />
For accessing it you'll have to use a registry search with a property:
<Property Id='UNAME' Admin='no' Hidden='no' Secure='no'>
<RegistrySearch Id='Username_RegSearch' Root='HKLM'
Key='Software\MySoftware' Name='UserName' Type='raw' />
</Property>
As far as I rember, the property you read the regvalue into and the property of
your control should not be the same, that's why I set the property tu UNAME in
this example.
Oliver
From: salome zk [mailto:[EMAIL PROTECTED]
Sent: Mittwoch, 12. September 2007 17:25
To: Mailinglist; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] save username and password
How can i access the username that i have saved? and also how can i save it
from the PrompCredential Page?
<Control Id="UserNameValue" Type="Edit" X="20" Y="72" Width="320" Height="18"
Property="USERNAME" Text="47">
thanks,
Mailinglist <[EMAIL PROTECTED]> wrote:
Hi Salome,
you can store the username in the registry (but only the username) in a key
that is not by default deleted on uninstall.
Oliver
From: salome zk [mailto:[EMAIL PROTECTED]
Sent: Mittwoch, 12. September 2007 14:46
To: Mailinglist; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] save username and password
Thanks for you answer, but just one other question, is there a way to just
store the username?
You see, customers keep losing their username and so once they have unistalled
the software the next time they want to install it they can't remeber their
username.I wanted to know if there's a way to save the username they enter
somwhere and the next time they want to install the software it automatically
restores the username in the username box.
thanks.
Mailinglist <[EMAIL PROTECTED]> wrote:
Hi,
even if you use a custom action to encrypt and decrypt the credentials, it
would be unsafe to store them, cause they coud be found and decrypted.
The data you store can be hacked on (RegistryKeys, File) as well as your code
that you use to store/encrypt/decrypt them. If you use tools, they can be
extracted from the msi, if you use a stringkey for de/encryption, it can be
extracted from the msiââ'¬Â¦ no encryption is safe as long as all secrets are
shipped with the data.
Oliver
-------------------------------------------------------------------------
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
________________________________
Be a better Globetrotter. Get better travel answers
<http://us.rd.yahoo.com/evt=48254/*http:/answers.yahoo.com/dir/_ylc=X3oDMTI5MGx2aThyBF9TAzIxMTU1MDAzNTIEX3MDMzk2NTQ1MTAzBHNlYwNCQUJwaWxsYXJfTklfMzYwBHNsawNQcm9kdWN0X3F1ZXN0aW9uX3BhZ2U-?link=list&sid=396545469>
from someone who knows.
Yahoo! Answers - Check it out.
________________________________
Pinpoint customers
<http://us.rd.yahoo.com/evt=48250/*http:/searchmarketing.yahoo.com/arp/sponsoredsearch_v9.php?o=US2226&cmp=Yahoo&ctv=AprNI&s=Y&s2=EM&b=50>
who are looking for what you sell.
-------------------------------------------------------------------------
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