|
From: Bob A. <sf...@bo...> - 2005-08-12 02:27:29
|
As always, the log tells you what the problem is. Check the log for any
mentions of your AssignEDir2INSTALLDIR custom action. I bet that it's being
skipped (which a verbose log will tell you). The reason is that you're using
a condition (TARGETDIR="E:\") that is false.
_____
From: wix...@li...
[mailto:wix...@li...] On Behalf Of Urban Jaroslav,
Ing.
Sent: Thursday, 11 August, 2005 06:26
To: wix...@li...
Subject: FW: [WiX-users] How2: create directory structure on different drive
Thanks Vytaly for first kick, which helps me move.as you mentioned two ways
exist how to achive a goal. I have chosen first way cause user doesn't have
possibity to change anything. (Later I would add UI with some field with
this value, which could be change during installation, but not now.)
I understood that I have to change TARGETDIR cause it contains value of
drive, default is "C:\" I guess.
My aim:
1) change TARGETDIR to E:\ and create directory
e:\smtp_service\AgentApp_v150\logs
- I am trying this:
<CustomAction Id="AssignEDir2INSTALLDIR" Directory="TARGETDIR" Value="E:\"
Execute="firstSequence" />
Which is calling by this:
<InstallExecuteSequence>
<Custom Action="AssignEDir2INSTALLDIR"
After="CostFinalize">TARGETDIR="E:\"</Custom>
</InstallExecuteSequence>
The MSI is builded well, but during the installation the error 2704 is
recieved.
In log I could find that this message: Root directory property undefined:
s|smtp_service
But still it is installed to drive "C:". What is wrong!
Btw: I tried to use orca to validate it and it passed the test
P.S> it is quite stupid to loose time with such a simple process as it is
creating of directory structure on different drive
Full code:
<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi">
<Product Id="132b1e27-270f-4b62-a0bf-afe5d70a3d3d" Name="Your Product"
Language="1033" Version="0.0.0.0" Manufacturer="Your Company">
<Package Id="????????-????-????-????-????????????"
Description="Description of your product" Comments="This will appear in the
file summary stream." InstallerVersion="200" Compressed="yes" />
<Media Id="1" Cabinet="Product.cab" EmbedCab="yes" />
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="smtp_serviceDIR" Name="s"
LongName="smtp_service">
<Directory Id="agentappDIR" LongName="AgentApp_v105"
Name="AgentApp">
<Directory Id="LOGDIR" Name="logs">
<Component Id="ProductComponent"
Guid="f36b9dd8-e821-4605-988f-427c81119e82">
<CreateFolder/>
</Component>
</Directory>
</Directory>
</Directory>
</Directory>
<CustomAction Id="AssignEDir2INSTALLDIR" Directory="TARGETDIR"
Value="E:\" Execute="firstSequence" />
<Feature Id="ProductFeature" Title="Feature Title" Level="1">
<ComponentRef Id="ProductComponent" />
</Feature>
<InstallExecuteSequence>
<Custom Action="AssignEDir2INSTALLDIR"
After="CostFinalize">TARGETDIR="E:\"</Custom>
</InstallExecuteSequence>
</Product>
</Wix>
|