[wpkg-users] Checks in wpkg.js

Vladimir Psenicka vladimir.psenicka at prodeco.cz
Mon Sep 15 09:50:10 CEST 2008


Hi,

I have problem with checking conditions in registry on Vista 64bit with
WPKG service.


Example: SP1 install on Vista

> <package
> 		id="vistasp1"
> 		name="Windows Vista Service Pack 1 All Language Standalone (KB936330) 32bit/64bit"
> 		revision="1"
> 		reboot="true"
> 		priority="2000">
> 		
> 		<check type="logical" condition="and">
> 				<check type="registry" condition="equals" path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductName" value="Windows Vista (TM) Business" />
> 				<check type="registry" condition="equals" path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CSDVersion" value="Service Pack 1" />
> 		</check>
> 		
> 		<install cmd='%COMSPEC% /C IF %PROCESSOR_ARCHITECTURE% == x86 "%SOFTWARE%\sp-nt\WinVista\32bit\Windows6.0-KB936330-X86-wave1.exe" /quiet'>
> 			<exit code="3010" />
> 		</install>
> 		
> 		<install cmd='%COMSPEC% /C IF %PROCESSOR_ARCHITECTURE% == AMD64 "%SOFTWARE%\sp-nt\WinVista\64bit\Windows6.0-KB936330-X64-wave1.exe" /quiet'>
> 			<exit code="3010" />
> 		</install>
> 		
> 	</package>


I have Vista with SP1 integrated, but instalation runs on it because
conditions are not met. Wpkg.js is returning different value that is
really in key and subkeys,  In app log on Vista wpkg.js says that in
registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\ProductName" has this value "Windows (TM) Vista
Business". But if I run regedit on Vista I see in this value "Windows
Vista (TM) Business" in the same key.

"Windows (TM) Vista Business" != "Windows Vista (TM) Business"

I think this issue is only on 64bit system...
I attach screenshot from Vista64

Do you have better idea how check if system is Windows Vista with
service pack 1 than in registry?

-- 
Vladimir Psenicka
IT system engineer
Prodeco a.s.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vista64bit.png
Type: image/png
Size: 22348 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20080915/74b6e2a0/attachment-0001.png>


More information about the wpkg-users mailing list