Pb. with GetMsVersionInfo in Windows 10

Antworten
bourhis
Beiträge: 126
Registriert: 07 Nov 2012, 15:57

Pb. with GetMsVersionInfo in Windows 10

Beitrag 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.
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1412
Registriert: 01 Jul 2008, 12:10

Re: Pb. with GetMsVersionInfo in Windows 10

Beitrag 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


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


bourhis
Beiträge: 126
Registriert: 07 Nov 2012, 15:57

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

Beitrag 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.
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1412
Registriert: 01 Jul 2008, 12:10

Re: Pb. with GetMsVersionInfo in Windows 10

Beitrag 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


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


Antworten