2016-06-05 5 views
-1

내 윅스 프로젝트에서 일부 dll 파일을 참조해야하며 사용자 상대 경로가 필요합니다. 내가이Wix - 상대 경로를 얻는 방법

C:\Users\MyUser\Documents\any\other\folder 

같은 절대 경로를 사용하는 경우 완벽하게 작동하지만 나는이 같은 상대 경로가 필요합니다

../bin/dll 

을하지만 폴더를 찾을 수 없습니다. 사전에

ParodosService.Setup 
|_bin 
    |_dll 
     |_EntityFramework.dll 
     |_EntityFramework.SqlServer.dll 
     |_other files... 
    |_Debug 
    |_Release 

감사합니다 ...

답변

0
:

내가 DLL 폴더

<ComponentGroup Id="DllsComponent" Directory="INSTALLFOLDER" Source="../bin/dll">  
    <Component Id="EntityFramework.dll"> 
    <File Name="EntityFramework.dll" /> 
    </Component> 
    <Component Id="EntityFramework.SqlServer.dll"> 
    <File Name="EntityFramework.SqlServer.dll" /> 
    </Component> 
    <Component Id="EntityFramework.SqlServerd.xml"> 
    <File Name="EntityFramework.SqlServer.xml" /> 
    </Component> 
    <Component Id="EntityFramework.xml"> 
    <File Name="EntityFramework.xml" /> 
    </Component> 
    <Component Id="ParodosService.exe.config"> 
    <File Name="ParodosService.exe.config" /> 
    </Component> 
</ComponentGroup> 

과 윅스 프로젝트 구조를 얻기 위해 필요한 "ComponentGroup"섹션 것은 이것이다

목록에서 미리 정의 된 디렉토리 속성을 사용할 수 있습니다. System Folder Properties

디렉토리 테이블에서 가장 가까운 것을 설정하고 source 속성에 사용하십시오.

<Directory Id="TARGETDIR" Name="SourceDir"> 
    <Directory Id="DesktopFolder"> 
    </Directory> 
</Directory> 

소스 속성 :

Source="$(var.DesktopFolder)../bin/dll