Windows XP Community - XPHeads



Is it possible to differentiate WinPE and other Windows?

microsoft.public.windowsxp.setup_deployment


Reply
  #1 (permalink)  
Old 07-09-2008, 10:15 AM
Bo Xie
 
Posts: n/a
Is it possible to differentiate WinPE and other Windows?
Hello,

Is it possible to differentiate WinPE and other Windows?

Background: I run my program on WinPE and it shows it is running on Windows
Vista. It is not what I wanted and I want to differentiate WinPE and other
Windows.

Thanks!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-09-2008, 02:09 PM
Shenan Stanley
 
Posts: n/a
Re: Is it possible to differentiate WinPE and other Windows?
Bo Xie wrote:
> Is it possible to differentiate WinPE and other Windows?
>
> Background: I run my program on WinPE and it shows it is running on
> Windows Vista. It is not what I wanted and I want to differentiate
> WinPE and other Windows.


Windows PE is Windows XP or Windows Vista (or Windows 2003 or Windows
2008)...

It's just loading necessary components into memory so you can use it.

--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-09-2008, 08:40 PM
Don Phillipson
 
Posts: n/a
Re: Is it possible to differentiate WinPE and other Windows?
"Bo Xie" <xiebopublic@sina.com> wrote in message
news:uXK50ya4IHA.3784@TK2MSFTNGP06.phx.gbl...

> Is it possible to differentiate WinPE and other Windows?
>
> Background: I run my program on WinPE and it shows it is running on

Windows
> Vista. It is not what I wanted and I want to differentiate WinPE and other
> Windows.


1. You seem to mean WindowsXP (not PE) and Vista. (As
Operating Systems, there is no difference between the Pro
and Home editions of WinXP. The Pro edition offers more
functions for networking etc.

2. OSs are peculiar to installed systems, not to software
(although it is known that apps that run under some OSs
will not run under other OSs.)
--
Don Phillipson
Carlsbad Springs
(Ottawa, Canada)


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-09-2008, 10:08 PM
Bo Xie
 
Posts: n/a
Re: Is it possible to differentiate WinPE and other Windows?
> Windows PE is Windows XP or Windows Vista (or Windows 2003 or Windows
> 2008)...
>
> It's just loading necessary components into memory so you can use it.


I understand it. But I want to differentiate WinPE and other Windows. I
think there are differencese and that's why we call it "WinPE", not "WinXP"
or "Vista". e.g., I heard that WinPE has not "event log" service and
XP/Vista have it.

I want this kind of trick to differentiate WinPE and other Windows. e.g.,
there might be a register in register table that shows it is a WinPE, not
XP/Vista.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-11-2008, 09:53 PM
harrykrishna.nospam@online.ie
 
Posts: n/a
Re: Is it possible to differentiate WinPE and other Windows?
"Bo Xie" <xiebopublic@sina.com> wrote:

>> Windows PE is Windows XP or Windows Vista (or Windows 2003 or Windows
>> 2008)...
>>
>> It's just loading necessary components into memory so you can use it.

>
>I understand it. But I want to differentiate WinPE and other Windows. I
>think there are differencese and that's why we call it "WinPE", not "WinXP"
>or "Vista". e.g., I heard that WinPE has not "event log" service and
>XP/Vista have it.
>
>I want this kind of trick to differentiate WinPE and other Windows. e.g.,
>there might be a register in register table that shows it is a WinPE, not
>XP/Vista.
>


You might want to look at HKLM\Software\Microsoft\Windows
NT\CurrentVersion

And see if a couple of these sub-keys are always consistent in a WinPE
environment. For example InstallDate would likely be missing or zero.
I see other keys there that you may also be able to test...

Same thing likely goes for
HKLM\Software\Microsoft\Windows\CurrentVersion


Or, you could continue with your idea of testing for existence of a
particular service like eventlog and base your decision on that...

HTH
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:43 AM.








Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74