1
이 디렉터리 구조가 있다고 가정 해 봅니다.WIX UI 폴더 덮어 쓰기 경로 사용자 지정 작업
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="test" Name="test">
<Component Id="file" Guid="*">
<File Id="file" Source="file.dll"></File>
</Component>
</Directory>
</Directory>
이렇게하면 file.dll이 C : \ test에 설치됩니다. 설치하는 동안 C : \ newpath \로 파일 디렉토리를 겹쳐 쓰고 대신 파일을 설치하십시오. 나는 운이없는 커스텀 액션으로 이것을 시도했다. \ 테스트
내가 다른 무엇을 할 수<InstallExecuteSequence>
<Custom Action="OverwriteDir" After="CostFinalize" />
</InstallExecuteSequence>
[CustomAction]
public static ActionResult OverwriteDir(Session session)
{
System.Diagnostics.Debug.WriteLine(session["tester"]);
session["tester"] = "C:\\newpath";
return ActionResult.Success;
}
을 : 난 그냥 파일이 여전히 C에 설치되어있는 디버그 라인, 나는 그것이 호출되는 것을 알고 이렇게 기록 된 그것의 보는가?
감사합니다! 방금 재산을 자본화하지 않았어. – aherrick