appname.exe.manifest, DLL dependencies

Discussion in 'Windows Vista General Discussion' started by shalayka, Jun 28, 2007.

  1. shalayka

    shalayka Guest


    I'm trying to see if something like this is possible:

    1) .\appname.exe requires foo.dll
    2) foo.dll exists in C:\windows and in .\lib\
    3) I would like appname.exe to use .\lib\foo.dll instead of C:\windows

    I have tried using a manifest file, but I don't know if what I'm
    trying to achieve is possible.

    The example manifest file I have is .\appname.exe.manifest, and

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <assembly xmlns="urn:schemas-microsoft-com:asm.v1"
    <assemblyIdentity type="win32" name="appname" version=""
    <file name="foo.dll" sourceName="foo.dll" sourcePath=".\lib"

    The only other idea that I have is to dynamically link to the DLL from
    within appname.exe, but I would rather not recompile if necessary.

    Thank you for any information that you can provide.

    - Shawn
    shalayka, Jun 28, 2007
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.