(CCing Wix mailing list)
Guna-
You need to send these through the wix mailing list as that is the purpose of
the list.
I'd probably need to see your msi install outfile but from what you are saying
either 1) the custom action isn't running or 2) the custom action isn't running
in the right order (TARGET DIR is getting assigned after your script runs).
I haven't tried to modify TARGETDIR with a custom action , so I can't begin to
tell you what the problem is yet.
Thanks
Pierson
From: Guna S [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 05, 2007 1:17 AM
To: Pierson Lee (Volt)
Subject: Change TARGETDIR
Hi
I got your ID in Web. This is regarding Wix. If you knw wix then help me.
Otherwise just ignore this mail.
My requirement is:
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.
-------------------------------------------------------------------------
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