sparkie
(Getting the hang of it)
2012-04-18 12:08 PM
@producttype for Windows 7

We're running 4.12.0.0 and I was wondering if there is a @productype for this version?

I see there's a reference in later versions for Windows 7 but we've not tested these as yet.

Thanks


Mart
(KiX Supporter)
2012-04-18 12:22 PM
Re: @producttype for Windows 7

According to the manual that comes with the 4.12 download @producttype is available in 4.12 but it does not support Windows 7.

 Quote:

OS type. Possible values:
“Windows 95”
“Windows 98”
“Windows Me”
“Windows NT Workstation”
“Windows NT Server”
“Windows NT Domain Controller”
“Windows 2000 Professional”
“Windows 2000 Server”
“Windows 2000 Domain Controller”
“Windows XP Home Edition”
“Windows XP Professional”
“Windows .Net Server”
“Windows .Net Domain Controller”


LonkeroAdministrator
(KiX Master Guru)
2012-04-18 02:28 PM
Re: @producttype for Windows 7

hmm... that old version seems to say xp on win7.

there is a work around to this but probably more complex than just updating the kix to a more recent version.

I did like 4.12 though. one of my favorites.


sparkie
(Getting the hang of it)
2012-04-18 02:35 PM
Re: @producttype for Windows 7

hmm too.

I'm playing with this code so I can run an installer only on domain pc's that are running Windows 7 but it aint working

 Code:
If instr(@producttype,"Server") or instr(@producttype,"Domain Controller") or instr(@producttype,"Windows XP Professional")
;	RUN "\\IE9\IE9-Windows7-x86-enu.exe"
	?"Don't do anything"
		else
;		?"Don't do anything"
		run "\\IE9\IE9-Windows7-x86-enu.exe"
endif


Trying something as a workaround


LonkeroAdministrator
(KiX Master Guru)
2012-04-18 03:34 PM
Re: @producttype for Windows 7

because with what I just posted, that in that old version, "xp professional" also excludes win7 and vista.
just replace the whole line with:
 Code:
if instr(ReadValue($Server + "HKEY_Local_Machine\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "ProductName"),"windows 7")