BetaArchive Logo
Navigation Home Database Screenshots Gallery Image Uploader Server Info FTP Servers Wiki Forum RSS Feed Rules Please Donate
UP: 2d, 1h, 42m | CPU: 47% | MEM: 5763MB of 12287MB used
{The community for beta collectors}

Post new topic Reply to topic  [ 21 posts ] 
Author Message
 PostPost subject: [Question.] How do windows update packs recognize version?        Posted: Sat Mar 02, 2019 1:40 pm 
Reply with quote
Offline

Joined
Sun Sep 23, 2018 9:31 am

Posts
33

Favourite OS
Windows 8.1, Windows Build 9834
As the title, how do windows update packs recognize the version of windows?


Top  Profile
 PostPost subject: Re: [Question.] How do windows update packs recognize versio        Posted: Sun Mar 03, 2019 12:11 am 
Reply with quote
Donator
User avatar
Offline

Joined
Mon Jun 14, 2010 7:42 am

Posts
3767

Location
Napa, CA, USA

Favourite OS
OS/2 Warp 4 (14.098b_W4)
Code:
#include <windows.h>
#include <stdio.h>

void main()
{
    DWORD dwVersion = 0;
    DWORD dwMajorVersion = 0;
    DWORD dwMinorVersion = 0;
    DWORD dwBuild = 0;

    dwVersion = GetVersion();
 
    // Get the Windows version.

    dwMajorVersion = (DWORD)(LOBYTE(LOWORD(dwVersion)));
    dwMinorVersion = (DWORD)(HIBYTE(LOWORD(dwVersion)));

    // Get the build number.

    if (dwVersion < 0x80000000)             
        dwBuild = (DWORD)(HIWORD(dwVersion));

    printf("Version is %d.%d (%d)\n",
                dwMajorVersion,
                dwMinorVersion,
                dwBuild);
}


Top  Profile  WWW
 PostPost subject: Re: [Question.] How do windows update packs recognize versio        Posted: Sun Mar 03, 2019 1:52 am 
Reply with quote
Offline

Joined
Sun Sep 23, 2018 9:31 am

Posts
33

Favourite OS
Windows 8.1, Windows Build 9834
compgeke wrote:
Code:
#include <windows.h>
#include <stdio.h>

void main()
{
    DWORD dwVersion = 0;
    DWORD dwMajorVersion = 0;
    DWORD dwMinorVersion = 0;
    DWORD dwBuild = 0;

    dwVersion = GetVersion();
 
    // Get the Windows version.

    dwMajorVersion = (DWORD)(LOBYTE(LOWORD(dwVersion)));
    dwMinorVersion = (DWORD)(HIBYTE(LOWORD(dwVersion)));

    // Get the build number.

    if (dwVersion < 0x80000000)             
        dwBuild = (DWORD)(HIWORD(dwVersion));

    printf("Version is %d.%d (%d)\n",
                dwMajorVersion,
                dwMinorVersion,
                dwBuild);
}

Thanks. But I wonder which file is recognized by windows update packs.


Top  Profile
 PostPost subject: Re: [Question.] How do windows update packs recognize versio        Posted: Sun Mar 03, 2019 2:45 am 
Reply with quote
FTP Access
Offline

Joined
Sat Oct 20, 2018 11:37 am

Posts
425
What do you mean? It is stored in the registry and in all system files. Open winver and see, winver.exe is a version report tool.


Top  Profile
 PostPost subject: Re: [Question.] How do windows update packs recognize versio        Posted: Sun Mar 03, 2019 3:08 am 
Reply with quote
Offline

Joined
Sun Sep 23, 2018 9:31 am

Posts
33

Favourite OS
Windows 8.1, Windows Build 9834
ComputerHunter wrote:
What do you mean? It is stored in the registry and in all system files. Open winver and see, winver.exe is a version report tool.

I mean how the update packs know my windows version. By which file?


Top  Profile
 PostPost subject: Re: [Question.] How do windows update packs recognize versio        Posted: Sun Mar 03, 2019 4:42 am 
Reply with quote
FTP Access
Offline

