XML error

Apr 11, 2013 at 8:35 PM
Hello,

From email: That looks like an error from my extended BA, is that correct? If so remove the <Update> element from your bundle if you are not using it. If you have any follow up questions can you post them to the extended BA codeplex discussion.

Error: Error 0x8007006e: Failed to load version check XML document.

I do use the update feature in the Burn bundle, is there anyway to remove this error?
Coordinator
Apr 11, 2013 at 10:06 PM
The error is telling you that the website in the <Update> element is not returning valid XML so it is not an error that can be removed as it the update feature won't work without valid XML.
Apr 11, 2013 at 10:08 PM
Edited Apr 12, 2013 at 2:20 PM
My Update works for the burn bundle so I would assume its a proper XML file.

Why would I still be getting the error?
Coordinator
Apr 12, 2013 at 7:49 AM
Can you repost this.
Coordinator
Apr 12, 2013 at 4:45 PM
I can't see how it can, if that error is in the log then the update code is aborted and the link not displayed. Can you post more of the log and an example of the upgrade XML?
Apr 12, 2013 at 5:41 PM
[0444:06F4][2013-03-25T10:38:11]i001: Burn v3.7.1224.0, Windows v6.0 (Build 6001: Service Pack 1), path: C:\ProgramData\Package Cache{ddf49914-7738-4749-b5ad-25826c68f02d}\Camera_Kit.exe, cmdline: '/uninstall -burn.unelevated BurnPipe.{86C49B4F-8A1C-4840-912F-889147CF5C18} {830382C6-C0AD-4608-8BC7-3A2EE696D727} 1212'
[0444:06F4][2013-03-25T10:38:11]i000: Initializing string variable 'InstallFolder' to value '[ProgramFilesFolder]PixeLINK'
[0444:06F4][2013-03-25T10:38:11]i000: Initializing numeric variable 'MyCheckbox1' to value '1'
[0444:06F4][2013-03-25T10:38:11]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\pcarroll\AppData\Local\Temp\PixeLINK_Camera_Kit_20130325103811.log'
[0444:06F4][2013-03-25T10:38:11]i052: Condition 'VersionNT >= v5.01' evaluates to true.
[0444:06F4][2013-03-25T10:38:11]i100: Detect begin, 4 packages
[0444:06F4][2013-03-25T10:38:11]i000: Setting numeric variable 'Netfx20Version' to value 1
[0444:06F4][2013-03-25T10:38:11]i000: Update location: http://www.files.pixelink.com/update/Capture/index.php?version=8.7.0.0.
[0444:06F4][2013-03-25T10:38:11]i052: Condition 'Netfx20Version AND (Netfx20Version >= v2.0.50727.5420)' evaluates to false.
[0444:0934][2013-03-25T10:38:11]i000: Checking for update.
[0444:06F4][2013-03-25T10:38:11]i101: Detected package: Netfx20, state: Absent, cached: None
[0444:06F4][2013-03-25T10:38:11]i101: Detected package: CameraKit, state: Present, cached: Complete
[0444:06F4][2013-03-25T10:38:11]i101: Detected package: driver1, state: Present, cached: Complete
[0444:06F4][2013-03-25T10:38:11]i101: Detected package: driver2, state: Absent, cached: None
[0444:06F4][2013-03-25T10:38:11]i199: Detect complete, result: 0x0
[0444:06F4][2013-03-25T10:38:22]i200: Plan begin, 4 packages, action: Uninstall
[0444:06F4][2013-03-25T10:38:22]i000: Setting string variable 'WixBundleRollbackLog_driver1' to value 'C:\Users\pcarroll\AppData\Local\Temp\PixeLINK_Camera_Kit_20130325103811_0_driver1_rollback.log'
[0444:06F4][2013-03-25T10:38:22]i000: Setting string variable 'WixBundleLog_driver1' to value 'C:\Users\pcarroll\AppData\Local\Temp\PixeLINK_Camera_Kit_20130325103811_0_driver1.log'
[0444:06F4][2013-03-25T10:38:22]i000: Setting string variable 'WixBundleRollbackLog_CameraKit' to value 'C:\Users\pcarroll\AppData\Local\Temp\PixeLINK_Camera_Kit_20130325103811_1_CameraKit_rollback.log'
[0444:06F4][2013-03-25T10:38:22]i000: Setting string variable 'WixBundleLog_CameraKit' to value 'C:\Users\pcarroll\AppData\Local\Temp\PixeLINK_Camera_Kit_20130325103811_1_CameraKit.log'
[0444:06F4][2013-03-25T10:38:22]w321: Skipping dependency registration on package with no dependency providers: Netfx20
[0444:06F4][2013-03-25T10:38:22]i201: Planned package: driver2, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: Unregister
[0444:06F4][2013-03-25T10:38:22]i201: Planned package: driver1, state: Present, default requested: Absent, ba requested: Absent, execute: Uninstall, rollback: Install, cache: No, uncache: Yes, dependency: Unregister
[0444:06F4][2013-03-25T10:38:22]i201: Planned package: CameraKit, state: Present, default requested: Absent, ba requested: Absent, execute: Uninstall, rollback: Install, cache: No, uncache: Yes, dependency: Unregister
[0444:06F4][2013-03-25T10:38:22]i201: Planned package: Netfx20, state: Absent, default requested: None, ba requested: None, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[0444:06F4][2013-03-25T10:38:22]i299: Plan complete, result: 0x0
[0444:06F4][2013-03-25T10:38:22]i300: Apply begin
[04BC:01B0][2013-03-25T10:38:22]w308: Automatic updates could not be paused due to error: 0x8024a000. Continuing...
[04BC:01B0][2013-03-25T10:38:22]i360: Creating a system restore point.
[04BC:01B0][2013-03-25T10:38:32]i361: Created a system restore point.
[04BC:01B0][2013-03-25T10:38:32]i329: Removed package dependency provider: {2D3425D4-EA65-463F-B628-9A1EF678BD53}, package: driver2
[04BC:01B0][2013-03-25T10:38:32]i326: Removed dependency: {ddf49914-7738-4749-b5ad-25826c68f02d} on package provider: {DB28AEB0-E864-46DD-A78C-D3CA983819ED}, package driver1
[04BC:01B0][2013-03-25T10:38:32]i329: Removed package dependency provider: {DB28AEB0-E864-46DD-A78C-D3CA983819ED}, package: driver1
[04BC:01B0][2013-03-25T10:38:32]i301: Applying execute package: driver1, action: Uninstall, path: C:\ProgramData\Package Cache{DB28AEB0-E864-46DD-A78C-D3CA983819ED}v8.7.0.0\Driversx86, arguments: ' ALLUSERS="1" ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7" INSTALLLOCATION="C:\Program Files\PixeLINK"'
[0444:0934][2013-03-25T10:38:36]e000: Error 0x8007006e: Failed to load version check XML document.
[0444:06F4][2013-03-25T10:38:46]i319: Applied execute package: driver1, result: 0x0, restart: None
[04BC:01B0][2013-03-25T10:38:46]i326: Removed dependency: {ddf49914-7738-4749-b5ad-25826c68f02d} on package provider: {C6A2E379-F544-4714-8AD3-8226139D27F7}, package CameraKit
[04BC:01B0][2013-03-25T10:38:46]i329: Removed package dependency provider: {C6A2E379-F544-4714-8AD3-8226139D27F7}, package: CameraKit
[04BC:01B0][2013-03-25T10:38:46]i301: Applying execute package: CameraKit, action: Uninstall, path: C:\ProgramData\Package Cache{C6A2E379-F544-4714-8AD3-8226139D27F7}v8.7.0.0\Camera_Kit, arguments: ' ALLUSERS="1" ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7" INSTALLLOCATION="C:\Program Files\PixeLINK" DESKTOP="1"'
[0444:06F4][2013-03-25T10:38:59]i319: Applied execute package: CameraKit, result: 0x0, restart: None
[04BC:01B0][2013-03-25T10:38:59]i351: Removing cached package: driver1, from path: C:\ProgramData\Package Cache{DB28AEB0-E864-46DD-A78C-D3CA983819ED}v8.7.0.0\
[04BC:01B0][2013-03-25T10:38:59]i351: Removing cached package: CameraKit, from path: C:\ProgramData\Package Cache{C6A2E379-F544-4714-8AD3-8226139D27F7}v8.7.0.0\
[04BC:01B0][2013-03-25T10:38:59]i330: Removed bundle dependency provider: {ddf49914-7738-4749-b5ad-25826c68f02d}
[04BC:01B0][2013-03-25T10:38:59]i352: Removing cached bundle: {ddf49914-7738-4749-b5ad-25826c68f02d}, from path: C:\ProgramData\Package Cache{ddf49914-7738-4749-b5ad-25826c68f02d}\
[0444:06F4][2013-03-25T10:38:59]i399: Apply complete, result: 0x0, restart: None, ba requested restart: No
[0444:06F4][2013-03-25T10:39:02]i500: Shutting down, exit code: 0x0
[0444:06F4][2013-03-25T10:39:02]i410: Variable: InstallFolder = C:\Program Files\PixeLINK
[0444:06F4][2013-03-25T10:39:02]i410: Variable: MyCheckbox1 = 1
[0444:06F4][2013-03-25T10:39:02]i410: Variable: Netfx20Version = 1
[0444:06F4][2013-03-25T10:39:02]i410: Variable: ProgramFilesFolder = C:\Program Files\
[0444:06F4][2013-03-25T10:39:02]i410: Variable: VersionNT = 6.0.0.0
[0444:06F4][2013-03-25T10:39:02]i410: Variable: WixBundleAction = 3
[0444:06F4][2013-03-25T10:39:02]i410: Variable: WixBundleElevated = 1
[0444:06F4][2013-03-25T10:39:02]i410: Variable: WixBundleInstalled = 1
[0444:06F4][2013-03-25T10:39:02]i410: Variable: WixBundleLog = C:\Users\pcarroll\AppData\Local\Temp\PixeLINK_Camera_Kit_20130325103811.log
[0444:06F4][2013-03-25T10:39:02]i410: Variable: WixBundleLog_CameraKit = C:\Users\pcarroll\AppData\Local\Temp\PixeLINK_Camera_Kit_20130325103811_1_CameraKit.log
[0444:06F4][2013-03-25T10:39:02]i410: Variable: WixBundleLog_driver1 = C:\Users\pcarroll\AppData\Local\Temp\PixeLINK_Camera_Kit_20130325103811_0_driver1.log
[0444:06F4][2013-03-25T10:39:02]i410: Variable: WixBundleManufacturer = PixeLINK
[0444:06F4][2013-03-25T10:39:02]i410: Variable: WixBundleName = PixeLINK Camera Kit
[0444:06F4][2013-03-25T10:39:02]i410: Variable: WixBundleOriginalSource = V:\9 - support\Projects\WindowsInstall\Build_Files\WixInstalls\output\Camera_Kit.exe
[0444:06F4][2013-03-25T10:39:02]i410: Variable: WixBundleProviderKey = {ddf49914-7738-4749-b5ad-25826c68f02d}
[0444:06F4][2013-03-25T10:39:02]i410: Variable: WixBundleRollbackLog_CameraKit = C:\Users\pcarroll\AppData\Local\Temp\PixeLINK_Camera_Kit_20130325103811_1_CameraKit_rollback.log
[0444:06F4][2013-03-25T10:39:02]i410: Variable: WixBundleRollbackLog_driver1 = C:\Users\pcarroll\AppData\Local\Temp\PixeLINK_Camera_Kit_20130325103811_0_driver1_rollback.log
[0444:06F4][2013-03-25T10:39:02]i410: Variable: WixBundleTag =
[0444:06F4][2013-03-25T10:39:02]i410: Variable: WixBundleVersion = 8.7.0.0
[0444:06F4][2013-03-25T10:39:02]i007: Exit code: 0x0, restarting: No
<?php

