PDA

View Full Version : WinVer?



NewsArchive
08-09-2005, 08:00 AM
I want to conditionally force a reboot, depending on the operating system.
What values winn %WINVER% return for Win98SE or Me?

TIA,

Jane

NewsArchive
08-09-2005, 08:01 AM
winn=will

NewsArchive
08-09-2005, 08:01 AM
Jane,

See "Common Definitions.sbi" include script. %WINVER% should hold one of
the following:

! Windows Version Management SetupBuilder IDs
#const $WIN_95$ = 1
#const $WIN_98$ = 2
#const $WIN_98SE$ = 4
#const $WIN_ME$ = 8
#const $WIN_NT$ = 16
#const $WIN_2000$ = 32
#const $WIN_XP$ = 64
#const $WIN_SERVERFAMILY$ = 128

BTW, you can use the "Get System Information" script function to retrieve
more OS
information.

Does this help?

Friedrich

--
Friedrich Linder
CEO, Lindersoft
www.lindersoft.com
1.954.252.3910

"point. click. ship" - that's SetupBuilder 5

NewsArchive
08-09-2005, 08:02 AM
Perfect. Thanks!

Jane