Re: How create a manifest for a VC++ 5 application?
- From: "David Ching" <dc@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 20 Dec 2007 00:23:49 GMT
"Simon" <sorde@xxxxxxxxxxxxx> wrote in message
news:RuWdndgT_7yMBfTanZ2dnUVZ8v2vnZ2d@xxxxxxxxxxxx
I have an application developed under VC++ 5 that I want to install
properly under Vista (i.e. not rely on virtualisation etc). I understand
that I need to create a manifest for my program that will specify:
(a) the execution level it requires (which is 'asInvoker')
(b) What code dependencies it has (DLLs it calls into?)
Actually do I even need to bother with (b)? Is this required for Vista?
Is it just (a) that I need?
If I do need, (b): the application (call it XYZ.EXE) is built using the
MFC42.DLL and also the MSVCRT.DLL. These are installed (using innosetup)
in the system folder. The other files (including 2 other application
DLLs - call them XYZ1.DLL and XYZ2.DLL) are installed in a program folder
under c:\program files in the normal way. There's nothing very unusual
about the app. So for (b) I presumably specify MFC42.DLL and MSVCRT.DLL?
And XYZ1.DLL and XYZ2.DLL too?
Can anyone tell me how to write a manifest for this? I understand that I
can use Notepad. But I have searched all over the place, and I can't find
anywhere that tells you exactly what content I need.
If anyone could post back an example using XYZ_APP.EXE, XYZ_DLL1.DLL etc,
that would be ideal. Failing that (or as well) can anyone point me to a
simple document that explains it all simply?
Any help with this would be very much appreciated.
Simon, you don't need (b). A manifest doesn't specify the DLL's the .exe is
dependent on, such as MFC42.DLL and MSVCRT.DLL. But what you might be
referring to is "reg-free COM" which is a little known feature of XP (some
say XP SP2) and later which lets you specify which COM components your app
is dependent on, and then if you put those COM component DLL's in the same
folder as your .exe, then you don't need to register them in the registry.
This is really sweet, since registering them requires Admin priviledge and
also more uninstallation work. But since you don't have any COM components,
you don't need to worry about this.
See
http://www.microsoft.com/downloads/details.aspx?FamilyID=ba73b169-a648-49af-bc5e-a2eebb74c16b&DisplayLang=en
for manifest examples.
-- David
.
- Follow-Ups:
- Re: How create a manifest for a VC++ 5 application?
- From: rodream
- Re: How create a manifest for a VC++ 5 application?
- References:
- How create a manifest for a VC++ 5 application?
- From: Simon
- How create a manifest for a VC++ 5 application?
- Prev by Date: Re: bool or BOOL in MFC projects
- Next by Date: Re: Visio error 42?
- Previous by thread: How create a manifest for a VC++ 5 application?
- Next by thread: Re: How create a manifest for a VC++ 5 application?
- Index(es):
Relevant Pages
|