On 11/11/2011 9:59 AM, Paul McGrath wrote: > Sorry slash in wrong place > Yep otherwise "%PROGRAMFILES% (x86)" = "c:\program files (x86)\ (x86)" On both winows xp 32-bit and windows 7 64-bit PROGRAMFILES returns "C:\program files". In the package I am making the decision on where the package is located so I use "%PROGRAMFILES% (x86)" which gives me "c:\program files (x86) if I need it. Otherwise I get "c:\program files". So I think I am correct in how I set PKG_DESTINATION. <variable name="PKG_DESTINATION" value="%PROGRAMFILES% (x86)\Mozilla Firefox" architecture="x64"/> <Variable name="PKG_DESTINATION" value="%PROGRAMFILES%\Mozilla Firefox" architecture="x86"/> If the machine is win64 then I need to use "C:\Program Files (x86)\Mozilla Firefox". If it is win32 then I need to use "C:\Program Files\Mozilla Firefox". None of this explains how PKG_DESTINATION ends up ""C:\Program Files (x86)\Mozilla Firefox\mozilla.cfg" as seen in the log which is from a totally different package... 2011-11-11 09:38:56, DEBUG : Executing command: '%COMSPEC% /C xcopy /Q /I /E /Y "%SOFTWARE%\ietab\%version%" "%PKG_DESTINATION%\extensions\%extid%\"' ('C:\WINDOWS\system32\cmd.exe /C xcopy /Q /I /E /Y "\\R4p17\VOL1\apps\WPKG\Programs\ietab\3.10.7.2" "C:\Program Files\Mozilla Firefox\mozilla.cfg\extensions\{1BC9BA34-1EED-42ca-A505-6D2F1A935BBB}\"'). |