Seite 1 von 1

Pb. with GetMsVersionInfo in Windows 10

Verfasst: 06 Nov 2015, 14:56
von bourhis
Hi,

I am making my first test with "w10-x64" netboot product : no problem with the OS installation, but some localboot product aren't installed with a bad interpretation of "GetMsVersionInfo".

In the setup.ins :

Code: Alles auswählen

Set $NTVersioninfo$ = GetMsVersionInfo
if not ( $NTVersioninfo$ >= "5.1" )
        LogError "La version de Windows est trop ancienne."
        isFatalError
endif
And in the log file :

Code: Alles auswählen

(1800)    [5] [Nov 06 13:24:14:384] [7zip] Set  $NTVersioninfo$ = GetMsVersionInfo
(1801)    [6] [Nov 06 13:24:14:384] [7zip]   The value of the variable "$NTVersioninfo$" is now: "10.0"
(1802)    [6] [Nov 06 13:24:14:384] [7zip] If
(1803)    [5] [Nov 06 13:24:14:384] [7zip]   $NTVersioninfo$ >= "5.1"    <<< result false
(1804)    [5] [Nov 06 13:24:14:384] [7zip]   not ( $NTVersioninfo$ >= "5.1" )   <<< result true
(1805)    [6] [Nov 06 13:24:14:384] [7zip] Then
(1806)    [3] [Nov 06 13:24:14:384] [7zip]   Error: La version de Windows est trop ancienne.
(1807)    [5] [Nov 06 13:24:14:384] [7zip]   Error level set to fatal
(1808)    [5] [Nov 06 13:24:14:384] [7zip]   Process aborted
For me "10.0" is greater than "5.1" so why the result is false ?

Regards.

Re: Pb. with GetMsVersionInfo in Windows 10

Verfasst: 06 Nov 2015, 18:02
von wolfbardo
Have a look at the 4.0.6 release notes

http://download.uib.de/opsi4.0/doc/html ... tes-detect

"... So never use string compare functions (like < or = or > or <= …) to evaluate the result of getMsVersionInfo ..."

regards
bardo wolf

Re: Pb. with GetMsVersionInfo in Windows 10 / "windomain" localboot

Verfasst: 09 Nov 2015, 12:00
von bourhis
Hi,

thank's for the answer !
So there is the same problem for the localboot product "windomain" : I can modified it on my own server, but it will be erased on the next update of Opsi...
Where can I suggesting this modification at the developper's team ?

Regards.

Re: Pb. with GetMsVersionInfo in Windows 10

Verfasst: 10 Nov 2015, 08:37
von wolfbardo
windomain is a contribute product.

Your problem should be fixed in

http://download.uib.de/opsi4.0/products ... 1.0-8.opsi

regards,
bardo wolf