Имя пользователя:
Пароль:  
Помощь | Регистрация | Забыли пароль?  

Показать сообщение отдельно

Ветеран


Сообщения: 1259
Благодарности: 861

Профиль | Отправить PM | Цитировать


Создайте манифест:
Код: Выделить весь код
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
   <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
          <assemblyIdentity version="1.0.0.0"
                processorArchitecture="x86"
                name="YOURPROGNAME"
                type="win32"/>
 
 <description>Description of your application</description>
 
 <!-- Identify the application security requirements. -->
 <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
  <security>
   <requestedPrivileges>
    <requestedExecutionLevel
     level="requireAdministrator"
     uiAccess="false"/>
   </requestedPrivileges>
  </security>
 </trustInfo>
</assembly>
И с помощью утилиты mt.exe интегрируйте в приложение:
mt.exe -nologo -manifest "myprogram.exe.manifest" -outputresource:"myprogram.exe;#1"

Дальше можете распространить exe.
Это сообщение посчитали полезным следующие участники:

Отправлено: 21:41, 17-01-2012 | #4