Bugs item #1515041, was opened at 2006-06-30 03:51
Message generated for change (Settings changed) made by pmarcu
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1515041&group_id=105970
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: extensions
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Copsey (copsey)
>Assigned to: pmarcu (pmarcu)
Summary: XmlFile attempts and fails to edit locked file on uninstall
Initial Comment:
I'm using the XmlFile element to edit a config file:
<XmlFile
Id="ModifySendHostFileForNTGroup"
Action="setValue"
ElementPath="/ns:Install/ns:Host/ns:NTGroupNam
e" File="[#CreateSendHostConfig]"
Value="[IN_PROCESS_GROUP_DOMAIN]
\[IN_PROCESS_GROUP_NAME]" />
This works fine. However on uninstall, it attempts
to modify the file back to the original value
(presumably) and fails because the file is locked by
MSIExec
"failed to save changes to XML file: ..."
To get round this I tried to use the permanent
attribute in the hope that it would not try to set
the value back (which I don't care about)
<XmlFile
Id="ModifySendHostFileForNTGroup"
Action="setValue"
ElementPath="/ns:Install/ns:Host/ns:NTGroupNam
e" File="[#CreateSendHostConfig]"
Value="[IN_PROCESS_GROUP_DOMAIN]
\[IN_PROCESS_GROUP_NAME]" Permanent="yes" />
This will not link, I get a light error:
fatal error LGHT0010: There was an error importing
table: XmlFile with file: ....XmlFile.idt
The file at this location has the following contents
XmlFile File ElementPath Name Value Flags
Component_ Sequence
s72 l255 l96 L128 L255 i2 s72
I2
XmlFile XmlFile
ModifySendHostFileForNTGroup
[#CreateSendHostConfig]
/ns:Install/ns:Host/ns:NTGroupName
[IN_PROCESS_GROUP_DOMAIN]
\[IN_PROCESS_GROUP_NAME] 65536 MainComponent
ModifyReceiveHostFileForNTGroup
[#CreateReceiveHostConfig]
/ns:Install/ns:Host/ns:NTGroupName
[OUT_OF_PROCESS_GROUP_DOMAIN]
\[OUT_OF_PROCESS_GROUP_NAME] 0 MainComponent
ModifySendHostInstanceFileForUserID
[#CreateSendHostInstanceConfig]
/ns:Install/ns:HostInstance/ns:UserID
[IN_PROCESS_USER_DOMAIN]
\[IN_PROCESS_USER_NAME] 0 MainComponent
ModifySendHostInstanceFileForPassword
[#CreateSendHostInstanceConfig]
/ns:Install/ns:HostInstance/ns:Password
[IN_PROCESS_USER_PASSWORD] 0
MainComponent
ModifyReceiveHostInstanceFileForUserID
[#CreateReceiveHostInstanceConfig]
/ns:Install/ns:HostInstance/ns:UserID
[OUT_OF_PROCESS_USER_DOMAIN]
\[OUT_OF_PROCESS_USER_USERNAME] 0 MainComponent
ModifyReceiveHostInstanceFileForPassword
[#CreateReceiveHostInstanceConfig]
/ns:Install/ns:HostInstance/ns:Password
[OUT_OF_PROCESS_USER_PASSWORD] 0
MainComponent
----------------------------------------------------------------------
Comment By: Copsey (copsey)
Date: 2006-06-30 07:20
Message:
Logged In: YES
user_id=1263750
I've added the linker error as a seperate bug 1515154
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1515041&group_id=105970
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs