Using 1.2... I have a Firefox extension that I'm installing and using "architecture" to set a variable that controls the package destination (PKG_DESTINATION). For some reason PKG_DESTINATION is picking up the wrong value from a package that is installed before it. You can see it in the debug log where the package destination is "C:\Program Files\Mozilla Firefox\mozilla.cfg\". The package destination should be "C:\Program Files\Mozilla Firefox" or "C:\Program Files (x86)\Mozilla Firefox" Nowhere in this package is "C:\Program Files\Mozilla Firefox\mozilla.cfg\" defined but there is a prior package that is using it. I cannot figure out why it is doing this. Perhaps I am obtaining PKG_DESTINATION incorrectly? Sorry for all the wrapping. <?xml version="1.0" encoding="UTF-8"?> <packages> <package id="firefox-ext-ietab" name="Firefox Extension IETab" revision="108" priority="10"> <variable name="PKG_DESTINATION" value="%PROGRAMFILES% (x86)\Mozilla Firefox" architecture="x64"/> <Variable name="PKG_DESTINATION" value="%PROGRAMFILES%\Mozilla Firefox" architecture="x86"/> <variable name="version" value="3.10.7.2" /> <variable name="extid" value="{1BC9BA34-1EED-42ca-A505-6D2F1A935BBB}" /> <check type="file" condition="exists" path="%PKG_DESTINATION%\extensions\%extid%\chrome.manifest" /> <install cmd="taskkill /F /IM Firefox.exe"> <exit code="0" /> <exit code="128" /> </install> <install cmd='%COMSPEC% /C xcopy /Q /I /E /Y "%SOFTWARE%\ietab\%version%" "%PKG_DESTINATION%\extensions\%extid%\"' /> <install cmd='%COMSPEC% /C reg add "HKLM\Software\Mozilla\Firefox\Extensions" /v %extid% /d "%PKG_DESTINATION%\extensions\%extid%" /f' /> <upgrade cmd="taskkill /F /IM Firefox.exe"> <exit code="0" /> <exit code="128" /> </upgrade> <upgrade cmd='%COMSPEC% /C if exist "%PKG_DESTINATION%\extensions\%extid%" rmdir /q /s "%PKG_DESTINATION%\extensions\%extid%"' /> <upgrade cmd='%COMSPEC% /C xcopy /Q /I /E /Y "%SOFTWARE%\ietab\%version%" "%PKG_DESTINATION%\extensions\%extid%\"' /> <upgrade cmd='%COMSPEC% /C reg add "HKLM\Software\Mozilla\Firefox\Extensions" /v %extid% /d "%PKG_DESTINATION%\extensions\%extid%" /f' /> <remove cmd="taskkill /F /IM Firefox.exe"> <exit code="0" /> <exit code="128" /> </remove> <remove cmd='%COMSPEC% /C if exist "%PKG_DESTINATION%\extensions\%extid%" rmdir /q /s "%PKG_DESTINATION%\extensions\%extid%"' /> <remove cmd='%COMSPEC% /C reg delete "HKLM\Software\Mozilla\Firefox\Extensions" /v %extid% /f' /> </package> </packages> 2011-11-11 09:38:54, DEBUG : Going to install package 'Firefox Extension IETab' (firefox-ext-ietab), Revision 108, (execute flag is '', notify flag is 'true'). 2011-11-11 09:38:54, DEBUG : Package 'Firefox Extension IETab' (firefox-ext-ietab): Not yet processed during this session. 2011-11-11 09:38:54, DEBUG : Comparing version: '108' <=> '107'. 2011-11-11 09:38:54, DEBUG : Comparing version fragments: '108' <=> '107' 2011-11-11 09:38:54, INFO : Package 'Firefox Extension IETab' (firefox-ext-ietab): Already installed but version mismatch.|Installed revision: '107'|Available revision: '108'.|Preparing upgrade. 2011-11-11 09:38:54, DEBUG : Installation of references (dependencies) for 'Firefox Extension IETab' (firefox-ext-ietab) successfully finished. 2011-11-11 09:38:54, INFO : Installing 'Firefox Extension IETab' (firefox-ext-ietab)... 2011-11-11 09:38:54, DEBUG : Saving current environment 2011-11-11 09:38:54, DEBUG : Reading variables from package 'Firefox Extension IETab'. 2011-11-11 09:38:54, DEBUG : No value of 'architecture' matched 'x64'. Skipping to next definition. 2011-11-11 09:38:54, DEBUG : Could not match all attributes of XML node to current host. Skipping to next definition. 2011-11-11 09:38:54, DEBUG : Got variable 'version' of value '3.10.7.2' 2011-11-11 09:38:54, DEBUG : Variable 'version' was not defined before. Creating now. 2011-11-11 09:38:54, DEBUG : Got variable 'extid' of value '{1BC9BA34-1EED-42ca-A505-6D2F1A935BBB}' 2011-11-11 09:38:54, DEBUG : Variable 'extid' was not defined before. Creating now. 2011-11-11 09:38:54, DEBUG : Reading variables from profile[s] 2011-11-11 09:38:54, DEBUG : Getting profiles which apply to this node. 2011-11-11 09:38:54, DEBUG : 2 profiles apply to this host. 2011-11-11 09:38:54, DEBUG : Reading variables from profile default 2011-11-11 09:38:54, DEBUG : Reading variables from profile win-lo 2011-11-11 09:38:54, DEBUG : Reading variables from host: 'name=GMI160','profile-id=win-lo 2011-11-11 09:38:54, DEBUG : Variable version = 3.10.7.2 2011-11-11 09:38:54, DEBUG : Variable extid = {1BC9BA34-1EED-42ca-A505-6D2F1A935BBB} 2011-11-11 09:38:54, DEBUG : Install type: upgrade 2011-11-11 09:38:54, DEBUG : Fetched 4 upgrade command(s). 2011-11-11 09:38:54, DEBUG : Executing command: 'taskkill /F /IM Firefox.exe'. 2011-11-11 09:38:55, INFO : Command 'taskkill /F /IM Firefox.exe' returned exit code [128]. This exit code is not an error. 2011-11-11 09:38:55, INFO : Command in installation of Firefox Extension IETab returned exit code [128]. This exit code indicates success. 2011-11-11 09:38:55, DEBUG : Executing command: '%COMSPEC% /C if exist "%PKG_DESTINATION%\extensions\%extid%" rmdir /q /s "%PKG_DESTINATION%\extensions\%extid%"' ('C:\WINDOWS\system32\cmd.exe /C if exist "C:\Program Files\Mozilla Firefox\mozilla.cfg\extensions\{1BC9BA34-1EED-42ca-A505-6D2F1A935BBB}" rmdir /q /s "C:\Program Files\Mozilla Firefox\mozilla.cfg\extensions\{1BC9BA34-1EED-42ca-A505-6D2F1A935BBB}"'). 2011-11-11 09:38:56, DEBUG : Command in installation of Firefox Extension IETab returned exit code [0]. Success. 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}\"'). 2011-11-11 09:38:57, ERROR : Could not process (upgrade) package 'Firefox Extension IETab' (firefox-ext-ietab):|Exit code returned non-successful value (4) on command '%COMSPEC% /C xcopy /Q /I /E /Y "%SOFTWARE%\ietab\%version%" "%PKG_DESTINATION%\extensions\%extid%\"'. 2011-11-11 09:38:57, DEBUG : Cleaning up temporary downloaded files 2011-11-11 09:38:57, DEBUG : Restoring previous environment. |