The Witcher 2: Assassins of Kings Enhanced Edition

The Witcher 2: Assassins of Kings Enhanced Edition

mirpa Jun 19, 2024 @ 5:35am
Why is install script running on launch?
Why is the game trying to install MS redistributable files on every launch?
< >
Showing 1-5 of 5 comments
cheshirm Jun 19, 2024 @ 6:32am 
perhaps something did not finish in the installation process.

click on steam settings then downloads then clear download cache then clear cache.
steam verify game files again and hopefully the installation process will complete.

another possibilty is the installer does not have permission to install MS redistributables.
run steam with admin permission then try steam verify game files.

or go to the steam witcher 2 game folder then the redists folder. install dxsetup.exe and vcredist_x86.exe with admin permission
Last edited by cheshirm; Jun 19, 2024 @ 6:32am
svillaf91gg Jun 20, 2024 @ 1:17pm 
It´s an issue that can be fixed by applying the following in the registry:

;For 64 bit systems (x64)
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Valve\Steam\Apps\20920]
"DirectX"=dword:00000001
"VCRedist"=dword:00000001
"dotNetFx40"=dword:00000001

;For 32 bit systems (x86)
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Valve\Steam\Apps\20920]
"DirectX"=dword:00000001
"VCRedist"=dword:00000001
"dotNetFx40"=dword:00000001

Just to explain what the above does:

It just tells Windows and Steam that for Witcher 2, all those redistributables have been installed successfully, so that it doesn't keep reinstalling/retrying every time you play.
Last edited by svillaf91gg; Jun 20, 2024 @ 1:21pm
teleguy Jun 29, 2024 @ 6:01am 
You could also open 20920_install.vdf inside the game directory with notepad, delete

"VCRedist" { "process 1" "%INSTALLDIR%\\redist\\vcredist_x86.exe" "command 1" "/q" "IgnoreExitCode" "1" }
and then use "save as..." (with "All files (*.*) selected, not "Text Files (*.txt))
Originally posted by teleguy:
You could also open 20920_install.vdf inside the game directory with notepad, delete

"VCRedist" { "process 1" "%INSTALLDIR%\\redist\\vcredist_x86.exe" "command 1" "/q" "IgnoreExitCode" "1" }
and then use "save as..." (with "All files (*.*) selected, not "Text Files (*.txt))

But when I do that, Steam redownloads the deleted data on every launch, essentialy rendering this fix unusable. Can I prevent Steam from doing that? I don't think I can.
teleguy Jul 8, 2024 @ 3:01pm 
It doesn't for me.
Maybe try setting 20920_install.vdf to readonly.
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Jun 19, 2024 @ 5:35am
Posts: 5