The Oven

Project World => Win10XPE HomePage => Topic started by: Malok on November 17, 2019, 04:19:25 PM

Title: How to get the Windows Source family ?
Post by: Malok on November 17, 2019, 04:19:25 PM
Hi,

How do you proceed to obtain the Windows Source OSFamily ??  :embarrassed:

Title: Re: How to get the Windows Source family ?
Post by: dazza on November 17, 2019, 04:25:07 PM
By reading the FAQ's or reading the information in the project which has a link for you to use.  Have copied it below for you

https://tb.rg-adguard.net/public.php
Title: Re: How to get the Windows Source family ?
Post by: APT on November 17, 2019, 06:06:34 PM
Quote
How do you proceed to obtain the Windows Source OSFamily ??]How do you proceed to obtain the Windows Source OSFamily ??

unless he means codewise within a scriptfile! and if so, what is meant by 'Family'

edit:  I guess NT5 or NT6 then
Title: Re: How to get the Windows Source family ?
Post by: Malok on November 17, 2019, 06:22:26 PM
In PESE it was

Code: [Select]
If,%OSFamily%,Equal,NT5,Arch,x86
If,%OSFamily%,Equal,NT6,Arch,x86|x64

But %OSFamily% returns noting in XPE

Title: Re: How to get the Windows Source family ?
Post by: dazza on November 17, 2019, 07:12:55 PM
So it looks like question translates as how do you work out of x86 (32-bit) or x64 (64-bit) in a script?
Title: Re: How to get the Windows Source family ?
Post by: APT on November 17, 2019, 07:14:45 PM
Hi

Surely the source %OSFamily% in Win10XPE is fixed and so doesn't exist as a variable, whereas the macrolib used in Win10PESE was common to XP/W7/W10 projects and therefore required one
Title: Re: How to get the Windows Source family ?
Post by: Malok on November 17, 2019, 07:34:44 PM
Thanks APT,

XPE reports an Empty %OSFamily% Variable.
So....

Going to test that, thanks.
Title: Re: How to get the Windows Source family ?
Post by: James on November 17, 2019, 08:39:24 PM
XPE does not use %OSFamily% variable - the Project is Win10 only, thus NT6
Title: Re: How to get the Windows Source family ?
Post by: Malok on November 18, 2019, 03:17:47 AM
yeah, normally it should return nt10. indeed not needed.