[Bug 20191] Platform SDK 6.1 manifest tool "mt.exe" (v5.2.3790.2075) crashes when trying to embed a manifest

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Jan 18 15:25:44 CST 2012


http://bugs.winehq.org/show_bug.cgi?id=20191

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                URL|                            |http://www.microsoft.com/do
                   |                            |wnload/en/details.aspx?Disp
                   |                            |layLang=en&id=11310
           Keywords|                            |download
                 CC|                            |focht at gmx.net
         Resolution|                            |FIXED
            Summary|VC9 mt.exe crashes when     |Platform SDK 6.1 manifest
                   |trying to embed a manifest  |tool "mt.exe"
                   |                            |(v5.2.3790.2075) crashes
                   |                            |when trying to embed a
                   |                            |manifest

--- Comment #9 from Anastasius Focht <focht at gmx.net> 2012-01-18 15:25:44 CST ---
Hello,

can't reproduce.

No need to install full blown Visual Studio 2008 (9.0) ...
Use Microsoft Platform SDK v6.1 and select only build tools to cut down
download/install size.

You can use winetricks for that step or manually:

Download:
http://www.microsoft.com/download/en/details.aspx?DisplayLang=en&id=11310
Prerequisite: winetricks -q mfc42 dotnet20

I took "tcpanalyzer.exe.manifest" and "tcpanalyzer.exe" from
"$WINEPREFIX/drive_c/Program Files/Microsoft SDKs/Windows/V6.0A/bin" folder as
example.

Embedding the manifest into PE file:

--- snip ---
$ pwd
/home/focht/.wine/drive_c/Program Files/Microsoft SDKs/Windows/v6.1/Bin

$ wine ./mt.exe -manifest tcpanalyzer.exe.manifest
-outputresource:tcpanalyzer.exe 
Microsoft (R) Manifest Tool version 5.2.3790.2075
Copyright (c) Microsoft Corporation 2005. 
All rights reserved.
--- snip ---

Extracting again:

--- snip ---
$ wine ./mt.exe -inputresource:tcpanalyzer.exe -out:extracted.manifest
Microsoft (R) Manifest Tool version 5.2.3790.2075
Copyright (c) Microsoft Corporation 2005. 
All rights reserved.
--- snip ---

Verify extracted manifest against input using diff tool:

--- snip ---
$ diff -Naur tcpanalyzer.exe.manifest extracted.manifest 
--- tcpanalyzer.exe.manifest    2008-01-08 17:19:26.000000000 +0100
+++ extracted.manifest    2012-01-18 22:15:38.167039482 +0100
@@ -1,16 +1,15 @@
-<?xml version='1.0' encoding='utf-8' standalone='yes'?>
-<?Copyright (c) Microsoft Corporation. All rights reserved.?>
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <assembly xmlns="urn:schemas-microsoft-com:asm.v1" copyright="Copyright (c)
Microsoft Corporation. All Rights Reserved." manifestVersion="1.0">
-  <assemblyIdentity name="tcpanalyzer" processorArchitecture="X86"
type="win32" version="1.0.0.0"/>
+  <assemblyIdentity name="tcpanalyzer" processorArchitecture="X86"
type="win32" version="1.0.0.0"></assemblyIdentity>
   <description>A display of TCP extended statistics for diagnosing TCP
application performance</description>
   <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
     <security>
       <requestedPrivileges>
-        <requestedExecutionLevel level="requireAdministrator"
uiAccess="false"/>
+        <requestedExecutionLevel level="requireAdministrator"
uiAccess="false"></requestedExecutionLevel>
       </requestedPrivileges>
     </security>
   </trustInfo>
   <cbb:debuggingInfo xmlns:cbb="urn:schemas-microsoft-com:asm.internal.v1">
-    <cbb:sourceManifest
sourcePath="%basedir%\net\tcpip\commands\lhtcpanalyzer\tcpanalyzer.exe.manifest"/>
+    <cbb:sourceManifest
sourcePath="%basedir%\net\tcpip\commands\lhtcpanalyzer\tcpanalyzer.exe.manifest"></cbb:sourceManifest>
   </cbb:debuggingInfo>
 </assembly>
--- snip ---

Looks good.

$ wine --version
wine-1.3.37-164-gb18ff8b

Regards

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the wine-bugs mailing list