Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21873

Adding manifest file before creating exe file

$
0
0
I wanted to include manifest file to my vb6 application so i followed below steps
1)I created myapplication.exe using vb6 IDE(which i do normally)

2)Then i created file named myapplication.exe.intermediate.manifest using notepad with below content
Code:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
        <security>
            <requestedPrivileges>
                <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
            </requestedPrivileges>
        </security>
    </trustInfo>
</assembly>

3. By using mt.exe provided from Windows SDK i have recreated myapplication.exe with manifest
Code:

mt.exe -nologo -manifest "myapplication.exe.intermediate.manifest" -outputresource:"myapplication.exe;#1
4. Now the i used this myapplication.exe. It works without UAC prompt.

Now i wanted to know whether above method is proper and would work in all windows OS?
Also is there any method to add manifest file in my vb6 coding itself which does not require running some commands after creating exe file.

Viewing all articles
Browse latest Browse all 21873

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>