Yes, I figured out as much, but the error condition that results is not exactly 
clear. Is this under any control that could make this a bit cleaner?

At first I thought it meant the image of the EXE I was debundling, for example!



Keith Douglas
Statistics Canada | 170 Tunney's Pasture Driveway, Ottawa ON K1A 0T6
Statistique Canada | 170, promenade Tunney's Pasture, Ottawa ON K1A 0T6
keith.doug...@statcan.gc.ca
Telephone | Téléphone 613-854-5589
Facsimile | Télécopieur 613-951-4674
Government of Canada | Gouvernement du Canada 


-----Original Message-----
From: Rob Mensching [mailto:r...@firegiant.com] 
Sent: August-01-14 7:15 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Unbinder.Unbind error

Winterop.dll is a 32-bit so your calling assemblies need to stay 32-bit not get 
JIT'd to 64-bit.

_______________________________________________________________
 FireGiant  |  Dedicated support for the WiX toolset  |  
http://www.firegiant.com/

-----Original Message-----
From: keith.doug...@statcan.gc.ca [mailto:keith.doug...@statcan.gc.ca]
Sent: Friday, August 1, 2014 10:51 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Unbinder.Unbind error

Update: this seems to happen because I was suddenly running a x64 version of 
things - I had the project set to build as "AnyCPU".

This is very strange - I understand the library is 32 bit, but why should it 
fail with the exception mentioned? That's pretty obscure.

(If it is clearer in > WiX 3.7, ok ...)



Keith Douglas
Statistics Canada | 170 Tunney's Pasture Driveway, Ottawa ON K1A 0T6 
Statistique Canada | 170, promenade Tunney's Pasture, Ottawa ON K1A 0T6 
keith.doug...@statcan.gc.ca Telephone | Téléphone 613-854-5589 Facsimile | 
Télécopieur 613-951-4674 Government of Canada | Gouvernement du Canada 


-----Original Message-----
From: keith.doug...@statcan.gc.ca [mailto:keith.doug...@statcan.gc.ca]
Sent: August-01-14 1:21 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Unbinder.Unbind error

A while ago I built some stuff to investigate properties of a burn bundle (EXE) 
just in case they got lost when we built them, and also to harvest from others 
(in case we have some bundles not built by us). As per the list's 
recommendations, I added a reference to wix.dll and kept winterop.dll near by.

The POC code looks like (fileName as a parameter from elsewhere)

                Dim b As New Microsoft.Tools.WindowsInstallerXml.Unbinder
                Dim out As Microsoft.Tools.WindowsInstallerXml.Output = 
b.Unbind(fileName, Microsoft.Tools.WindowsInstallerXml.OutputType.Bundle, 
"c:\scratch\")

For a while, this worked; some directories of XML and such were created I was 
able to read from. Now something (not this part of the code, since I haven't 
touched it) has changed and I get :

"An attempt was made to load a program with an incorrect format. (Exception 
from HRESULT: 0x8007000B)"

Stack trace:
   at 
Microsoft.Tools.WindowsInstallerXml.Cab.Interop.NativeMethods.ExtractCabBegin()
   at Microsoft.Tools.WindowsInstallerXml.Cab.WixExtractCab..ctor()
   at Microsoft.Tools.WindowsInstallerXml.BurnReader.ExtractUXContainer(String 
outputDirectory, String tempDirectory)
   at Microsoft.Tools.WindowsInstallerXml.Unbinder.UnbindBundle(String 
bundleFile, String exportBasePath)
   at Microsoft.Tools.WindowsInstallerXml.Unbinder.Unbind(String file, 
OutputType outputType, String exportBasePath)
   at InstallerBuilder.PackageRepresentation..ctor(String fileName, String 
notesText, String whoBy) in 
C:\Users\dougkei\Downloads\DEV\ToolBox3\InstallerBuilder-branch\DeploymentManagement\Business
 Classes\PackageRepresentation.vb:line 169

C:\Users\dougkei\Downloads\DEV\ToolBox3\InstallerBuilder-branch\DeploymentManagement\Business
 Classes\PackageRepresentation.vb:line 169

This exception occurs with every bundle I've tried, including one that I just 
built to make sure it wasn't somehow wrong previously.

Any idea what could be going wrong here? I have moved recently to Windows 7 
x64, if that matters somehow.




Keith Douglas
Programmer Analyst | Programmeur analyste Questionnaire Development Services - 
CAI Social | Services de développement de questionnaires - IAO Social Jean 
Talon Building | Immeuble Jean-Talon / Floor | Étage 4 A-3 Statistics Canada | 
170 Tunney's Pasture Driveway, Ottawa ON K1A 0T6 Statistique Canada | 170, 
promenade Tunney's Pasture, Ottawa ON K1A 0T6 keith.doug...@statcan.gc.ca 
Telephone | Téléphone 613-854-5589 Facsimile | Télécopieur 613-951-4674 
Government of Canada | Gouvernement du Canada 



------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and search 
up to 200,000 lines of code with a free copy of Black Duck Code Sight - the 
same software that powers the world's largest code search on Ohloh, the Black 
Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and search 
up to 200,000 lines of code with a free copy of Black Duck Code Sight - the 
same software that powers the world's largest code search on Ohloh, the Black 
Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and search 
up to 200,000 lines of code with a free copy of Black Duck Code Sight - the 
same software that powers the world's largest code search on Ohloh, the Black 
Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to