You custom action isn't running because the inner text of this element
determines whether or not to run it.  You have no inner text.  If you always
want to run it, use:

<Custom Action="NewDir" Before="LaunchConditions">1</Custom>

Julie Campbell
[EMAIL PROTECTED]

-----Original Message-----
Message: 1
Date: Wed, 5 Dec 2007 01:09:46 -0800 (PST)
From: SaiTeja <[EMAIL PROTECTED]>
Subject: [WiX-users]  How to Change TARGETDIR
To: wix-users@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=us-ascii


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

        



_____________________________________________________________________________
Scanned by IBM Email Security Management Services powered by MessageLabs. For 
more information please visit http://www.ers.ibm.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

Reply via email to