2016-07-27 4 views
0

다음은 주 설치 관리자 용 wxs 파일입니다. 서명이 생성 된 후 Sign.pfx로 서명됩니다. 다음Wix - 관리자 권한이없는 패치 설치

<?xml version="1.0" encoding="UTF-8"?> 
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> 
    <Product Id="48C49ACE-90CF-4161-9C6E-9162115A54DD" 
     Name="WiX Patch Example Product" 
     Language="1033" 
     Version="1.0.0" 
     Manufacturer="Dynamo Corporation" 
     UpgradeCode="48C49ACE-90CF-4161-9C6E-9162115A54DD"> 
     <Package Description="Installs a file that will be patched." 
      Comments="This Product does not install any executables" 
      InstallerVersion="200" 
      Compressed="yes" AdminImage="no" /> 

     <Media Id="1" Cabinet="product.cab" EmbedCab="yes"/> 


     <FeatureRef Id="SampleProductFeature"/> 

     <PatchCertificates> 
      <DigitalCertificate Id="MyNewCertificate" SourceFile="Sign.pfx"/> 
     </PatchCertificates> 

     <PackageCertificates> 
      <DigitalCertificate Id="MyNewCertificate" SourceFile="Sign.pfx"/> 
     </PackageCertificates> 

    </Product> 

    <Fragment> 
     <Feature Id="SampleProductFeature" Title="Sample Product Feature" Level="1"> 
      <ComponentRef Id="SampleComponent" /> 
     </Feature> 
    </Fragment> 

    <Fragment> 
     <DirectoryRef Id="SampleProductFolder"> 
      <Component Id="SampleComponent" Guid="{C28843DA-EF08-41CC-BA75-D2B99D8A1983}" DiskId="1"> 
       <File Id="SampleFile" Name="Sample.txt" Source=".\$(var.Version)\Sample.txt" /> 
      </Component> 
     </DirectoryRef> 
    </Fragment> 

    <Fragment> 
     <Directory Id="TARGETDIR" Name="SourceDir"> 
      <Directory Id="ProgramFilesFolder" Name="PFiles"> 
       <Directory Id="SampleProductFolder" Name="Patch Sample Directory"> 
       </Directory> 
      </Directory> 
     </Directory> 
    </Fragment> 
</Wix> 

rights.Currently 패치가 잘 작동 관리자를 필요로하지 않고 설치해야하지만, 관리자 권한을 필요로하는 패치 파일입니다.

<?xml version="1.0" encoding="UTF-8"?> 
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> 
    <Patch 
     AllowRemoval="yes" 
     Manufacturer="Dynamo Corp" 
     MoreInfoURL="http://www.dynamocorp.com/" 
     DisplayName="Sample Patch" 
     Description="Small Update Patch" 
     Classification="Update" 
     > 

     <Media Id="5000" Cabinet="RTM.cab"> 
      <PatchBaseline Id="RTM"/> 
     </Media> 

     <PatchFamilyRef Id="SamplePatchFamily"/> 

    </Patch> 

    <Fragment>  
     <PatchFamily Id='SamplePatchFamily' Version='1.2.0.0' Supersede='yes' ProductCode="48C49ACE-90CF-4161-9C6E-9162115A54DD"> 
      <ComponentRef Id="SampleComponent"/> 
     </PatchFamily> 
    </Fragment> 
</Wix> 

예제 코드는 응용 프로그램이 모든 (관리자 권한) 사용자 (현재 완료)하지만, 비 관리자가 설치 될 수 있도록 내가 할 수있는 방법 http://wixtoolset.org/documentation/manual/v3/patching/wix_patching.html

에서 공식 윅스 튜토리얼에서 찍은 패치 파일을 설치할 수 있습니다.

내가 시도한 것 : PatchCertificatesPackageCertificates을 추가했습니다. 차이는 없습니다.

+0

패치 설치시 자세한 로그 파일에 힌트가 있습니까? 'LUA '를 찾으십시오. –

+0

LUA = 0 (주 설치 관리자와 패치 모두). 'LUA patching is disabled : Missing MsiPatchCertificate table' 항목도 있습니다. – user5521

답변

관련 문제