Thanks!
1. I've noticed that if I run the setup on a computer that has only a C drive
I have to run it using msiexec with the parameter TARGETDIR=e:\ for both
install and uninstall, otherwise I get an error that says it cannot find e:\.
How can we make a general solution for both computers - one that has both e and
c drives and one that has only c drive? My goal is to install our stuff on E if
e drive exists and on C if not without using msiexec (only double click).
2. What if in the same setup I have two folders that need to be created: one
on E drive and one on D drive, is it okay to change the property TARGETDIR
twice in the same msi?
Ravit
________________________________
From: Pierson Lee (Volt)
Sent: Thursday, July 26, 2007 11:35 AM
To: Ravit Shapira; wix-users@lists.sourceforge.net
Subject: RE: Re: [WiX-users] How to change TARGETDIR to e drive
You don't need it as a custom action. Just specify a property <Property
Id="TARGETDIR">e:\</Property>
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ravit Shapira
Sent: Tuesday, July 24, 2007 11:46 PM
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