2012-06-29 2 views
1

WIX를 사용하여 (희망적으로) 간단한 설치 프로그램을 만들려고 노력하고 있습니다. 나는 내 인생을 위해 파일을 설치하기 위해 미리 정의 된 경로를 지정하는 방법을 찾아 낼 수 없다. 무엇을 설치해야 할 것은 이것이다 :WIX를 사용하여 미리 정의 된 위치에 설치하는 설치 프로그램 만들기

  1. 4 개 글꼴을 설치
  2. 설치 미리 정의 된 경로 ("C : \ dvimport")에 (복사) 바이너리 파일과 .ini 파일
  3. 하는 바로 가기 만들기 바탕 화면의 이전 바이너리로
  4. 인스톨러와 함께 제공된 (잘하면 번들로 제공되는) 바이너리 인스톨러를 실행하십시오.

또한 쪽지; 사용자 이 미리 정의 된 경로를 변경할 수 없으므로 올바른 경로에 설치되어 있지 않으면 응용 프로그램이 실행되지 않습니다.

현재 내가 가지고있는 것은 (대부분 미리 정의되는)이 있습니다 :

<?xml version="1.0" encoding="UTF-8"?> 
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> 
    <Product Id="660d9ab6-dbd9-4440-b56b-8f1c29d9ab86" Name="FDVweb hjelpefiler" Language="1033" Version="1.0.0.0" Manufacturer="CuroTech" UpgradeCode="4283b7c8-0057-4dcc-bfc5-7c06a12cba90"> 
    <Package InstallerVersion="200" Compressed="yes" Keywords="Installer" Description="FDVweb hjelpefiler installasjons-program" /> 

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

    <Binary Id="BarCodeDriver" SourceFile="barcode_install.exe" /> 
    <CustomAction Id="InstallBarCodeDriver" BinaryKey="BarCodeDriver" ExeCommand="" Execute="deferred" Return="check" HideTarget="no" Impersonate="no" /> 

    <Directory Id="TARGETDIR" Name="SourceDir"> 
     <Directory Id="ProgramFilesFolder"> 
     <Directory Id="INSTALLLOCATION" Name="FDVweb"> 
      <!-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. --> 
      <!-- <Component Id="ProductComponent" Guid="55a9465e-2350-48bc-9786-22a036ea7304"> --> 
      <!-- TODO: Insert files, registry keys, and other resources here. --> 
      <!-- </Component> --> 
     </Directory> 
     </Directory> 

    </Directory> 

    <DirectoryRef Id="FontsFolder"> 
     <Component Id="C128_100" Guid="72E7E1D2-DEE7-4E0B-939F-5460AD432BEF"> 
     <File Id="C128_100.tff" Source="fonts\C128_100.tff" TrueType="yes" /> 
     </Component> 
     <Component Id="C128_200" Guid="230EE8B3-06F9-4D88-AFF5-3D26AF0741AD"> 
     <File Id="C128_200.tff" Source="fonts\C128_200.tff" TrueType="yes" /> 
     </Component> 
     <Component Id="C128_300" Guid="3DC98EE5-B969-453E-B4E9-5D5BC1416F24"> 
     <File Id="C128_300.tff" Source="fonts\C128_300.tff" TrueType="yes" /> 
     </Component> 
     <Component Id="C128_400" Guid="8CFCAFBE-C7B8-46F1-9C6D-ACF2D881BAEE"> 
     <File Id="C128_400.tff" Source="fonts\C128_400.tff" TrueType="yes" /> 
     </Component> 
    </DirectoryRef> 

    <Feature Id="Complete" Title="FDVwebInstall" Level="1"> 
     <!-- TODO: Remove the comments around this ComponentRef element and the Component above in order to add resources to this installer. --> 
     <!-- <ComponentRef Id="ProductComponent" /> --> 
     <ComponentRef Id="C128_100" /> 
     <ComponentRef Id="C128_200" /> 
     <ComponentRef Id="C128_300" /> 
     <ComponentRef Id="C128_400" /> 

     <!-- Note: The following ComponentGroupRef is required to pull in generated authoring from project references. --> 
     <ComponentGroupRef Id="Product.Generated" /> 
    </Feature> 
    </Product> 
</Wix> 

내가 명확한 대답, 내가 먼 길을 갈 것입니다 원하는 것을 달성하는 방법을 설명하는 자원에 대한 링크가 필요하지 않습니다.

+0

그래서 어떤 비트 (들) (4) 목록에서 /을 작동하지 않습니다 있습니다 : 여기

는 WIX-XML의 솔루션입니다? 또한이 "미리 정의 된"위치가 존재하지 않고 존재할 수 없다면? –

+0

** ** 시스템이 호환되지 않는 경우 ** 항상 존재할 수 있습니다. 그러나이 설치 프로그램의 배포는 관련 내용을 충분히 수용하지 못합니다 (사내에서만 사용, 제어되는 환경). 폴더가 없으면 만들어야합니다. 내가 이해하지 못하는 부분은 절대 경로를 참조하는 방법과 SourceDir 아래에 중첩되어야하는 날씨와 실행 순서를 설정하는 방법입니다 (중요한 것은 외부 바이너리 마지막으로 실행됩니다.) – Alxandr

답변

1

내 문제에 대한 해결책을 찾았습니다.
대답은 디렉토리 WINDOWSVOLUME을 사용하는 것이 었습니다.

<Directory Id="TARGETDIR" Name="SourceDir"> 
     <Directory Id="WINDOWSVOLUME"> 
     <Directory Id="DvWebImp" Name="dvimport"> 
      <Component Id="DataReadApp" Guid="YOURGUID-4423-9C81-29937C31DF8A"> 
      <File Id="Data_Read.exe" Source="Data_Read.exe" /> 
      <File Id="Data_Read.ini" Source="Data_Read.ini" /> 
      </Component> 
     </Directory> 
     </Directory> 
    </Directory> 
관련 문제