Hi!
I've been given the task of finishing an existing WiX setup but I can't
understand why it doesn't install into the correct folder.
The outmost directory is TARGETDIR and when I look at the logfiles the
property is set to C: as default. I change it to D: during the install
process but some of the subdirectories still refer to c:. I thought this
was done automatically as long as I have nested the directories? I can
send the whole logfile to anyone interested.
Some pieces of the WiX files:
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="WEBROOT" Name="WebRoot">
<Directory Id="ProductRoot" Name="!(loc.Vital_Component)" >
<Directory Id="INSTALLPATH" Name="!(loc.Vital_Version)">
<Component Id="Vital.Prosesser"
Guid="{3AF333D2-15D8-42fd-96FC-3FD08976A06F}">
<CreateFolder/>
</Component>
<Directory Id="ENVIRONMENTPATH"
Name="!(loc.Vital_EnvironmentSettingsPath)">
<Component Id="SettingsFiles"
Guid="{665F0E09-81D9-4bdc-A10D-527C47A433A2}">
<CreateFolder/>
</Component>
</Directory>
<Directory Id="TOOLSPATH" Name="!(loc.Vital_ToolsPath)">
<Component Id="DeployTools"
Guid="{1884AE78-56CB-49e8-B635-DAFCC4C72746}">
<File Id="XMLParser" Name="XmlPreprocess.exe" DiskId="1"
Source=".\Deploy.Tools\XmlPreprocess.exe" />
</Component>
</Directory>
</Directory>
</Directory>
</Directory>
</Directory>
...
<PropertyRef Id="IISVERSION" />
<PropertyRef Id="WEBROOT" />
<PropertyRef Id="TARGET_PORT"/>
<PropertyRef Id="FILEPATH"/>
...
<Property Id="InstallDirProp" Value="WEBROOT" />
<Property Id="WEBROOT">
<RegistrySearch Id="DefaultSearch" Root="HKLM"
Key="Software\Microsoft\InetStp" Name="PathWWWRoot" Type="raw" />
</Property>
And from the log file::
MSI (c) (BC:64) [13:27:42:548]: PROPERTY CHANGE: Modifying WEBROOT
property. Its current value is 'C:\Inetpub\wwwroot\'. Its new value:
'D:\Inetpub\vitalroot\'.
...
MSI (s) (C4:08) [13:27:43:642]: Dir (target): Key: TARGETDIR , Object:
D:\
MSI (s) (C4:08) [13:27:43:642]: Dir (target): Key: WindowsFolder ,
Object: C:\WINDOWS\
MSI (s) (C4:08) [13:27:43:642]: Dir (target): Key: WEBROOT , Object:
D:\Inetpub\vitalroot\
MSI (s) (C4:08) [13:27:43:642]: Dir (target): Key: ProductRoot , Object:
D:\Inetpub\vitalroot\TestWS\
MSI (s) (C4:08) [13:27:43:642]: Dir (target): Key: INSTALLPATH , Object:
C:\Inetpub\wwwroot\TestWS\v1.0.0\
MSI (s) (C4:08) [13:27:43:642]: Dir (target): Key: TOOLSPATH , Object:
C:\Inetpub\wwwroot\TestWS\v1.0.0\Deploy.Tools\
MSI (s) (C4:08) [13:27:43:642]: Dir (target): Key: ENVIRONMENTPATH ,
Object: C:\Inetpub\wwwroot\TestWS\v1.0.0\EnvironmentSettings\
-Christer
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users