Page 1 of 1 1
Topic Options
#204750 - 2012-04-18 12:08 PM @producttype for Windows 7
sparkie Offline
Getting the hang of it

Registered: 2010-09-14
Posts: 92
Loc: UK
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

Top
#204751 - 2012-04-18 12:22 PM Re: @producttype for Windows 7 [Re: sparkie]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4642
Loc: The Netherlands
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”
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#204752 - 2012-04-18 02:28 PM Re: @producttype for Windows 7 [Re: Mart]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22333
Loc: OK
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.
_________________________
!

download KiXnet

Top
#204753 - 2012-04-18 02:35 PM Re: @producttype for Windows 7 [Re: Lonkero]
sparkie Offline
Getting the hang of it

Registered: 2010-09-14
Posts: 92
Loc: UK
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

Top
#204754 - 2012-04-18 03:34 PM Re: @producttype for Windows 7 [Re: sparkie]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22333
Loc: OK
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")
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 191 anonymous users online.
Newest Members
thequeen, ameliaryan, shalomsalami, dkdssdk, Vroon
17639 Registered Users

Generated in 0.031 seconds in which 0.011 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org