Hey.

I have a question regarding the XmlFile element. In my installer, I'm using it 
to modify a Unity configuration in an existing installation of another program 
(I'm replacing one plug-in with another). The way I'm doing it looks like so:

        <util:XmlFile Permanent="no" Id="SetPlugin" Action="setValue" 
File="[OTHERPROGLOCATION]\OtherProg.exe.config"
             
ElementPath="/configuration/unity/container/register[\[]@type='OtherProg.IPlugin'[\]]"
  Name="mapTo"
             Value="MyProg.MyPlugin, MyProg, Version=1.0.0.0, Culture=neutral, 
PublicKeyToken=abcdef12345678900" />

However, on uninstall, the value is not returned to its original state, as one 
would expect from setting Permanent="no" on the element. The documentation 
claims "Specifies whether or not the modification should be removed on 
uninstall." Yet, after uninstallation, the value of that field is still 
"MyProg.MyPlugin, MyProg, Version=1.0.0.0, Culture=neutral, 
PublicKeyToken=abcdef12345678900", not whatever it was before the installation 
took place.

Is this expected behavior? Am I missing a setting somewhere; is setting 
Permanent="no" not enough? Help would be appreciated.

Best regards

ALEXANDER K. SCHRØDER
------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to