Bugs item #1572033, was opened at 2006-10-06 03:38
Message generated for change (Comment added) made by scotk
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1572033&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: v2.0
>Status: Closed
>Resolution: Wont Fix
Priority: 5
Private: No
Submitted By: Svyatoslav Abramenkov (absolute_sh)
Assigned to: Scott Kurtzeborn (scotk)
Summary: XmlFile - createElement issue
Initial Comment:
If I want to create XML tag at the root location,
ExecXmlFile does nothing, on my look.
So, it's a part of .wxs:
<File Id="_95634756347853648756436537846534"
LongName="Merge.exe.config" Name="MERGE~1.CON"
KeyPath="no" Vital="yes" Assembly="no" DiskId="1"
Source="SourceDir\bin\release\Merge.exe.config" />
<XmlFile Id='UserSettingsSetCreate'
File='[INSTALLDIR]Merge.exe.config'
Action='createElement' Name='CurrentUserSettings'
ElementPath='//' Sequence='1' />
It successfully compiles and install then successully
completes, but there are no tags named
"CurrentUserSettings" in Merge.exe.config after.
Installation log's fragment:
Action 13:02:44: ExecXmlFile.
MSI (s) (44:60) [13:02:45:009]: Executing op:
CustomActionSchedule(Action=ExecXmlFile,ActionType=3073,Source=BinaryData,Target=ExecXmlFile,CustomActionData=1Merge.exe.config4//CurrentUserSettings)
MSI (s) (44:60) [13:02:45:040]: Creating MSIHANDLE (10)
of type 790536 for thread 2656
MSI (s) (44:FC) [13:02:45:056]: Invoking remote custom
action. DLL: C:\WINDOWS\Installer\MSIBF5.tmp,
Entrypoint: ExecXmlFile
MSI (s) (44:FC) [13:02:45:197]: Closing MSIHANDLE (10)
of type 790536 for thread 2656
MSI (s) (44:60) [13:02:45:228]: Executing op:
ActionStart(Name=CreateShortcuts,Description=Creating
shortcuts,Template=Shortcut: [1])
Action 13:02:45: CreateShortcuts. Creating shortcuts
MSI (s) (44:60) [13:02:45:275]: Executing op:
SetTargetFolder(Folder=2\Merge\)
MSI (s) (44:60) [13:02:45:306]:
SHELL32::SHGetFolderPath returned: C:\Documents and
Settings\sabr\Start Menu\Programs
MSI (s) (44:60) [13:02:45:322]: Executing op:
ShortcutCreate(Name=Merge,Feature=DefaultFeature,Component={BE928D51-BCD0-C12C-3FA8-C38C8C0850A2}[~]2,,,WorkingDir=C:\Program
Files\ISD\Merge\,Icon=merge.exe,IconIndex=0,,ShowCmd=1,)
Is any other possibility to create xml element with no
parent or not?
----------------------------------------------------------------------
>Comment By: Scott Kurtzeborn (scotk)
Date: 2006-12-19 19:32
Message:
Logged In: YES
user_id=1296992
Originator: NO
That's outside the scope of what XmlFile was created for. It appears that
you are trying to use the custom action to "construct" an XmlFile from
scratch. Instead, you should install a generic XML file (possibly with
just a root node) and then add elements to it using the custom action.
For reference, the main intention of XmlFile was to facilitate modifying
xml files such as web.config as part of an IIS web site install. It was
written in a general manner such that it could be used to make
updates/changes to any properly formed xml file though. If you're using
WiX 3.0, XmlConfig is also available to modify xml files which provides
better features for being more flexible with the types of changes it
allows.
As an additional note, IniFile (natively supported by MSI) would not be
used to construct an .ini file from scratch either. Instead you would
install a base file and add settings to it (or add settings to an already
existing file).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1572033&group_id=105970
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs