Hello,
I'm new to WiX (and Windows Installer in general). I've hit an issue
that I cannot seem to solve with Google or help documents...
I have an install file that presents a configuration dialog where users
can enter database connection string information, which is used to
update a connection string in a .config file.
It works quite well during the initial install. But during a repair
install the data the user originally entered is lost, the corresponding
public properties revert back to their default values (as specified in
the original <Property> tags), and those are written into the .config
file.
The configuration dialog is never displayed during the repair.
The relevant WiX looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
...
<Property Id="DATABASEPORT" Value="1234"/>
...
<Component Id="C_ConfigDatabase" Directory="TARGETDIR"
Guid="67C7BA21-C302-485b-B27E-F7A997DFF790">
<util:XmlFile Id='ModifyDatabaseConnectionString'
Action='setValue' File='[WEBSITEDIR]web.config'
ElementPath='/configuration/connectionStrings/[EMAIL PROTECTED]"Database"[\]
]/@connectionString'
Value='Database=[DATABASEPORT]; Server=[DATABASESERVER]' />
</Component>
If I generate a log file, it simply lists the property as being equal to
its default value ("Property(S): DATABASEPORT = 1234).
Is there a way to get Windows Installer to remember what the user
entered from the original install?
-Tom Mulgrew
Attention:
This communication is confidential and may be legally privileged. If you are
not the intended recipient, please do not use, disclose, copy or distribute it,
other than to return it to us with your confirmation that it has been deleted
from your system.
-------------------------------------------------------------------------
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