I have built a simple MSI file with WixTool 3.10.
One of the feature is to copy a file which already exists on host.
Everything is working fine when I install this msi through Remote Desktop.
However if I login through SSH and run this MSI, the file doesn't get copied.
Here's a simplified version of my wxs file:
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" Name="my product" Language="1033" Version="1.0" Manufacturer="Allen"
UpgradeCode="PUT-GUID-HERE">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
<MediaTemplate EmbedCab="yes" />
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLFOLDER" Name="My Folder">
</Directory>
</Directory>
</Directory>
<Property Id="FILEA">
<DirectorySearch Id="SearchSourceDir" Path="[SOURCEDIR]">
<FileSearch Name="fileA.txt" />
</DirectorySearch>
</Property>
<Component Id="cmpCopyFile" Guid="*" Directory="INSTALLFOLDER">
<CopyFile Id="CopyFileA" SourceProperty="FILEA" DestinationProperty="INSTALLFOLDER"/>
</Component>
<Feature Id="FeatureCopyFile" Title="Copy file" Level="1">
<ComponentRef Id="cmpCopyFile" />
</Feature>
</Product>
</Wix>
And here's the command I used for install:
msiexec /i test.msi /l*v install.log
Inside the log I can see the feature and component gets installed, however the file didn't get copy.
Is this the expected behavior? Any help or advice is appreciated.
Update: Here are the logs for local install and remote install install_local.log install_remote.log
It might make a difference if you use the correct name for the case-sensitive source property, which is SourceDir
https://msdn.microsoft.com/en-us/library/windows/desktop/aa371857(v=vs.85).aspx