Diagnosing Installation Failures
When a CAB file fails to install, we pop up an ambiguous error message. We could put more detailed info there (and there is a bug sitting in our database saying we should investigate doing so) but the reality is that when a CAB fail, there's really nothing the typical user can do to fix it themselves... they are at the mercy of the developer who needs to provide a modified CAB file.
That said, it's obviously important that developers be able to diagnose these failures if they are reported by end users. For this, we spit out a detailed log file which you can find in \Application Data\Volatile\setup.log. It's long and it's XML so skimming line by line can be tedious. To quickly find out where the installation failed, just do a quick search for the word "error" in that file. There are a few edge cases where installation fails before we get a chance to spit out this file but I've found that this trick is almost always enough to point in the direction of what went wrong.
Oh... one other thing to check: the most common reason I've seen for users reporting installation failures on Windows Mobile 5 is the new "timeout" mechanism. When wceload shows its "we don't know where this came from. do you really want to install it?" and the user doesn't respond within several minutes, the installtion fails and we show that ambiguous error message. So when someone reports that a CAB failed, I first ask them to try again and respond to the prompt quickly. If it still doesn't work, I ask for the log file.
-Robert
Comments
Anonymous
December 01, 2005
I tried to find out the issue with the installation piece I was doing, I found the log file, but I still dont know whats wrong
here is some part of the log file
<characteristic-error type="FileOperation">
<characteristic type="Program FilesXxxxxxxxxMTAApplicationsXxxxxxxTemplatesadmin" translation="install">
<characteristic type="MakeDir"/>
<characteristic type="purgeConfirm.html" translation="install">
<characteristic type="Extract">
<parm name="Source" value="PURGEC~1.055"/>
</characteristic>
</characteristic>
<characteristic type="reInit.act" translation="install">
....
There are lot of ....lines here (almost all the files that I am trying to copy)
Why is the error in FileOperaton? And what is itAnonymous
December 01, 2005
This might be useful
<wap-provisioningdoc>
<characteristic type="Install">
<parm name="InstallPhase" value="install"/>
<parm name="ProcessorType" value="2577"/>
<parm name="BuildNumberMin" value="0"/>
<parm name="BuildNumberMax" value="-536870912"/>
<parm name="UnsupportedPlatforms" value="HPC"/>
<parm name="AppName" value="Xxxxxxxxx MTA Agent"/>
<parm name="InstallDir" value="Program FilesXxxxxxxxMTA" translation="install"/>
<parm name="NumDirs" value="18"/>
<parm name="NumFiles" value="89"/>
<parm name="NumRegKeys" value="0"/>
<parm name="NumRegVals" value="0"/>
<parm name="NumShortcuts" value="0"/>
</characteristic>
<characteristic-error type="FileOperation">Anonymous
December 25, 2005
The same story... =(
I can't find any explanation of the installation problem from the
<characteristic-error type="Install">
tag.
There is no any idea about a reason of the failure. What is really strange is that several files that I expected to be deleted after uninstallation are still alive and can be removed manually. So if I install application and then uninstall it, I can't install it again. And when I try to install Application overy already installed one I have even more stange things happening.
When I clean everything (registery and files) manually and restart Today or Softreset the device I can install Application again.
Any ideas are highly appretiated!Anonymous
January 04, 2006
Is there anywhere on a Mobile 5 device that the error log is saved? I would like to debug an issue, but I can not copy the file once the crash report, reports; I can only send the file? Thank you in advance.Anonymous
January 31, 2006
This article helped me alot to debug the problem I was having with my application on Treo 700w.
Thanks
Nargis AliAnonymous
February 19, 2006
Brian, try on HTC device. We were wondering how to reproduce the installation problems and then we observed that the most of the people have the problem on HTC Wizard phones (Imate K-Jam aka QTEK 9100 aka MDA Vario,...). We have bought this phone and we are now able to reproduce this problem. Unfortunately we are not able to fix it. Application cannot be uninstalled (all the files leave on SD card) and it is not able to install the application which need to overwrite any file. I would love to cooperate on this ugly problem with anyone. I can give you any details you need.Anonymous
May 31, 2006
Above you mention there are a few "edge" cases where installation fails before the setup.log file is created.
What is suggested in this case?Anonymous
July 12, 2006
The comment has been removedAnonymous
July 15, 2006
I tried to install this particular cab file on my PPC 6700 (Mobile 5) but I got the message that the installation was unsuccessful. Where is the log file? Please help, thank you.Anonymous
October 19, 2006
Has anyone found a problem in overwriting an existing install? If I run my CAB file on the WM5 device the first time, it is fine. But if it has to overwrite the app (for example when I release a version update) it fails, and the program files and folders have to be manually erased. It is very frustrating and I cannot find out what I am doing wrong.Anonymous
November 09, 2006
I have a CAB file that is being installed on a HTC TyTN WM 2005 and after confirming to install it, it installs and gives the completed successfully message. The log file is ok, with no errors on it. Watching the installation the files are extracted correctly (using file explorer) BUT just as the installation is being completed the files are simply deleted (but the registry information is still there) The app or cab files are NOT signed. Running the CAB on a WM 2003 SE device works fine. Also copying the files from WM03SE device to WM05 works fine and runs the software without any problems. What is the background for this strange behaviour? Thank you for anyhelpAnonymous
December 19, 2006
I have the same problem on some HTC devices. For the first time the cab file is installed successfully. Then I uninstalled the app and sometimes the exe file was left in the Windows folder. In this case if I reinstall the cab file it will fail with this in the setup.log: <characteristic-error type="Install"> ... </characteristic-error> I have my own setup.dll and in the Uninstall_Init function I have terminated the process. My log file can confirm it.Anonymous
November 29, 2007
Is there any log file produced by cab installation failures on Windows Mobile 2003? If not, what is the recommended method for debugging installation failures on Windows Mobile 2003?Anonymous
November 30, 2007
Did you try the setup.log mentioned in this post?Anonymous
November 30, 2007
I searched the device from Vista while it was docked. I did not find any folders called Application Data or Volatile nor a file called setup.log. I also search for other setup, log, and txt files, but I found nothing of interest. Is the log file missing due an edge case as mentioned above or does Windows Mobile 2003 not produce these log files?Anonymous
December 03, 2007
Good question. Are you running Pocket PC or Smartphone? I think Pocket PC 2003 might not have produced the log files. (It didn't yet support XML in CABs if I recall correctly) If not that, then it's possible that the WMDC file explorer is hiding hiddensystem files. Is there a setting in the menus for that?Anonymous
December 14, 2007
It is an HP iPAQ h5555 Pocket PC. The "File Explorer" on the device has a context menu option titled "View All Files" that I keep checked. Despite being a context menu, its state is static across all directories. Is there any other way to debug cab installation failures? Thanks for your help by the way.Anonymous
May 27, 2009
based on everything I read in this thread the error seems to be related to the device/platform and not all devices. For example, I don't think you will see this on an HTC device.Anonymous
May 27, 2009
In case of upgrade, Many times you have to search for old files of the program to install, delete then and try to install again. It worked for me. Regards Martin