开发者

UAC giving problems with my application

i was making an installer for my app its working fine on xp but on vista the UAC is giving problem unless i do a run as admi开发者_JS百科nistrator the Unexpected error appears when i run my app afters installation, any idea? i am installing the application in C:\xfolder\x


There is nothing you can do. You MUST run the installer as administrator.

As for the application, you will also need to run it as administrator with elevated priviledges but thre are options to make it ask automatically for elevation via application manifest. You can do a search on stackoverflow.com because there are more post related to this issue.

Here is a link to a post that might help.

Here are a couple more usefull link on app manifest and UAC:

  • App Manifest (1)
  • App Manifest (2)

UAC technology.

They are in C# but then again translating to VB.net is like a walk in the park.

You can make a windows service. And put all operations that require elevated rights into that service. You install the service as SYSTEM account and you communicate with the client via .net remoting or any other way for vb6.


if your app exe is an active x exe then you will need to register all the ocx file using regsvr command and then register your exe with regsvr32 command, for an active class to be used in win vista it first must be registered. make a batch to do these registration.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