RE: Windows Installer removes embedded resource manifest ?
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
- Date: Tue, 13 Feb 2007 08:14:03 GMT
Hello Keith,
From your description, you're building a Vista awared application whichwill 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.
.
- Follow-Ups:
- RE: Windows Installer removes embedded resource manifest ?
- From: Keith Dorken
- RE: Windows Installer removes embedded resource manifest ?
- Prev by Date: Modify list of recent projects on VS.net 2003 Start Page
- Next by Date: RE: Windows Installer removes embedded resource manifest ?
- Previous by thread: Modify list of recent projects on VS.net 2003 Start Page
- Next by thread: RE: Windows Installer removes embedded resource manifest ?
- Index(es):
Relevant Pages
|