[Question.] How do windows update packs recognize version?
[Question.] How do windows update packs recognize version?
As the title, how do windows update packs recognize the version of windows?
Re: [Question.] How do windows update packs recognize versio
Code: Select all
#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);
}
Re: [Question.] How do windows update packs recognize versio
Thanks. But I wonder which file is recognized by windows update packs.compgeke wrote:Code: Select all
#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); }
-
Lucas Brooks
- Posts: 773
- Joined: Sat Oct 20, 2018 11:37 am
- Contact:
Re: [Question.] How do windows update packs recognize versio
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.
Re: [Question.] How do windows update packs recognize versio
I mean how the update packs know my windows version. By which file?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.
-
Lucas Brooks
- Posts: 773
- Joined: Sat Oct 20, 2018 11:37 am
- Contact:
Re: [Question.] How do windows update packs recognize versio
Not by file, by the reported kernel version and registry info.
Here is an example:
Here is an example:
Code: Select all
</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>
- DragonWars
- Posts: 92
- Joined: Wed Apr 25, 2018 9:57 am
Re: [Question.] How do windows update packs recognize versio
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)
-
Lucas Brooks
- Posts: 773
- Joined: Sat Oct 20, 2018 11:37 am
- Contact:
Re: [Question.] How do windows update packs recognize versio
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.
- DragonWars
- Posts: 92
- Joined: Wed Apr 25, 2018 9:57 am
Re: [Question.] How do windows update packs recognize versio
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
but im more interested in installing vcredist 2015/2017
- os2fan2
- Donator
- Posts: 1394
- Joined: Sun Dec 30, 2007 8:12 am
- Location: Brisbane, Queensland
- Contact:
Re: [Question.] How do windows update packs recognize versio
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.
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.
- gtgamer468
- Posts: 340
- Joined: Sun Jun 12, 2016 10:35 pm
Re: [Question.] How do windows update packs recognize versio
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.
-
Lucas Brooks
- Posts: 773
- Joined: Sat Oct 20, 2018 11:37 am
- Contact:
Re: [Question.] How do windows update packs recognize versio
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.
- os2fan2
- Donator
- Posts: 1394
- Joined: Sun Dec 30, 2007 8:12 am
- Location: Brisbane, Queensland
- Contact:
Re: [Question.] How do windows update packs recognize versio
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.
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.
-
Lucas Brooks
- Posts: 773
- Joined: Sat Oct 20, 2018 11:37 am
- Contact:
Re: [Question.] How do windows update packs recognize versio
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.
- os2fan2
- Donator
- Posts: 1394
- Joined: Sun Dec 30, 2007 8:12 am
- Location: Brisbane, Queensland
- Contact:
Re: [Question.] How do windows update packs recognize versio
That's a dllcache problem.
- DragonWars
- Posts: 92
- Joined: Wed Apr 25, 2018 9:57 am
Re: [Question.] How do windows update packs recognize versio
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
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?
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?
Re: [Question.] How do windows update packs recognize versio
did you also "patch" files in SxS folder ?
- DragonWars
- Posts: 92
- Joined: Wed Apr 25, 2018 9:57 am
Re: [Question.] How do windows update packs recognize versio
i didnt modify anything else
can you explain what do i have to patch?
can you explain what do i have to patch?
Re: [Question.] How do windows update packs recognize versio
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...
all the backup sys files are in winsxs folder
also when replacing them should be done with booting in PE or whatever rescue disc...
Re: [Question.] How do windows update packs recognize versio
I had tried to install windows virtual pc(KB958559)on win8 7850,it successfully worked.
- gtgamer468
- Posts: 340
- Joined: Sun Jun 12, 2016 10:35 pm
Re: [Question.] How do windows update packs recognize versio
Could you explain how you did it? I always wanted to use Windows XP Mode in Windows 8.