[wpkg-users] Empty Command

Charlie Page cpage at corebizserv.com
Wed Oct 19 19:13:09 CEST 2011


Hello All,
I am using the flash install package from the wiki and wpgk 1.2.  The 
log is then telling me that wpkg is attempting to execute an empty 
command, and I don't see any empty commands in the package definition.   
So I am not sure if it is a problem with the definition or wpkg or 
something else.  Any insight would be appreciated.
Package:
<package id="AdobeFlashPlayer"
             name="Adobe Flash Player"
             revision="%PKG_VERSION%"
             reboot="false"
             priority="10">

<variable name="PKG_VERSION"          value="11.0.1.152" />
<variable name="PKG_SOURCE"           value="%SOFTWARE%\pub\apps\flash" />
<variable name="PKG_DESTINATION"      
value="%SystemRoot%\System32\Macromed\Flash"/>
<variable name="PKG_DESTINATION"      
value="%SystemRoot%\SysWOW64\Macromed\Flash" architecture="x64"/>
<variable name="PKG_DESTINATION_X64"  
value="%SystemRoot%\System32\Macromed\Flash"/>
<variable name="PKG_FILE_ACTIVEX"     value="Flash11c.ocx" />
<variable name="PKG_FILE_PLUGIN"      value="NPSWF32.dll" />
<variable name="PKG_FILE_ACTIVEX_X64" value="Flash64_11_0_1.ocx" />
<variable name="PKG_FILE_PLUGIN_X64"  value="NPSWF64_11_0_1.dll" />

<check type="uninstall" condition="versiongreaterorequal" path="Adobe 
Flash Player .+ ActiveX.*"              value="%PKG_VERSION%" />
<check type="uninstall" condition="versiongreaterorequal" path="Adobe 
Flash Player .+ Plugin.*"               value="%PKG_VERSION%" />
<check type="file"      condition="versiongreaterorequal" 
path="%PKG_DESTINATION%\%PKG_FILE_ACTIVEX%"         value="%PKG_VERSION%" />
<check type="file"      condition="versiongreaterorequal" 
path="%PKG_DESTINATION%\%PKG_FILE_PLUGIN%"          value="%PKG_VERSION%" />
<check type="file"      condition="versiongreaterorequal" 
path="%PKG_DESTINATION_X64%\%PKG_FILE_ACTIVEX_X64%" 
value="%PKG_VERSION%" architecture="x64" />
<check type="file"      condition="versiongreaterorequal" 
path="%PKG_DESTINATION_X64%\%PKG_FILE_PLUGIN_X64%"  
value="%PKG_VERSION%" architecture="x64" />

<install include="remove" />
<install architecture="x86" 
cmd='"%PKG_SOURCE%\install_flash_player_ax_32bit.exe" /install ' />
<install architecture="x86" 
cmd='"%PKG_SOURCE%\install_flash_player_32bit.exe" /install ' />
<install architecture="x64" 
cmd='"%PKG_SOURCE%\install_flash_player_ax_64bit.exe" /install ' />
<install architecture="x64" 
cmd='"%PKG_SOURCE%\install_flash_player_64bit.exe" /install ' />

<upgrade include="install" />

<remove architecture="x86" 
cmd='"%PKG_SOURCE%\uninstall_flash_player_32bit.exe" -uninstall' >
<exit code="any" />
</remove>
<remove architecture="x64" 
cmd='"%PKG_SOURCE%\uninstall_flash_player_64bit.exe" -uninstall' >
<exit code="any" />
</remove>
</package>


