2014-02-06 2 views
1

VS2012 WPF 응용 프로그램 & 설치 - 차폐 2013 LE를 사용하여 설치 프로그램을 생성합니다.Explorer에서 컨텍스트 메뉴에 "관리자 권한으로 실행"옵션이 표시되지 않습니다.

설치 후 "관리자 권한으로 실행"옵션이 Explorer의 상황에 맞는 메뉴 desktop icon에 나타나지 않는 것으로 나타났습니다.

일부 사용자는 응용 프로그램을 실행할 수 없지만 설치된 디렉토리에 들어가서 관리자 권한으로 실행 아이콘을 마우스 오른쪽 버튼으로 클릭하면 응용 프로그램을 실행할 수 있습니다.

이 링크에서 확인한 : http://msdn.microsoft.com/en-us/library/ms247046.aspx 다음 "기본 설정으로 매니페스트 포함"옵션을 추가하고 설치 프로그램을 다시 생성했습니다. 하지만 아무런 변화도 없었습니다.

Win 7 OS 32 비트에서 테스트하고 있습니다.

Explorer의 상황에 맞는 메뉴에서 응용 프로그램 아이콘을 마우스 오른쪽 버튼으로 클릭하면 "관리자 권한으로 실행"옵션을 어떻게 사용할 수 있습니까?

이 질문에 같은

같은 문제 : VS 2010 setup shortcut file not shows Run as Administrator option

app.manifest : 나는 채소 있음을 알아 냈

:

<?xml version="1.0" encoding="utf-8"?> 
<asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
    <assemblyIdentity version="1.0.0.0" name="MyApplication.app"/> 
    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> 
    <security> 
     <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> 
     <!-- UAC Manifest Options 
      If you want to change the Windows User Account Control level replace the 
      requestedExecutionLevel node with one of the following. 

     <requestedExecutionLevel level="asInvoker" uiAccess="false" /> 
     <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> 
     <requestedExecutionLevel level="highestAvailable" uiAccess="false" /> 

      Specifying requestedExecutionLevel node will disable file and registry virtualization. 
      If you want to utilize File and Registry Virtualization for backward 
      compatibility then delete the requestedExecutionLevel node. 
     --> 
     <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> 
     </requestedPrivileges> 
    </security> 
    </trustInfo> 

    <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> 
    <application> 
     <!-- A list of all Windows versions that this application is designed to work with. 
     Windows will automatically select the most compatible environment.--> 

     <!-- If your application is designed to work with Windows Vista, uncomment the following supportedOS node--> 
     <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"></supportedOS> 

     <!-- If your application is designed to work with Windows 7, uncomment the following supportedOS node--> 
     <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/> 

     <!-- If your application is designed to work with Windows 8, uncomment the following supportedOS node--> 
     <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"></supportedOS> 

    </application> 
    </compatibility> 

    <!-- Enable themes for Windows common controls and dialogs (Windows XP and later) --> 
    <dependency> 
    <dependentAssembly> 
     <assemblyIdentity 
      type="win32" 
      name="Microsoft.Windows.Common-Controls" 
      version="6.0.0.0" 
      processorArchitecture="*" 
      publicKeyToken="6595b64144ccf1df" 
      language="*" 
     /> 
    </dependentAssembly> 
    </dependency> 

</asmv1:assembly> 

enter image description here

enter image description here

편집 llShield 2013 LE (한정판)은 다음과 같이 대상 방향을 지정하지 못합니다. "C:\ProgramFiles\TestUtility.exe". 대상이 exe를 참조하면 '관리자 권한으로 실행'이 자동으로 활성화됩니다. 원래

:

enter image description here

그것은 다음과 같이해야한다 :

enter image description here

그래서 InstallShield에서 LE 나 그 변경을 허용하지 않습니다.

설치 프로그램을 생성하는 다른 방법을 찾아야합니다. 어떤 제안이라도 제발?

+0

링크 된 질문에서 해결책을 시도 했습니까? 그렇다면 실패 했습니까? –

+0

@TheodorosChatzigiannakis : app.manifest 파일을 추가하고 아무에게도 작업을 시도하지 않았습니다. 그리고 나는 아직도 그 옵션을 볼 수없는 새로운 설치 프로그램을 생성했습니다. – linguini

+0

문제 제목에 태그를 반복하지 마십시오. –

답변

0

'관리자로 실행'이 활성화되지 않은 이유를 마침내 발견했습니다. 설치된 아이콘이 .exe로 참조되지 않으면 사용할 수 없습니다.

이 StalShield 2013 LE 버전에서는 "대상 디렉토리"값을 변경할 수 없습니다.

링크 : http://community.flexerasoftware.com/showthread.php?206542-Permissions-setting-to-edit-within-directory

그것은 .EXE를 참조하는 것이 중요합니다; 왜? 사용자는 Windows 탐색기 컨텍스트 메뉴를 통해 관리자로 응용 프로그램을 실행할 수 있습니다.

나는 WIX 설치 프로그램과 함께 가기로 결정했습니다.

FB를주세요.

관련 문제