From d8550e3db45a53288fc5de202616e776076e4b13 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Sat, 6 Oct 2012 15:05:07 +0300 Subject: [PATCH] Installer: Added support for 3cae4f7 --- Build/Installer/Installer.nsi | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/Build/Installer/Installer.nsi b/Build/Installer/Installer.nsi index 8c182422..1c3cf9a2 100644 --- a/Build/Installer/Installer.nsi +++ b/Build/Installer/Installer.nsi @@ -777,7 +777,10 @@ SkipIniMove: ${If} $InstallPortable <> 1 CreateDirectory "$INSTDIR\Defaults" Rename "$INSTDIR\Skins" "$INSTDIR\Defaults\Skins" - Rename "$INSTDIR\Themes" "$INSTDIR\Defaults\Themes" + + Rename "$INSTDIR\Themes" "$INSTDIR\Defaults\Layouts" + Rename "$INSTDIR\Defaults\Themes" "$INSTDIR\Defaults\Layouts" + ${Locate} "$INSTDIR\Defaults\Layouts" "/L=F /M=Rainmeter.thm /G=1" "RenameToRainmeterIni" ${If} ${FileExists} "$INSTDIR\Addons\Backup" ${OrIf} ${FileExists} "$INSTDIR\Plugins\Backup" @@ -806,7 +809,7 @@ SkipIniMove: Delete "$INSTDIR\Skins\*.txt" File /r "..\Skins\*.*" - SetOutPath "$INSTDIR\Defaults\Themes" + SetOutPath "$INSTDIR\Defaults\Layouts" File /r "..\Themes\*.*" !endif @@ -880,7 +883,7 @@ SkipIniMove: WriteUninstaller "$INSTDIR\uninst.exe" ${Else} ${IfNot} ${FileExists} "Rainmeter.ini" - CopyFiles /SILENT "$INSTDIR\Themes\illustro default\Rainmeter.thm" "$INSTDIR\Rainmeter.ini" + CopyFiles /SILENT "$INSTDIR\Layouts\illustro default\Rainmeter.ini" "$INSTDIR\Rainmeter.ini" ${EndIf} WriteINIStr "$INSTDIR\Rainmeter.ini" "Rainmeter" "Language" "$LANGUAGE" @@ -896,6 +899,16 @@ Function CopyIniToAppData ${EndIf} FunctionEnd +Function RenameToRainmeterIni + ${If} ${FileExists} "$R8\Rainmeter.ini" + Delete "$R8\Rainmeter.thm" + ${Else} + Rename "$R9" "$R8\Rainmeter.ini" + ${EndIf} + + Push $0 +FunctionEnd + Function MoveNonDefaultPlugins ${If} $R7 != "AdvancedCPU.dll" ${AndIf} $R7 != "CoreTemp.dll"