[wpkg-users] how to detect PC architecture

Rainer Meier r.meier at wpkg.org
Thu Dec 3 19:21:15 CET 2015


Hi Marco

On 03.12.2015 17:35, Marco Gaiarin wrote:
> 	<install architecture="x86" cmd='msiexec /q /i "%SOFTWARE%\WPKG\7z920.msi" ALLUSERS=1 REBOOT=ReallySuppress' >
> 		<exit code="3010" reboot="postponed" />
> 	</install>
> 	<install architecture="x64" cmd='msiexec /q /i "%SOFTWARE%\WPKG\7z920-x64.msi" ALLUSERS=1 REBOOT=ReallySuppress' >
> 		<exit code="3010" reboot="postponed" />
> 	</install>

Thanks for the reply. Though it might be better to use conditionals with latest 
WPKG version as those attributes might disappear in the future as they are hard 
to maintain and it's harder to verify the definitions this way.

Moreover you might have a look at the new
<commands><command type="..." /></commands>
syntax as it's more flexible too and also allows inclusion of commands like

<commands>
	<command type="install" cmd='.....'></command>
	<command type="upgrade" include="install"></command>
	<command type="downgrade" include="install"></command>
	<command type="remove" cmd='.....'></command>
</commands>

This allows re-use of commands as most applications use identical command-line 
for install and upgrade. Even aftificial command types are allowed:

<commands>
	<command type="doSomething" cmd='.....'></command>
	<command type="install" include="doSomething"></command>
	<command type="upgrade" include="doSomething"></command>
	<command type="downgrade" include="install"></command>
	<command type="remove" cmd='.....'></command>
</commands>


br,
Rainer


More information about the wpkg-users mailing list