Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 896293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T14:42:16+00:00 2026-05-15T14:42:16+00:00

We have a VB6 project that compiles to an ActiveX EXE that happens to

  • 0

We have a VB6 project that compiles to an ActiveX EXE that happens to have the word “patch” in the filename (it is part of a police dispatch system), which is causing Installer Detection on Windows 7 to think that it requires elevation.

Rather than renaming the EXE, I want to embed a manifest resource into the compiled EXE that will request the asInvoker privilege level. From reading, I know I can do this after compiling the EXE using the mt tool in the Windows SDK, but I’d prefer to put the manifest in a .RES file so that it gets compiled into the program whenever I build the project.

Is there a way to add a manifest resource (resource type 24) to a VB6 project using the Resource Editor add-in? I added the manifest file as a custom resource and tried a few different values for the resource type, such as “RT_MANIFEST” and “24”, and then tested whether it was working by using mt to re-extract the manifest, but I cannot get it to work.

Note: As mentioned on a few pages I visited, I did remember to make the manifest an even multiple of 4 bytes, so I don’t think that’s the problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T14:42:17+00:00Added an answer on May 15, 2026 at 2:42 pm

    At first, I thought I’d try using rc to create a .RES file that I could just add to my project. I’ve never used rc before, so I ended up on this MSDN page while trying to figure it out.

    What was interesting was this description for typeNameId on that page (emphasis added):

    Type name or identifier for the
    resource. Specify a string name or a
    number. If using a number, prepend the
    string with a “#” to indicate that it
    represents a number
    . Each resourceType
    element must have only one typeNameId
    attribute.

    I thought to myself, “Well, that’s interesting and probably wouldn’t apply to VB6’s Resource Editor, but I’ll try it anyway.”

    Lo and behold, if you add a manifest file as a custom resource, and then change its type to #24 (i.e. use a # prefix), it works! It gets correctly embedded as a manifest resource in the compiled EXE.

    Here are the steps in detail:

    1) Create a manifest file. I used this one (note that the padding at the end made the file exactly 608 bytes in my case):

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
    <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
        <assemblyIdentity version="1.0.0.0" name="DispatchMonitor" type="win32"/>
        <description>DispatchMonitor RunAsInvoker fix</description>
        <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
            <security>
                <requestedPrivileges>
                    <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
                </requestedPrivileges>
            </security>
        </trustInfo> 
    </assembly> 
    <!-- Padding to make filesize even multiple of 4 -->
    

    2) Open the Resource Editor in the VB6 IDE by selecting Resource Editor from the Tools menu (you may have to enable it first in Add-Ins > Add-In Manager).

    3) Create a new resource file if necessary.

    4) Add a new custom resource (click the button to the left of the “?” icon).

    5) A file selection dialog appears: select the manifest file created in step 1.

    6) The resource will be added under a “CUSTOM” folder with an ID of 101 by default.

    7) Double-click on the new resource. Change the “Type” to #24 and the “Id” to 1.

    8) Save your changes and close the Resource Editor.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a VB6 EXE project with a large amount of classes - everything
I have a VB6.0 project that contains the line Implements IObjectSafety I tried reopening
I have a VB6 project in Visual Source Safe 6.0. When I open the
I have a Qt/C++ project and an old VB6 project. The user base might
I have a VB6 program that someone recently helped me convert to VB.NET In
I have a VB6 dll that is trying to create a COM object using
I have a VB6 application that needs to update it's self. For this purpose,
I have quite a large VB6 project, with many forms, classes, modules and user
I have a VB6 object that is wrapped by a .NET class. As far
We have a large suite of products that include: Desktop apps written in VB6.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.