RE: Windows Installer removes embedded resource manifest ?



Hello Keith,

From your description, you're building a Vista awared application which
will need to embed an manifest file in the win32 resource collection.
However, you found the res manifest occur in the built exe but disappear
after packaged it and deploy onto vista machine, correct?

Based on my experience, windows installer package or the visual studio
setup project won't automatically remove resource from program. In setup
project, you simply add those existing files(exe , dll. ...) into it and it
will copy it and merge into setup package. For your issue, I think there
may has something else cause the manifest not work.

Since you said you have to use the "Post Build" event to inject the win32
resource, are you building a managed application? If so, the Visual Studio
IDE's project properties has provided the built-in support on embed a win32
resource file(.res) into the managed exe program. You find the setting
through the following steps:

** select project node in solution explorer and choose "properties" menu
item
** in the properties setting explorer, choose the first "application" tab
in left view

* in the rigth panel, you can find the "resources" section, by default it
is set as "Icon", you can change it to "Resource File" and manually choose
a win32 res resource file.

Here is a blog article provide detailed description on embed Manifest into
managed code:

#Adding a UAC Manifest to Managed Code
http://blogs.msdn.com/shawnfa/archive/2006/04/06/568563.aspx

In addition, for the problem exe program. You can use the Visual Studio
resource editor(or the resource hacker you used) to inspect the exe after
the setup program install it on Vista box.(you can also try installing it
on other OS to see whether the installed exe contains the manifest)

Please feel free to let me know if there is anything I missed or if you
have got any further finding.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • RE: Windows Installer removes embedded resource manifest ?
    ... The built deployment project never got the modified ... ..EXE file. ... echo %INPUT% manifest resource NOT applied to %BINOUTPUT% ... embedding the necessary .manifest resource as you suggest. ...
    (microsoft.public.vsnet.general)
  • C# and native resources
    ... The suggested solution on MSDN is unworkable (manually opening the ... EXE using VS as a resource editor and inserting the manifet resource). ... It seems like some kind of command-line tool to insert the manifest resource ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: C# and native resources
    ... The suggested solution on MSDN is unworkable (manually opening the EXE using VS as a resource editor and inserting the manifet resource). ... It seems like some kind of command-line tool to insert the manifest resource after the fact would be a good solution - there are a variety of such tools on that market, all of which seem overpriced for such a simple task. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Adding file version info to C# .NET program
    ... see when you right-click the EXE and get its properties. ... we'd add a version resource to the RC file. ... do with the program's manifest, but am not sure of the details. ... utilities for injecting a manifest into a program, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Manifest file as a custom resource.
    ... I've got the standard manifest file part figured out, and even the part when you ... As a resource, you add it as a custom resource and in resource editor it sould display as 24> 1 ... out of the Classic Theme to test things out. ...
    (microsoft.public.vb.general.discussion)