0
설치되어있는 xml 파일을 업데이트하기 위해 사용자 지정 작업을 수행했습니다. 파일의 경로를 CustomActionData
과 함께 사용자 지정 작업에 전달합니다. 이 잘 작동하지만 사용자 지정 작업에서 xml 파일을 열려고하면 작업이 잘못된 디렉터리에서 찾고 있습니다.사용자 지정 작업에서 설치된 파일을 찾을 수 없습니다.
<CustomAction Id="UpdateConfigCustomAction" BinaryKey="CustomActionsDLL"
DllEntry="UpdateConfigFileAction" Execute="deferred" Return="check" Impersonate="no" />
<InstallExecuteSequence>
<Custom Action="SetPropertiesCustomAction" Before="UpdateConfigCustomAction" />
<Custom Action="UpdateConfigCustomAction" Before="InstallFinalize">NOT Installed</Custom>
</InstallExecuteSequence>
예를 들어, XML 파일의 경로는 다음과 같습니다 C:\Program Files(x86)\MyProgram\file.xml
하지만 액션 내가 뭘 잘못 C:\Windows\Installer\****.TMP\C:\Program Files(x86)\MyProgram\file.xml
보고있다?