#1968 [Bundle] Stack trace is shown when Package file is missing

v3.6
closed
burn (480)
2012-09-15
2010-04-01
No
  • Build the attached wxs file

Expected:
Error message for the missing package file

Actual:
stack trace is shown as well

Standard Output:
light.exe : error LGHT0001 : This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package.
Exception Type: Microsoft.Deployment.WindowsInstaller.InstallerException
Stack Trace:
at Microsoft.Deployment.WindowsInstaller.SummaryInfo.OpenSummaryInfo(String packagePath, Boolean enableWrite)
at Microsoft.Deployment.WindowsInstaller.SummaryInfo..ctor(String packagePath, Boolean enableWrite)
at Microsoft.Tools.WindowsInstallerXml.Binder.ChainPackageInfo.ResolveMsiPackage(BinderFileManager fileManager, BinderCore core) in d:\delivery\Dev\wix35\src\wix\Binder.cs:line 5631
at Microsoft.Tools.WindowsInstallerXml.Binder.ChainPackageInfo..ctor(String id, String packageType, String name, String sourceFile, String installCondition, String installCommand, String repairCommand, String uninstallCommand, Object cacheData, String cacheId, Object vitalData, BinderFileManager fileManager, BinderCore core) in d:\delivery\Dev\wix35\src\wix\Binder.cs:line 5592
at Microsoft.Tools.WindowsInstallerXml.Binder.ChainPackageInfo..ctor(Row row, BinderFileManager fileManager, BinderCore core) in d:\delivery\Dev\wix35\src\wix\Binder.cs:line 5547
at Microsoft.Tools.WindowsInstallerXml.Binder.BindBundle(Output bundle, String bundleFile) in d:\delivery\Dev\wix35\src\wix\Binder.cs:line 2615
at Microsoft.Tools.WindowsInstallerXml.Binder.Bind(Output output, String file) in d:\delivery\Dev\wix35\src\wix\Binder.cs:line 546
at Microsoft.Tools.WindowsInstallerXml.Tools.Light.Run(String[] args) in d:\delivery\Dev\wix35\src\light\light.cs:line 429

here is the stack trace for an exe package:

light.exe : error LGHT0001 : Could not find file 'D:\delivery\Dev\wix35\test\data\Integration\BuildingPackages\Bundle\Files\Packages\NonExisitingExePackage.exe'.
Exception Type: System.IO.FileNotFoundException
Stack Trace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.FileInfo.OpenRead()
at Microsoft.Tools.WindowsInstallerXml.Binder.PayloadInfo.get_Sha1() in d:\delivery\Dev\wix35\src\wix\Binder.cs:line 5587
at Microsoft.Tools.WindowsInstallerXml.Binder.ChainPackageInfo.ResolveExePackage(BinderCore core) in d:\delivery\Dev\wix35\src\wix\Binder.cs:line 5808
at Microsoft.Tools.WindowsInstallerXml.Binder.ChainPackageInfo..ctor(String id, String packageType, String name, String sourceFile, String installCondition, String installCommand, String repairCommand, String uninstallCommand, Object cacheData, String cacheId, Object vitalData, BinderFileManager fileManager, BinderCore core) in d:\delivery\Dev\wix35\src\wix\Binder.cs:line 5667
at Microsoft.Tools.WindowsInstallerXml.Binder.ChainPackageInfo..ctor(Row row, BinderFileManager fileManager, BinderCore core) in d:\delivery\Dev\wix35\src\wix\Binder.cs:line 5613
at Microsoft.Tools.WindowsInstallerXml.Binder.BindBundle(Output bundle, String bundleFile) in d:\delivery\Dev\wix35\src\wix\Binder.cs:line 2672
at Microsoft.Tools.WindowsInstallerXml.Binder.Bind(Output output, String file) in d:\delivery\Dev\wix35\src\wix\Binder.cs:line 573
at Microsoft.Tools.WindowsInstallerXml.Tools.Light.Run(String[] args) in d:\delivery\Dev\wix35\src\light\light.cs:line 429

Discussion

  • Mohamed Hegazy

    Mohamed Hegazy - 2010-04-01
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).