What you need are called persisted properties. If you search this
mailing list for those words you'll find some information about them.
Basically you save your property value in the registry during first-time
installation and use a registry search after installation to retrieve
and reinitialise the property.

The problem with saving passwords in the registry is that you also need
to write a custom action to encrypt them and decrypt them to keep them
secure. An alternative would be to prompt the user for the password
again during repairs and removals.


-----Original Message-----
From: bonn deng [mailto:[email protected]] 
Sent: 11 August 2009 07:40
To: wix-users
Subject: [WiX-users] How to make some information remembered by the
packageso that it can be uninstalled automatically throughadd/remove
programs?

Hi, all~    I'm using WiX3.0 to build an install package for restoring
sql
server database. Now I can customize one dialog for users to input the
sqlServerName, userName and password and the installation works just
fine.
    But when I uninstall it through add/remove programs, I can't connect
the sql server correctly. Then I figured it out that is because the
inputed information for sql server is missing, so I have to run command
(msiexec /x sqlServerName="XX" userName="XX" password="XX") every time I
want to uninstall it.
    The question is: What can I do to make the sqlServerName, userName
and password remembered by the package so that it can be uninstalled
automatically through add/remove programs?
    Thanks in advance~
    Best wishes,
Bonn
------------------------------------------------------------------------
------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day trial. Simplify your report design, integration and deployment -
and focus on what you do best, core application coding. Discover what's
new with Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.  
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to