Log:(relevant part I believe)
2011-10-19 12:53:31, DEBUG   : Reading variables from package 'Adobe 
Flash Player'.
2011-10-19 12:53:31, DEBUG   : XML node with special host attribute 
match found: architecture=x64
2011-10-19 12:53:31, DEBUG   : Got variable 'PKG_VERSION' of value 
'11.0.1.152'
2011-10-19 12:53:31, DEBUG   : Variable 'PKG_VERSION' was not defined 
before. Creating now.
2011-10-19 12:53:31, DEBUG   : Got variable 'PKG_SOURCE' of value 
'\\install\tech\pub\apps\flash'
2011-10-19 12:53:31, DEBUG   : Variable 'PKG_SOURCE' was not defined 
before. Creating now.
2011-10-19 12:53:31, DEBUG   : Got variable 'PKG_DESTINATION' of value 
'C:\Windows\System32\Macromed\Flash'
2011-10-19 12:53:31, DEBUG   : Variable 'PKG_DESTINATION' was not 
defined before. Creating now.
2011-10-19 12:53:31, DEBUG   : Got variable 'PKG_DESTINATION' of value 
'C:\Windows\SysWOW64\Macromed\Flash'
2011-10-19 12:53:31, DEBUG   : Got variable 'PKG_DESTINATION_X64' of 
value 'C:\Windows\System32\Macromed\Flash'
2011-10-19 12:53:31, DEBUG   : Variable 'PKG_DESTINATION_X64' was not 
defined before. Creating now.
2011-10-19 12:53:31, DEBUG   : Got variable 'PKG_FILE_ACTIVEX' of value 
'Flash11c.ocx'
2011-10-19 12:53:31, DEBUG   : Variable 'PKG_FILE_ACTIVEX' was not 
defined before. Creating now.
2011-10-19 12:53:31, DEBUG   : Got variable 'PKG_FILE_PLUGIN' of value 
'NPSWF32.dll'
2011-10-19 12:53:31, DEBUG   : Variable 'PKG_FILE_PLUGIN' was not 
defined before. Creating now.
2011-10-19 12:53:31, DEBUG   : Got variable 'PKG_FILE_ACTIVEX_X64' of 
value 'Flash64_11_0_1.ocx'
2011-10-19 12:53:31, DEBUG   : Variable 'PKG_FILE_ACTIVEX_X64' was not 
defined before. Creating now.
2011-10-19 12:53:31, DEBUG   : Got variable 'PKG_FILE_PLUGIN_X64' of 
value 'NPSWF64_11_0_1.dll'
2011-10-19 12:53:31, DEBUG   : Variable 'PKG_FILE_PLUGIN_X64' was not 
defined before. Creating now.
2011-10-19 12:53:31, DEBUG   : Reading variables from profile[s]
2011-10-19 12:53:31, DEBUG   : Getting profiles which apply to this node.
2011-10-19 12:53:31, DEBUG   : 4 profiles apply to this host.
2011-10-19 12:53:31, DEBUG   : Reading variables from profile firefox
2011-10-19 12:53:31, DEBUG   : Reading variables from profile default-base
2011-10-19 12:53:31, DEBUG   : Reading variables from profile 
default-updates
2011-10-19 12:53:31, DEBUG   : Reading variables from profile cbsw-default
2011-10-19 12:53:31, DEBUG   : Reading variables from host: 
'name=cbsw.+','profile-id=cbsw-default
2011-10-19 12:53:31, DEBUG   : Variable PKG_VERSION = 11.0.1.152
2011-10-19 12:53:31, DEBUG   : Variable PKG_SOURCE = 
\\install\tech\pub\apps\flash
2011-10-19 12:53:31, DEBUG   : Variable PKG_DESTINATION = 
C:\Windows\SysWOW64\Macromed\Flash
2011-10-19 12:53:31, DEBUG   : Variable PKG_DESTINATION_X64 = 
C:\Windows\System32\Macromed\Flash
2011-10-19 12:53:31, DEBUG   : Variable PKG_FILE_ACTIVEX = Flash11c.ocx
2011-10-19 12:53:31, DEBUG   : Variable PKG_FILE_PLUGIN = NPSWF32.dll
2011-10-19 12:53:31, DEBUG   : Variable PKG_FILE_ACTIVEX_X64 = 
Flash64_11_0_1.ocx
2011-10-19 12:53:31, DEBUG   : Variable PKG_FILE_PLUGIN_X64 = 
NPSWF64_11_0_1.dll
2011-10-19 12:53:31, DEBUG   : Loading saved environment
2011-10-19 12:53:31, DEBUG   : Going to install package 'Adobe Flash 
Player' (AdobeFlashPlayer), Revision 11.0.1.152, (execute flag is '', 
notify flag is 'true').
2011-10-19 12:53:31, DEBUG   : Package 'Adobe Flash Player' 
(AdobeFlashPlayer): Not yet processed during this session.
2011-10-19 12:53:31, DEBUG   : Package 'Adobe Flash Player' 
(AdobeFlashPlayer): Not in local package database.
2011-10-19 12:53:31, DEBUG   : Checking existence of package: Adobe 
Flash Player
2011-10-19 12:53:31, DEBUG   : Saving current environment
2011-10-19 12:53:31, DEBUG   : Reading variables from package 'Adobe 
Flash Player'.
2011-10-19 12:53:31, DEBUG   : XML node with special host attribute 
match found: architecture=x64
2011-10-19 12:53:31, DEBUG   : Got variable 'PKG_VERSION' of value 
'11.0.1.152'
2011-10-19 12:53:31, DEBUG   : Variable 'PKG_VERSION' was not defined 
before. Creating now.
2011-10-19 12:53:31, DEBUG   : Got variable 'PKG_SOURCE' of value 
'\\install\tech\pub\apps\flash'
2011-10-19 12:53:31, DEBUG   : Variable 'PKG_SOURCE' was not defined 
before. Creating now.
2011-10-19 12:53:31, DEBUG   : Got variable 'PKG_DESTINATION' of value 
'C:\Windows\System32\Macromed\Flash'
2011-10-19 12:53:31, DEBUG   : Variable 'PKG_DESTINATION' was not 
defined before. Creating now.
2011-10-19 12:53:31, DEBUG   : Got variable 'PKG_DESTINATION' of value 
'C:\Windows\SysWOW64\Macromed\Flash'
2011-10-19 12:53:31, DEBUG   : Got variable 'PKG_DESTINATION_X64' of 
value 'C:\Windows\System32\Macromed\Flash'
2011-10-19 12:53:31, DEBUG   : Variable 'PKG_DESTINATION_X64' was not 
defined before. Creating now.
2011-10-19 12:53:31, DEBUG   : Got variable 'PKG_FILE_ACTIVEX' of value 
'Flash11c.ocx'
2011-10-19 12:53:31, DEBUG   : Variable 'PKG_FILE_ACTIVEX' was not 
defined before. Creating now.
2011-10-19 12:53:31, DEBUG   : Got variable 'PKG_FILE_PLUGIN' of value 
'NPSWF32.dll'
2011-10-19 12:53:31, DEBUG   : Variable 'PKG_FILE_PLUGIN' was not 
defined before. Creating now.
2011-10-19 12:53:31, DEBUG   : Got variable 'PKG_FILE_ACTIVEX_X64' of 
value 'Flash64_11_0_1.ocx'
2011-10-19 12:53:31, DEBUG   : Variable 'PKG_FILE_ACTIVEX_X64' was not 
defined before. Creating now.
2011-10-19 12:53:31, DEBUG   : Got variable 'PKG_FILE_PLUGIN_X64' of 
value 'NPSWF64_11_0_1.dll'
2011-10-19 12:53:31, DEBUG   : Variable 'PKG_FILE_PLUGIN_X64' was not 
defined before. Creating now.
2011-10-19 12:53:31, DEBUG   : Reading variables from profile[s]
2011-10-19 12:53:31, DEBUG   : Getting profiles which apply to this node.
2011-10-19 12:53:31, DEBUG   : 4 profiles apply to this host.
2011-10-19 12:53:31, DEBUG   : Reading variables from profile firefox
2011-10-19 12:53:31, DEBUG   : Reading variables from profile default-base
2011-10-19 12:53:31, DEBUG   : Reading variables from profile 
default-updates
2011-10-19 12:53:31, DEBUG   : Reading variables from profile cbsw-default
2011-10-19 12:53:31, DEBUG   : Reading variables from host: 
'name=cbsw.+','profile-id=cbsw-default
2011-10-19 12:53:31, DEBUG   : Variable PKG_VERSION = 11.0.1.152
2011-10-19 12:53:31, DEBUG   : Variable PKG_SOURCE = 
\\install\tech\pub\apps\flash
2011-10-19 12:53:31, DEBUG   : Variable PKG_DESTINATION = 
C:\Windows\SysWOW64\Macromed\Flash
2011-10-19 12:53:31, DEBUG   : Variable PKG_DESTINATION_X64 = 
C:\Windows\System32\Macromed\Flash
2011-10-19 12:53:31, DEBUG   : Variable PKG_FILE_ACTIVEX = Flash11c.ocx
2011-10-19 12:53:31, DEBUG   : Variable PKG_FILE_PLUGIN = NPSWF32.dll
2011-10-19 12:53:31, DEBUG   : Variable PKG_FILE_ACTIVEX_X64 = 
Flash64_11_0_1.ocx
2011-10-19 12:53:31, DEBUG   : Variable PKG_FILE_PLUGIN_X64 = 
NPSWF64_11_0_1.dll
2011-10-19 12:53:31, DEBUG   : Uninstall entry 'Adobe Flash Player 10 
ActiveX' matches expression 'Adobe Flash Player .+ ActiveX.*'.
2011-10-19 12:53:31, DEBUG   : Found version of 'Adobe Flash Player .+ 
ActiveX.*' at 
HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Adobe 
Flash Player ActiveX: 10.2.159.1|Comparing to expected version: 
%PKG_VERSION%
2011-10-19 12:53:31, DEBUG   : Comparing version: '10.2.159.1' <=> 
'11.0.1.152'.
2011-10-19 12:53:31, DEBUG   : Comparing version fragments: '10' <=> '11'
2011-10-19 12:53:31, DEBUG   : Comparing uninstall version '10.2.159.1' 
to expected version '11.0.1.152' using condition 'versiongreaterorequal' 
returned -1
2011-10-19 12:53:31, DEBUG   : Uninstall version check for package 
'Adobe Flash Player .+ ActiveX.*' returned false for operation type 
versiongreaterorequal
2011-10-19 12:53:31, DEBUG   : Loading saved environment
2011-10-19 12:53:31, INFO    : Package 'Adobe Flash Player' 
(AdobeFlashPlayer): Not installed (checks failed). Preparing installation.
2011-10-19 12:53:31, DEBUG   : Installation of references (dependencies) 
for 'Adobe Flash Player' (AdobeFlashPlayer) successfully finished.
2011-10-19 12:53:31, INFO    : Installing 'Adobe Flash Player' 
(AdobeFlashPlayer)...
2011-10-19 12:53:31, DEBUG   : Saving current environment
2011-10-19 12:53:31, DEBUG   : Reading variables from package 'Adobe 
Flash Player'.
2011-10-19 12:53:31, DEBUG   : XML node with special host attribute 
match found: architecture=x64
2011-10-19 12:53:31, DEBUG   : Got variable 'PKG_VERSION' of value 
'11.0.1.152'
2011-10-19 12:53:31, DEBUG   : Variable 'PKG_VERSION' was not defined 
before. Creating now.
2011-10-19 12:53:31, DEBUG   : Got variable 'PKG_SOURCE' of value 
'\\install\tech\pub\apps\flash'
2011-10-19 12:53:31, DEBUG   : Variable 'PKG_SOURCE' was not defined 
before. Creating now.
2011-10-19 12:53:31, DEBUG   : Got variable 'PKG_DESTINATION' of value 
'C:\Windows\System32\Macromed\Flash'
2011-10-19 12:53:31, DEBUG   : Variable 'PKG_DESTINATION' was not 
defined before. Creating now.
2011-10-19 12:53:31, DEBUG   : Got variable 'PKG_DESTINATION' of value 
'C:\Windows\SysWOW64\Macromed\Flash'
2011-10-19 12:53:31, DEBUG   : Got variable 'PKG_DESTINATION_X64' of 
value 'C:\Windows\System32\Macromed\Flash'
2011-10-19 12:53:31, DEBUG   : Variable 'PKG_DESTINATION_X64' was not 
defined before. Creating now.
2011-10-19 12:53:31, DEBUG   : Got variable 'PKG_FILE_ACTIVEX' of value 
'Flash11c.ocx'
2011-10-19 12:53:31, DEBUG   : Variable 'PKG_FILE_ACTIVEX' was not 
defined before. Creating now.
2011-10-19 12:53:31, DEBUG   : Got variable 'PKG_FILE_PLUGIN' of value 
'NPSWF32.dll'
2011-10-19 12:53:31, DEBUG   : Variable 'PKG_FILE_PLUGIN' was not 
defined before. Creating now.
2011-10-19 12:53:31, DEBUG   : Got variable 'PKG_FILE_ACTIVEX_X64' of 
value 'Flash64_11_0_1.ocx'
2011-10-19 12:53:31, DEBUG   : Variable 'PKG_FILE_ACTIVEX_X64' was not 
defined before. Creating now.
2011-10-19 12:53:31, DEBUG   : Got variable 'PKG_FILE_PLUGIN_X64' of 
value 'NPSWF64_11_0_1.dll'
2011-10-19 12:53:31, DEBUG   : Variable 'PKG_FILE_PLUGIN_X64' was not 
defined before. Creating now.
2011-10-19 12:53:31, DEBUG   : Reading variables from profile[s]
2011-10-19 12:53:31, DEBUG   : Getting profiles which apply to this node.
2011-10-19 12:53:31, DEBUG   : 4 profiles apply to this host.
2011-10-19 12:53:31, DEBUG   : Reading variables from profile firefox
2011-10-19 12:53:31, DEBUG   : Reading variables from profile default-base
2011-10-19 12:53:31, DEBUG   : Reading variables from profile 
default-updates
2011-10-19 12:53:31, DEBUG   : Reading variables from profile cbsw-default
2011-10-19 12:53:31, DEBUG   : Reading variables from host: 
'name=cbsw.+','profile-id=cbsw-default
2011-10-19 12:53:31, DEBUG   : Variable PKG_VERSION = 11.0.1.152
2011-10-19 12:53:31, DEBUG   : Variable PKG_SOURCE = 
\\install\tech\pub\apps\flash
2011-10-19 12:53:31, DEBUG   : Variable PKG_DESTINATION = 
C:\Windows\SysWOW64\Macromed\Flash
2011-10-19 12:53:31, DEBUG   : Variable PKG_DESTINATION_X64 = 
C:\Windows\System32\Macromed\Flash
2011-10-19 12:53:31, DEBUG   : Variable PKG_FILE_ACTIVEX = Flash11c.ocx
2011-10-19 12:53:31, DEBUG   : Variable PKG_FILE_PLUGIN = NPSWF32.dll
2011-10-19 12:53:31, DEBUG   : Variable PKG_FILE_ACTIVEX_X64 = 
Flash64_11_0_1.ocx
2011-10-19 12:53:31, DEBUG   : Variable PKG_FILE_PLUGIN_X64 = 
NPSWF64_11_0_1.dll
2011-10-19 12:53:31, DEBUG   : Install type: install
2011-10-19 12:53:31, DEBUG   : No value of 'architecture' matched 'x86'. 
Skipping to next definition.
2011-10-19 12:53:31, DEBUG   : Could not match all attributes of XML 
node to current host. Skipping to next definition.
2011-10-19 12:53:31, DEBUG   : No value of 'architecture' matched 'x86'. 
Skipping to next definition.
2011-10-19 12:53:31, DEBUG   : Could not match all attributes of XML 
node to current host. Skipping to next definition.
2011-10-19 12:53:31, DEBUG   : XML node with special host attribute 
match found: architecture=x64
2011-10-19 12:53:31, DEBUG   : XML node with special host attribute 
match found: architecture=x64
2011-10-19 12:53:31, DEBUG   : Fetched 3 install command(s).
2011-10-19 12:53:31, DEBUG   : Executing command: ''.
2011-10-19 12:53:31, ERROR   : Command '' was unsuccessful.|Invalid 
attempt to call Exec without a command.
2011-10-19 12:53:31, ERROR   : Could not process (install) package 
'Adobe Flash Player' (AdobeFlashPlayer):|'status' is null or not an object.
2011-10-19 12:53:31, DEBUG   : Cleaning up temporary downloaded files
2011-10-19 12:53:31, DEBUG   : Restoring previous environment.
2011-10-19 12:53:31, DEBUG   : Loading saved environment
2011-10-19 12:53:31, DEBUG   : Saving current environment



Thanks,
Charlie



More information about the wpkg-users mailing list