Joined
Sat Oct 20, 2018 11:37 am

Posts
425
Not by file, by the reported kernel version and registry info.

Here is an example:
Code:
   </Action>
   <Action type="If">
      <Condition>
         <VersionComparison property="SYS.WIN.VER" toValue="501" comparison="HigherEqual"/>
      </Condition>
      <IfFalse>
         <Action type="Prompt">
            <Title>Update</Title>
            <Text>This update requires Windows XP (or later) operating systems.</Text>
         </Action>
         <Action type="Quit"/>
      </IfFalse>
   </Action>


Top  Profile
 PostPost subject: Re: [Question.] How do windows update packs recognize versio        Posted: Sun Mar 03, 2019 11:32 am 
Reply with quote
FTP Access
User avatar
Offline

Joined
Wed Apr 25, 2018 9:57 am

Posts
88

Favourite OS
Windows Server 2012 R2 9785
changing registry and ntoskrnl modifies desktop build tag and lab, however it doesn't modify winver nt version and build (Version: 6.3 (Build 9600) for example) (build lab gets modified)


Top  Profile
 PostPost subject: Re: [Question.] How do windows update packs recognize versio        Posted: Sun Mar 03, 2019 11:48 am 
Reply with quote
FTP Access
Offline

Joined
Sat Oct 20, 2018 11:37 am

Posts
425
I don't think he is trying to edit winver... He might want to install an update that won't install on his version of Windows.


Top  Profile
 PostPost subject: Re: [Question.] How do windows update packs recognize versio        Posted: Sun Mar 03, 2019 11:50 am 
Reply with quote
FTP Access
User avatar
Offline

Joined
Wed Apr 25, 2018 9:57 am

Posts
88

Favourite OS
Windows Server 2012 R2 9785
he might be interested in installing a windows 8.1 update on a post-rtm build (9785) like i am
but im more interested in installing vcredist 2015/2017


Top  Profile
 PostPost subject: Re: [Question.] How do windows update packs recognize versio        Posted: Sun Mar 03, 2019 12:56 pm 
Reply with quote
Donator
User avatar
Offline

Joined
Sun Dec 30, 2007 8:12 am

Posts
1205

Location
Brisbane, Queensland

Favourite OS
OS/2 Wrp 3.0
Windows gets the version number from registry.

LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Windows CSDVersion = 256 // ie Reg_Dword = 256*sp #
LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion CurrentVersion = 6.1


Winver does not contain the relevant info. Running winver from win31, will give you the wow version (3.95 enhanced), while a winnt version (of any kind) will show the same screen as the latest version.

If you are building a service pack, or need to diddle the service pack to point to a different number, use the first one. I used it first to build sp6 for nt4 (ie set it to 1536), and later to install something that looked for 2k sp1 (ie temp set it to 256). A reboot is required, since it is read on IPOL.


Top  Profile  WWW
 PostPost subject: Re: [Question.] How do windows update packs recognize versio        Posted: Mon Mar 04, 2019 3:14 am 
Reply with quote
FTP Access
User avatar
Offline

Joined
Sun Jun 12, 2016 10:35 pm

Posts
305

Favourite OS
Windows 1 DR5 to 10 build 9901
This is rather interesting. I would like to see if I can mod my copy of Windows version 9875 so that I can port in Windows 8.1 updates. About the redistributes, go back to my thread about debombing build 9900 which later, turned into a discussion of running 9875 and check the second or third most recent post by me.


Top  Profile
 PostPost subject: Re: [Question.] How do windows update packs recognize versio        Posted: Mon Mar 04, 2019 8:59 am 
Reply with quote
FTP Access
Offline

Joined
Sat Oct 20, 2018 11:37 am

Posts
425
Not the best idea... You might end up destroying your OS. Editing your version info to install updates will cause catalog and signature problems in some cases. Back up your OS.


Top  Profile
 PostPost subject: Re: [Question.] How do windows update packs recognize versio        Posted: Mon Mar 04, 2019 10:34 am 
Reply with quote
Donator
User avatar
Offline

Joined
Sun Dec 30, 2007 8:12 am

Posts
1205

