Hi Initially my TARGETDIR fefers to C:\. Following is wix code
<Directory Id='TARGETDIR' Name='SourceDir'> <Directory Id='ProgramFilesFolder' Name='PFiles'> After that I called Custom action Dll and in dll I setted property PATH to some other drive(Not C drive) Below is code for same <Binary Id="BinDiskSp" SourceFile="SampleDLL.dll"/> <CustomAction Id="DiskSp" BinaryKey="BinDiskSp" DllEntry="SampleFunction"/> <InstallExecuteSequence> <Custom Action="DiskSp" After="InstallInitialize"></Custom> </InstallExecuteSequence> Now with new ppty ie PATH, I want to set TARGETDIR as the whatever value that my property PATH has Below is the code <CustomAction Id="NewDir" Property="TARGETDIR" Value="[PATH]" Execute="firstSequence" /> </InstallExecuteSequence> <Custom Action="NewDir" Before="LaunchConditions"/> </InstallExecuteSequence> But when i execute msi, it is installing in C drive only. There is no wrong in dll. It is showing properly with new drive name. Can any one help me how to solve this -- View this message in context: http://www.nabble.com/How-to-Change-TARGETDIR-tf4948297.html#a14167724 Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users