Installing Visual Studio 2005 on Windows Server 2019

How can I install Visual Studio 2005 on Windows 2019?

I need to maintain a Visual C++ 2005 application and it will take months to migrate to VS2019, so I need to use Visual Studio 2005.

I have already done these tasks without sucess:

  • Use compatibility mode (Windows XP SP3)
  • Disable UAC
  • Preinstall SQL Server 2005 Express and MDAC 2.8
  • Start Windows Installer Service

I’d prefer not to use a Virtual Machine (Windows Server 2008) for security policies.

EDIT: When I execute the VS2005 installer after a few seconds of running it stops with the message: “A problem has been encountered while loading the setup components. Canceling setup”.

The error always is the same despite of the afore mentioned things.

The generated dd_vsinstall80.txt log file ends with the following error:

[04/09/25,15:08:51] Setup.exe: AddGlobalCustomProperty

[04/09/25,15:08:51] MSITOSIT: ERRORLOG EVENT : CRootComponent::SetManager() – MsiGetActiveDatabase returned an invalid handle

[04/09/25,15:08:51] Setup.exe: AddGlobalCustomProperty

[04/09/25,15:08:51] MSITOSIT: ERRORLOG EVENT : ERROR processed; exception was thrown for retail build
Developer Comment: MsiGetActiveDatabase returned an invalid handle
Build Time: Thu Dec 11 15:04:18 2003
DWORD: 0

[04/09/25,15:08:51] Setup.exe: GetCustomProperties()

[04/09/25,15:08:51] Setup.exe: get_CustomProperties()

[04/09/25,15:08:51] Setup.exe: GetGlobalCustomProperty({8297A38B-6431-4F1D-9F6E-C3D371CEA383})

[04/09/25,15:08:51] Setup.exe: MoveLoadProgress()

[04/09/25,15:08:51] Setup.exe: AddGlobalCustomProperty

[04/09/25,15:08:51] setup.exe: ERRORLOG EVENT : ISetupModule::SetManager() failed in ISetupManager::LoadSetupObjectGuid() : vs_setup.dll

[04/09/25,15:08:52] Setup.exe: AddGlobalCustomProperty

[04/09/25,15:08:52] setup.exe: ERRORLOG EVENT : CSetupManager::LoadSetupObjectname() – Failed in call to LoadSetupObjectGuid() for strName: in file: vs_setup.dll

[04/09/25,15:08:52] Setup.exe: AddGlobalCustomProperty

[04/09/25,15:08:52] setup.exe: ERRORLOG EVENT : LoadComponent(), LoadSetupObjectName failure: vs_setup.dll

[04/09/25,15:08:52] Setup.exe: AddGlobalCustomProperty

[04/09/25,15:08:52] setup.exe: ERRORLOG EVENT : LoadComponent failed in ISetupManager::LoadComponentsFromDBObject(): vs_setup.dll

[04/09/25,15:08:52] Setup.exe: AddGlobalCustomProperty

[04/09/25,15:08:52] setup.exe: ERRORLOG EVENT : CSetupManager::LoadDatabaseValues() – Failed in call to LoadComponentsFroMDBObjects()

[04/09/25,15:08:52] Setup.exe: AddGlobalCustomProperty

[04/09/25,15:08:52] setup.exe: ERRORLOG EVENT : CSetupManager::RunIntro() – Failed to Load Database Values

[04/09/25,15:08:52] vs70uimgr: Entering DisplayMessage() method.

[04/09/25,15:08:52] vs70uimgr: DisplayMessage_START:A problem has been encountered while loading the setup components. Canceling setup.

[04/09/25,15:08:52] Setup.exe: CCoreEngine-Proc() – Finished Main Message Loop