Hi,

you want to launch the custom action, that assigns "E:\" to TARGETDIR only if 
TARGETDIR has the value "E:\". Your Condition is wrong.

In our setup we use a Property that determines if drive e is present and if so, 
sets the default install path to e, maybe this is something for you either.

<Property Id='NEWINSTALLDIR' Value='C:\'>
      <DirectorySearch Id='MSEwsDefaultInstallRoot_Search' Path='E:\' 
Depth='1'/>
</Property>

<CustomAction Id="DirectorySet" Property="TARGETDIR" Value="[NEWINSTALLDIR]\" />

<InstallExecuteSequence>
<Custom Action='DirectorySet' Before='LaunchConditions'>NOT TARGETDIR</Custom>
</InstallExecuteSequence>

Oliver.

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ravit Shapira
Sent: Mittwoch, 25. Juli 2007 08:46
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] How to change TARGETDIR to e drive

 Hi,

I want to add to my previous email that if I run the installation using:  
">msiexec /i MySetup.msi TARGETDIR=e:\" it does installs what I need under e 
drive.
However, my goal is to run the setup without passing any parameters - simply to 
double click on the msi file.

Thanks,
Ravit
________________________________
From: Ravit Shapira
Sent: Tuesday, July 24, 2007 11:38 PM
To: 'wix-users@lists.sourceforge.net'
Subject: How to change TARGETDIR to e drive

 Hi,

I'm trying to change TARGETDIR to e drive.  I tried to do the following but it 
installs under c drive.

<CustomAction Id="AssignEDir2INSTALLDIR" Directory="TARGETDIR" Value="E:\" 
Execute="firstSequence" />
<InstallExecuteSequence>
      <Custom Action="AssignEDir2INSTALLDIR" 
After="CostFinalize">TARGETDIR="E:\"</Custom>
</InstallExecuteSequence>

I ran the installation using msiexec and created a log file. I looked for the 
action: AssignEDir2INSTALLDIR and it says that it is skipped due to false 
condition.


 1.  Do you have an explanation why the condition is false? I do have e drive 
in the computer that I use.
 2.  How can I fix this problem? All I need is to change the default value of 
TARGETDIR from c:\ to e:\


Thank you in advance,
Ravit


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to