Qual é a pilha de serviços e como funciona?

11

No Windows, há algo chamado de pilha de serviços que parece cumprir o papel de um gerenciador de pacotes. Não entendi muito bem, apenas parece que o CBS (Component-Based Servicing), o Windows Installer, o Windows Update e o WinSxS fazem parte da pilha de serviços ou estão envolvidos na manutenção.

Fiz muita pesquisa e não consegui encontrar uma visão geral fácil de entender sobre manutenção no Windows. Por isso, estou perguntando o seguinte:

  • O que é serviço e o que a pilha de serviços faz?
  • Como funciona a pilha de serviços? Quais funções a CBS, o Windows Installer, o WinSxS e o Windows Update desempenham?
por bwDraco 05.07.2016 / 06:10

1 resposta

18

1. O que é serviço e o que a pilha de serviços faz?

Serviço é o nome da configuração das atualizações do Windows ou recursos do Windows (instalando, removendo atualizações / recursos). Isso pode ser feito quando o Windows está em execução (on-line) ou em uma partição do Windows não em execução / ou WIM (offline) montado:

What is servicing? Servicing is the act of installing a role, feature, service pack or windows update against a Windows OS. Most of the time servicing is done in an online state. In this case, online means that the operating system is up and running when a change is made. Online servicing is what most people do and is usually done via Windows Update or double clicking a downloaded update. There is also an offline state. Offline, of course, means that the installation is happening against a non-running version of Windows. This is what a lot of larger corporations and OEMs do with their image files, they mount them with IMAGEX or DISM and then install hotfixes or other updates against those images to reduce their patch time when the image is rolled into production.

2. O que é CBS

A CBS significa manutenção baseada em componentes e foi adicionada ao Windows Vista. Nas versões mais antigas do Windows, a Instalação foi baseada em .inf arquivos para instalar recursos / atualizações .

In Windows Vista, the new componentization architecture, known as Component-Based Servicing (CBS) changes the way that these components are installed. The CBS architecture is far more robust and secure than the installers in previous operating systems. Users benefit from a more complete and controlled installation process that allows updates, drivers and optional components to be added while simultaneously mitigating against instability issues caused by improper or partial installation. CBS allows components and features from IIS to Windows Media Player to be packaged as small modules that encompass the full functionality of the component. In other words, each module contains all of the files, registry settings, and methods required for a full installation or removal of the component it contains.

3. Quais funções o WinSxS desempenha

Esta pasta foi adicionada no Windows XP, para ter a capacidade de ter 2 versões diferentes da DLL instalada lado a lado (sxs) em um sistema. A Microsoft usou isso para permitir o novo suporte ao Theming no WinXp, mas ainda mantém as dlls antigas do sistema para não quebrar aplicativos antigos do Win95. Também foi usado para consertar o inferno da DLL. No Win95, você tem o problema de que uma ferramenta requer uma DLL especial do Windows na versão 4 e a próxima ferramenta na versão 4.10. Se você instalou a ferramenta mais nova, pode quebrar o programa antigo, se você instalou o mais antigo após a ferramenta mais recente, o mais antigo funcionou, mas a ferramenta mais recente trava porque a DLL não suporta todos os recursos necessários.

Desde o Vista, a pasta WinSxS contém todos os arquivos usados pelo Windows e, quando você ativa um recurso, os arquivos não são copiados para o destino em C:\Program Files , eles são vinculados por meio de um link físico:

One of the largest changes between previous versions of Windows and Windows Vista was a move from an INF described OS to componentization. A component in Windows is one or more binaries, a catalog file, and an XML file that describes everything about how the files should be installed. From associated registry keys and services to what kind security permissions the files should have. Components are grouped into logical units, and these units are used to build the different Windows editions.

All of the components in the operating system are found in the WinSxS folder – in fact we call this location the component store. Each component has a unique name that includes the version, language, and processor architecture that it was built for. The WinSxS folder is the only location that the component is found on the system, all other instances of the files that you see on the system are “projected” by hard linking from the component store. Let me repeat that last point – there is only one instance (or full data copy) of each version of each file in the OS, and that instance is located in the WinSxS folder. So looked at from that perspective, the WinSxS folder is really the entirety of the whole OS, referred to as a “flat” in down-level operating systems. This also accounts for why you will no longer be prompted for media when running operations such as System File Checker (SFC), or when installing additional features and roles.

4. Quais funções o Windows Installer desempenha?

isso não está relacionado ao WinSxS, a pasta C: Windows \ Installer é a pasta onde o serviço do Windows Installer copia dados para poder modificar ou remover programas instalados.

5. Quais funções o Windows Update executa?

A atualização do Windows faz o download dos arquivos para C: \ Windows \ SoftwareDistribution \ Download e manutenção da pilha copia os dados para o WinSxS e tenta criar os hardlinks, se isso falhar (quando os arquivos ainda são usados), a operação está pendente e A atualização é instalada na próxima inicialização (a tela de configuração do Windows é atualizada no desligamento e na inicialização).

    
por 09.07.2016 / 08:41