Hi, I am using 64 bit machine and need to install few dlls. For files Msvbvm50.dll and Msvbvm60.dll:
To do: <File Id="file2" Name="Msvbvm50.dll" Source="[SystemFolder]Msvbvm50.dll" /> Gave error: File of type 'File' with name '[SystemFolder]Msvbvm50.dll' could not be found. So used: <?define SystemSource = "..\..\..\Windows\System32"?> <File Id="file2" Name="Msvbvm50.dll" Source="$(var.SystemSource)\Msvbvm50.dll" /> <File Id="file3" Name="msvbvm60.dll" Source="$(var.SystemSource)\msvbvm60.dll" /> light.exe : error LGHT0001 : Unknown error while getting version of file: C:\Windows\System32\msvbvm60.dll, system error: 2 Exception Type: System.Runtime.InteropServices.ExternalException Stack Trace: at Microsoft.Tools.WindowsInstallerXml.Msi.MsiBase.FileVersion(String filePath, String& version, String& language) at Microsoft.Tools.WindowsInstallerXml.Binder.UpdateFileInformation(Output output) at Microsoft.Tools.WindowsInstallerXml.Binder.Bind(Output output) at Microsoft.Tools.WindowsInstallerXml.Tools.Light.Run(String[] args) ----- Finished So used proper system directory for 64 bit: <?define SystemSource64 = "..\..\..\Windows\SysWOW64"?> <File Id="file2" Name="Msvbvm50.dll" Source="$(var.SystemSource64)\Msvbvm50.dll" /> <File Id="file3" Name="msvbvm60.dll" Source="$(var.SystemSource64)\msvbvm60.dll" /> Worked. But it fails the purpose of having [SystemFolder], which should have checked for 32 or 64 bit versions. Is there a way to check 32 or 64 bit version before compiling. Thanks, Ansuya -- View this message in context: http://www.nabble.com/Version-check-for-dll-in-compile-tf4264065.html#a12135302 Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- 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