function get_product_version($file_name)
{
   $key = "P\x00r\x00o\x00d\x00u\x00c\x00t\x00V\x00e\x00r\x00s\x00i\x00o\x00n\x00\x00\x00";
   $fptr = fopen($file_name, "rb");
   $data = "";
   while (!feof($fptr))
   {
      $data .= fread($fptr, 65536);
      if (strpos($data, $key)!==FALSE)
         break;
      $data = substr($data, strlen($data)-strlen($key));
   }
   fclose($fptr);
   if (strpos($data, $key)===FALSE)
      return "";
   $pos = strpos($data, $key)+strlen($key);
   $version = "";
   for ($i=$pos; $data[$i]!="\x00"; $i+=2)
      $version .= $data[$i];
   return $version;
}


$currentVersion = $_GET['version'];


if (get_product_version("./Camera_Kit.exe") > $currentVersion)
{
    $url = "./Camera_Kit.exe";          
    $size = "20814613";
}
else
{
    $url = "";
    $size = "";
}

header("Content-type: text/xml"); 
    

$xml_output = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
$xml_output .= "<Setup>\n";  
$xml_output .= "<Upgrade Url='$url'"  . " " . "Size='$size' />";
$xml_output .= "</Setup>\n"; 

echo $xml_output; 


?>
Coordinator
Apr 12, 2013 at 5:45 PM
If I click on the link http://www.files.pixelink.com/update/Capture/index.php?version=8.7.0.0 I see invalid XML (which matches the error) so I don't think the update can be working. If the file is not present you should return valid xml but with the url attribute set to nothing.
Apr 12, 2013 at 6:00 PM

The code did not work if the file did not exist. Should report a proper XML know.

Thanks for the help

Thank you,