Location
Brisbane, Queensland

Favourite OS
OS/2 Wrp 3.0
I've done the service-pack trick quite a few times to install various lumps of software, and to see what things show where. It's pretty safe as long as you stick to multiples of 256.

I think the real problem is that the install does not work, and apart from placing the files, you need to run regsvr32 on the DLL files to register them.


Top  Profile  WWW
 PostPost subject: Re: [Question.] How do windows update packs recognize versio        Posted: Mon Mar 04, 2019 11:00 am 
Reply with quote
FTP Access
Offline

Joined
Sat Oct 20, 2018 11:37 am

Posts
425
10 years ago, I tried to install a SP to my Windows XP that is not designed for it and every time it boots, it is telling me to replace a file and even after replacing the file the error still comes up. So a warning to everybody else, don't try to install SP that is not designed for it and always back things up.


Top  Profile
 PostPost subject: Re: [Question.] How do windows update packs recognize versio        Posted: Tue Mar 05, 2019 2:29 am 
Reply with quote
Donator
User avatar
Offline

Joined
Sun Dec 30, 2007 8:12 am

Posts
1205

Location
Brisbane, Queensland

Favourite OS
OS/2 Wrp 3.0
That's a dllcache problem.


Top  Profile  WWW
 PostPost subject: Re: [Question.] How do windows update packs recognize versio        Posted: Tue Mar 05, 2019 1:56 pm 
Reply with quote
FTP Access
User avatar
Offline

Joined
Wed Apr 25, 2018 9:57 am

Posts
88

Favourite OS
Windows Server 2012 R2 9785
i tried to install wannacry patch for windows 8.1 on post-rtm build 9785 (just for experimenting) but even after changing build number in registry i still get incompatibility error
Image
i also thought of modifying build number in ntoskrnl, but after that, even with test mode, windows will keep starting automatic repair, i tried using disable dse option in advanced boot but still nothing.
can anyone help me?


Top  Profile
 PostPost subject: Re: [Question.] How do windows update packs recognize versio        Posted: Tue Mar 05, 2019 2:17 pm 
Reply with quote
Offline

Joined
Mon Dec 12, 2016 5:32 am

Posts
113

Favourite OS
NT 5 & 6
did you also "patch" files in SxS folder ?


Top  Profile
 PostPost subject: Re: [Question.] How do windows update packs recognize versio        Posted: Tue Mar 05, 2019 2:52 pm 
Reply with quote
FTP Access
User avatar
Offline

Joined
Wed Apr 25, 2018 9:57 am

Posts
88

Favourite OS
Windows Server 2012 R2 9785
i didnt modify anything else

can you explain what do i have to patch?


Top  Profile
 PostPost subject: Re: [Question.] How do windows update packs recognize versio        Posted: Tue Mar 05, 2019 3:17 pm 
Reply with quote
Offline

Joined
Mon Dec 12, 2016 5:32 am

Posts
113

Favourite OS
NT 5 & 6
kernel ...
all the backup sys files are in winsxs folder

also when replacing them should be done with booting in PE or whatever rescue disc...


Top  Profile
 PostPost subject: Re: [Question.] How do windows update packs recognize versio        Posted: Wed Mar 06, 2019 3:55 am 
Reply with quote
Offline

Joined
Thu Jan 25, 2018 2:52 am

Posts
6

Favourite OS
7850
I had tried to install windows virtual pc(KB958559)on win8 7850,it successfully worked.


Top  Profile
 PostPost subject: Re: [Question.] How do windows update packs recognize versio        Posted: Thu Mar 07, 2019 7:28 pm 
Reply with quote
FTP Access
User avatar
Offline

Joined
Sun Jun 12, 2016 10:35 pm

Posts
305

Favourite OS
Windows 1 DR5 to 10 build 9901
Could you explain how you did it? I always wanted to use Windows XP Mode in Windows 8.


Top  Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ] 




Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

All views expressed in these forums are those of the author and do not necessarily represent the views of the BetaArchive site owner.

Powered by phpBB® Forum Software © phpBB Group

Copyright © 2006-2019

 

Sitemap | XML | RSS