[wpkg-users] Installation/upgrade of same package on different architectures
Pendl Stefan
stefan.pendl at haidlmair.at
Wed Sep 23 13:17:27 CEST 2009
>
> Hi,
> Im trying to figure out how to update same package on different OS
> architectures (i.e. x86 and x64), for example tortoise svn.
> Creating two package profiles probably would not work as one (for the
> wrong architecture) would be installed and the right one updated. I
> guess you can fiddle with the priority but that would be a
> hack at best.
> Another option would be to do an additional check for environmental
> variable %PROCESSOR_ARCHITECURE%
> My question is, does wpkg package has a special tag that
> would limit the
> application of the package automatically, i.e.
> <architecture=x86|x64 />
>
> Cheers
>
> Luk
Luk,
there is no such attribute.
See http://wpkg.org/Notepad_plus_plus for an example of installing a 32-bit application on x86 and AMD64.
See http://wpkg.org/UltraDefrag for an example of using a 64-bit or 32-bit installer, depending on the platform.
The second example could be changed to include the PROCESSOR_ARCHITECTURE in the installer name, which will reduce the install and upgrade commands by one and simplify the commands.
<install cmd='"%SOFTWARE%\UltraDefrag\ultradefrag-micro-edition-3.0.0.bin.%PROCESSOR_ARCHITECTURE%.exe" /S /NCRC' />
For this one would need to change i386 to x86 for the 32-bit installer.
---
Stefan
More information about the wpkg-users
mailing list