Questions tagged [mt]

Mt.exe as provided in recent versions of the Windows SDK can also be used to generate manifests for managed assemblies and unmanaged side-by-side assemblies.

Mt.exe is a tool that generates signed files and catalogs. It is available in the Microsoft Windows Software Development Kit (SDK).

The version of Mt.exe provided in recent versions of the Windows SDK can also be used to generate manifests for managed assemblies and unmanaged side-by-side assemblies.

Mt.exe generates hashes using the CryptoAPI implementation of the Secure Hash Algorithm (SHA-1).

Mt.exe uses Makecat.exe to generate catalog files (.cat) from catalog definition files (.cdf). This tool fills out a standard template CDF with the name and location of your manifest. You can use this with Makecat.exe to generate the assembly catalog.

https://learn.microsoft.com/en-us/windows/desktop/sbscs/mt-exe

43 questions
40
votes
3 answers

How do I add a manifest to an executable using mt.exe?

I'm trying to use mt.exe from the Windows SDK to add a manifest to an executable file that doesn't have one, using the following command line: C:\winsdk61>mt.exe -nologo -manifest "r:\shared\hl.exe.manifest"…
Colen
  • 13,428
  • 21
  • 78
  • 107
17
votes
1 answer

Execute one test case several times with different fixture each time

I have a test case that I want to execute for different states of database. I insert objects to DB in fixture (and I'd like to keep it that way). I want to make method for initialization of DB virtual and specialize fixture for different…
Dino
  • 599
  • 1
  • 9
  • 20
9
votes
1 answer

Registration Free COM, Threading Models, MT.exe and *.RGS scripts

I have a registration free C++ COM component whose manifest I am generating with mt.exe using VS2010. Everything works except I cannot specify which threading model my classes use. I created a small repro project, whose generated manifest file…
Matt
  • 253
  • 3
  • 9
7
votes
2 answers

How to install just mt.exe?

The manifest tool mt.exe is included in the Windows SDK. But the full SDK is large and includes a lot of things as shown in the screenshot. But which of these options actually includes mt.exe? Ideally I'd like to install just the minimum to get…
StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
3
votes
2 answers

"Run as administrator" option doesn't shows up in the context menu in Explorer

I'm using VS2012 WPF Application & Install-shield 2013 LE to generate the installer. After the installation I noticed that "Run as administrator" option doesn't shows up in the context menu in Explorer of the desktop icon. Some of the user…
linguini
  • 1,939
  • 5
  • 49
  • 79
3
votes
2 answers

Unable to sign bootstrapper executable (setup.exe) after embeding manifest

We are using Nant to prepare setup of our software using Clickonce. Using signtool to sign dll(s) and exe(s). signtool command : signtool sign /f ${certFile} /p ${certFilePwd} {path of setup.exe} Using Mt.exe to embed manifests in exe files. Mt…
Riken
  • 31
  • 1
2
votes
2 answers

LNK2005: find the module which was built with /MT

I'm trying to build C++ project (mapserver). It depends on some other projects. When I run nmake, it shows many errors like this: ... LIBCMTD.lib(getenv.obj) : error LNK2005: _getenv already defined in…
ILYA
  • 495
  • 6
  • 18
2
votes
1 answer

How to get latest windows sdk version path in prebuild and postbuild event of a C# project?

In my Visual Studio 2010 project we are running a prebuild and postbuildevent in a C# project as follows: prebuildevent: "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\rc.exe" "$(ProjectDir)$(ProjectName).rc" postbuildevent: "C:\Program…
Karthikgr
  • 81
  • 13
2
votes
2 answers

Write magnetic tape end of record linux

Task is create two record with different sizes within one file entry. I'm using python 3.4.5 for testing: import fcntl import os import struct MTIOCTOP = 0x40086d01 # refer to mtio.h MTSETBLK = 20 fh = os.open('/dev/st2', os.O_WRONLY…
2
votes
1 answer

/Mt and /clr not compatible

I have been using EIGEN to solve systems of equation. the only way I was successful to compile my code is by using /CLR. When I try to build my project.I noticed that in order for my exe to work on other pc, I need to build it using /MT (not DLL).…
diamondx
  • 153
  • 1
  • 6
2
votes
4 answers

Movable Type MTEntryAsset Else Statement Not Working

I'm trying to get the Entry Summary of my movable type blog to display an image with the title formatted a certain way over the image (The image is tagged if it will be used for this purpose), and display the title another way if there is no image.…
Matt Healey
  • 172
  • 9
2
votes
0 answers

Is it dangerous to use instance variables of controller with jruby on rails and with multi-thread supporting?

This is a question about MT safe on jruby on rails. I just want to confirm that there is no MT safe issue to use controller instance variable. In fact, the same question is that for each http request, rails will spawn a controller instance to…
qwert
  • 155
  • 1
  • 5
1
vote
2 answers

poco switching to MT link errors visual studio 2019

I cannot get running POCO into my already created project. I did new project with example Websocket, tried to configurate it to success build => app is able to start and working. But when I am trying to implement with same steps into my another…
Jan Retych
  • 53
  • 8
1
vote
0 answers

Several models showing "Data processing failed" shortly after launching the creation of a model

We have been using Custom Translator for about a year and we are trying to retrain a few of our existing models with more data. After uploading all the data, selecting it and launching the creation of a model, all 6 of the models in question in…
Matt
  • 11
  • 1
1
vote
0 answers

mt.exe -replacements: xml file structure for registration free COM component is not documented

I am using mt.exe to generate a manifest for a registry free C++ COM component. The .rgs file passed on the command line has some replaceable strings whose value must be stored in a .xml file passed to the -replacements argument. The thing is, there…
1
2 3