14 12
发新话题
打印

软件在VISTA下运行的权限问题

很奇怪,我为什么写不进去呢?

TOP

用管理员权限运行

程序上点右键-->用管理员权限运行
或者用EXE修改软件给你的程序增加以下manifest节:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <assemblyIdentity
          type="win32"
    name="DelphiApplication"
    version="1.0.0.0"
          processorArchitecture="*"/>
  <dependency>
    <dependentAssembly>
      <assemblyIdentity
        type="win32"
        name="Microsoft.Windows.Common-Controls"
        version="6.0.0.0"
        publicKeyToken="6595b64144ccf1df"
        language="*"
        processorArchitecture="*"/>
    </dependentAssembly>
  </dependency>
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
        <requestedPrivileges>
            <requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
        </requestedPrivileges>
    </security>
  </trustInfo>
</assembly>

TOP

我为了测试我的软件是否能运行在vista下,从网上下了精简CD版的安装后运行一切正常,有些东西甚至涉及到内核进程的都没有问题。

但是当我安装了完全版的vista后,错误接二连三的爆发了,不是崩溃就是说缺什么dll文件

看来精简版精简得和xp都快一样了,连一些安全、权限之类的都简掉了

您测试是在完全安装的正版下测试的吗?

TOP

同意放在 Application Data 目录下
永远雪山

TOP

 14 12
发新话题