[wpkg-users] Package pre-requisites
Adam Peart
wpk at capprogramming.com
Wed Jun 21 21:22:58 CEST 2006
Or with Windows Xp/2000, you can retrieve right from the registry what
version & what service pack is installed.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
ie on a Win XP SP2 machine
CSDVersion = Service Pack 2
CurrentVersion = 5.1
ProductName = Microsoft Windows XP
or a Win2k SP4 machine
CSDVersion = Service Pack 4
CurrentVersion = 5.0
ProductName = Microsoft Windows 2000
> Tomasz Chmielewski wrote:
> > Markus Ernst wrote:
> >> Hi,
> >> I wonder if there is a way to install or not to install a package
> >> depending on the OS of the maschine.
> >> Example: I like to install Filzip only on Win2k maschine not on WinXP.
> >>
> >> Any OS detection solution with <check type="registry"
> >> condition="exists" � > do not work because the result will be the same
> >> after installation.
> >>
> >> It there any way to create a condition like "package requires registry
> >> path exists" (or similary for registry values or files) ?
> >
> > There is no such thing in WPKG, but it's a good idea no have it.
> >
> > There is a proof-of-concept patch by Bill Shirley that distinguishes
> > between 9x and NT/2000/XP lines of Windows (this means, you won't
> > distinguish between 2000 and XP):
> >
> > http://bugs.wpkg.org/show_bug.cgi?id=22
> >
> > If you know some JScript/JavaScript, you could help improve it :)
>
> Specifically, it should be enough to get the output of "ver" tool which
> is bundled with Windows:
>
> C:\> ver
>
> Microsoft Windows XP [Version 5.1.2600]
>
> --
> Tomasz Chmielewski
> http://wpkg.org
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
wpkg-users mailing list
wpkg-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wpkg-users
More information about the wpkg-users
mailing list