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 743323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T08:51:00+00:00 2026-05-14T08:51:00+00:00

This seems so trivial, yet I can’t get it to work.. I have an

  • 0

This seems so trivial, yet I can’t get it to work..

I have an msi.dll wrapper (named Interop.WindowsInstaller.dll) which I need to sign. The way to do it is by signing it upon import (this specific case is even documented in MSDN: http://msdn.microsoft.com/en-us/library/zec56a0w.aspx).

BUT – no matter how I do it (w/ or w/o a keyfile, w/ or w/o adding “/delaysign”), the generated assemly’s size is always 36,864 bytes and when viewing the DLL’s properties there is no “Digital Signatures” tab (needless to say – the DLL is NOT signed).

What am I missing here?? (… HELP!…)

  • 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-14T08:51:00+00:00Added an answer on May 14, 2026 at 8:51 am

    [Note: Eventually I got a hint from Karel Zikmund on this thread, which helped me solve the mystery. I’ll paste my reply here – for the greater good].

    So, I used the following line to sign-upon-import the assembly:

    tlbimp C:\WINDOWS\system32\msi.dll /out:Interop.WindowsInstaller.dll /keyfile:MyKey.snk

    I then copied the file to the appropriate location and built the project, but each time the build failed on the following error: Assembly generation failed — Referenced assembly ‘Interop.WindowsInstaller’ does not have a strong name.

    I thought the problem was with the tlbimp line, but after reading Karel Zikmund’s reply and verifying that the DLL is strong-named (using sn -vf Interop.WindowsInstaller) I found out the problem.

    Adding a reference to the “Microsoft Windows Installer Object Library” COM object actually planted a code block into the .csproj file.
    I didn’t realize it, but this block caused the DLL file to be regenerated from scratch upon each time the project was built. The generated file, of course, was not strong-named anymore.

    The way I resolved it was to remove the reference to “Microsoft Windows Installer Object Library” from the project, and add a direct file reference to the imported (and already signed) Interop.WindowsInstaller.dll file.

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

Sidebar

Related Questions

This seems fairly trivial but I can't seem to work it out I have
This seems so trivial, yet I cannot find where or how to do this.
This seems quite trivial but I can't seem to find out how to place
This seems trivial, but since the users have requested it: I have a custom
This seems trivial enough, but I can't seem to stumble upon the answer. I
This seems trivial yet endless searching doesn't yield an answer. I need to compare
This seems to be a trivial question but I got hung on it for
This seems like a repeated question but i'm not able to get my answer.
Has anyone managed to extend a GridView with default sorting? This seems pretty trivial
I've been working on this small piece of code that seems trivial but still,

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.