mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Add Rainmeter.exe.config to declare support for the .NET 4.0 and 4.5 runtimes
This allows plugins like InputText.dll to be used with .NET 4.0/4.5 in addition to 2.0. Therefore, we can avoid installing .NET 2.0 on Windows 8 and 8.1 where it is not installed by default (whereas 4.5/4.5.1 is installed by default).
This commit is contained in:
parent
1940b7f97c
commit
f6461a1b30
@ -118,6 +118,11 @@ xcopy /Q /S /Y ..\Build\Themes ..\testbench\x64\release\Layouts
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="Application.rc" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Rainmeter.exe.config">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Rainmeter.ico" />
|
||||
</ItemGroup>
|
||||
|
9
Application/Rainmeter.exe.config
Normal file
9
Application/Rainmeter.exe.config
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup useLegacyV2RuntimeActivationPolicy="true">
|
||||
<supportedRuntime version="v4.5.1" />
|
||||
<supportedRuntime version="v4.5" />
|
||||
<supportedRuntime version="v4.0" />
|
||||
<supportedRuntime version="v2.0.50727" />
|
||||
</startup>
|
||||
</configuration>
|
@ -619,6 +619,7 @@ Section
|
||||
${EndIf}
|
||||
${EndIf}
|
||||
|
||||
${IfNot} ${AtLeastWinVista}
|
||||
; Download and install .NET if required
|
||||
ReadRegDWORD $0 HKLM "SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727" "Install"
|
||||
${If} $0 <> 1
|
||||
@ -647,6 +648,7 @@ Section
|
||||
${EndIf}
|
||||
${EndIf}
|
||||
${EndIf}
|
||||
${EndIf}
|
||||
|
||||
SetOutPath "$INSTDIR"
|
||||
|
||||
@ -713,7 +715,6 @@ SkipIniMove:
|
||||
${EndIf}
|
||||
|
||||
; Cleanup old stuff
|
||||
Delete "$INSTDIR\Rainmeter.exe.config"
|
||||
Delete "$INSTDIR\Rainmeter.chm"
|
||||
Delete "$INSTDIR\Default.ini"
|
||||
Delete "$INSTDIR\Launcher.exe"
|
||||
@ -746,6 +747,7 @@ SkipIniMove:
|
||||
${Else}
|
||||
!insertmacro InstallFiles "x64"
|
||||
${EndIf}
|
||||
File "..\..\Application\Rainmeter.exe.config"
|
||||
|
||||
RMDir /r "$INSTDIR\Languages"
|
||||
SetOutPath "$INSTDIR\Languages"
|
||||
@ -991,6 +993,7 @@ Section Uninstall
|
||||
RMDir /r "$INSTDIR\Fonts"
|
||||
Delete "$INSTDIR\Rainmeter.dll"
|
||||
Delete "$INSTDIR\Rainmeter.exe"
|
||||
Delete "$INSTDIR\Rainmeter.exe.config"
|
||||
Delete "$INSTDIR\SkinInstaller.exe"
|
||||
Delete "$INSTDIR\uninst.exe"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user