简体   繁体   中英

VB6 activating VB.Net without UAC

We have a VB6 program (developed over many years) that gets installed by us on customers machines. I have now added a VB.Net program to the mix that gets run (ShellExecute'ed)from the VB6 program under certain circumstances. Is there any way that I can prevent customers machines (running W7/8/10) popping up the UAC dialog box? The VB.Net prog has a Manifest that contains all the stuff that others have suggested and make no difference:

    <requestedExecutionLevel level="asInvoker" uiAccess="false" />
    </requestedPrivileges>
    <applicationRequestMinimum>
    <defaultAssemblyRequest permissionSetreference="FullTrust"     permissionSetReference="FullTrust" />"
    <PermissionSet version="1" ID="FullTrust" unrestricted="true" SameSite="site" Unrestricted="true">
    <IPermission class="System.Security.Permissions.FileDialogPermission, mscorlib, Version=1.2.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" />
    </PermissionSet></applicationRequestMinimum>

Any help gratefully received Cheers Dave

已解决...将 VB6 prog 中的 ShellExecute 更改为 shell 并解决了问题

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM