我有一個應該在Windows 7上運行的舊VB6應用程序(無人機設置爲默認級別,4個IMHO中的3個)。它具有更新自身的功能,而Windows 7現在抱怨說它會修改計算機(至少Windows 7就在這裏)。某些VB6應用程序的Windows 7 UAC清單文件
我能夠在Vista中使用某種清單文件運行它,但這似乎不再有效(如果我想到它,這是預期的行爲)。
清單文件是這樣的:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.1.0.24" processorArchitecture="X86" name="IKOfficeAppStarter" type="win32"/>
<description>IKOffice Starter</description>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls"
version="6.0.0.0" processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df" language="*"/>
</dependentAssembly>
</dependency>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="true"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
清單可以將EXE「IKOffice Starter.exe」附近被發現和被稱爲「IKOffice Starter.exe.manifest」,這應該是好。
目前盾牌圖標已經從我的.exe文件中刪除,但是當試圖啓動軟件時,我收到「Der angeforderte Vorgang erforderthöhereRechte」的消息,或者翻譯成英文「請求的操作需要提升」。
我該怎麼做才能阻止Windows再次出現bug,所以我可以在我們的客戶端計算機上安裝此應用程序。嘿,我已經告訴Windows將它作爲Invoker運行,那爲什麼它仍然在抱怨?
asInvoker設置意味着「此進程應該繼承啓動它的進程的安全令牌。」你想要求管理員嗎? – Bob77 2010-05-18 00:43:43
不,我只是想讓窗口讓程序失敗,而不是竊聽我我們的消息框 – Daniel 2011-01-04 19:51:56