Seite 1 von 1

AutoCAD and .net versions @#&!

Verfasst: 30 Sep 2015, 20:28
von SisterOfMercy
I recently updated the .net framework package to version 4.6

Let's guess, which application will break because of some stupid issue... OF COURSE, IT'S AUTOCAD (again). :evil:
http://forums.autodesk.com/t5/installat ... -p/5534735

Of course I have the ACAD_CHECK_DOTNET=0, but this MSI property does not carry over to the third part of the installation (the pspack).
So off we go and modify our script again, because when did autodesk really fix something?

Code: Alles auswählen

comment "Set .NET version to 4.5 cause the autodesk installer is retarded"
Set $NETversion$ = GetRegistryStringValue64("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client] Version")
Registry_install_NDPFIX /64Bit
	
comment "Start setup program"
Winbatch_install_64 /64Bit
Sub_check_exitcode
	
comment "Patch Registry"
Registry_install /64Bit

[Registry_install_NDPFIX]
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client]
set "Version" = "4.5"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client\1033]
set "Version" = "4.5"

[Registry_install]
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client]
set "Version" = "$NETversion$"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client\1033]
set "Version" = "$NETversion$"