Bugs item #1572279, was opened at 2006-10-06 10:16
Message generated for change (Comment added) made by robmen
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1572279&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: Pending
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Vova Tymchenko (halleck2)
Assigned to: Rob Mensching (robmen)
Summary: WiX XML CA error

Initial Comment:
Short description:

The WiX XML CA fails when you specify the value to be set longer than 255
characters.

Steps to reproduce:

1. Create a new WiX project, add some files
2. Add an XML file change entry like this:

 <XmlFile Id="SetLicenseCode" Action="setValue" 
ElementPath="/configuration/appSettings/[EMAIL PROTECTED]'LicenseKey'[\]]" 
Name="value" Value="[VERIFIEDLICENSE]" File="[#License.config]" />

Note the [VERIFIEDLICENSE] value - that means that the value to be put into
the destination XML file is to be taken from the property named VERIFIEDLICENSE.

3. Set the VERIFIEDLICENSE property to some text that's more than 255 characters
long.

4. Compile & try to install the MSI.

The installation would fail with the message "SchedXmlFile: failed to copy 
value"

The origin of the error:

The XML_FILE_CHANGE struct in the src\ca\wixca\dll\XmlFile.cpp has
a fixed-size array for the wzValue member. That needs to be changed to
a string pointer.

Proposed fix:

The src\ca\wixca\dll\XmlFile.cpp needs to be changed so that the
XML_FILE_CHANGE structure has a pointer to the value to be set, instead
of the char array.

See the attached diff file for the details of the fix.

----------------------------------------------------------------------

>Comment By: Rob Mensching (robmen)
Date: 2007-01-06 18:59

Message:
Logged In: YES 
user_id=991639
Originator: NO

Bug fixed in next WiX v2 build.

----------------------------------------------------------------------

Comment By: Bob Arnson (barnson)
Date: 2007-01-01 10:54

Message:
Logged In: YES 
user_id=26581
Originator: NO

Issue fixed only in v3

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1572279&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

Reply via email to