Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
My last fix for the SectionTheme bug fixed that particular bug but in…
…troduced a new one. Hopefully that new bug is now fixed. (You would get the wrong themeslist.rc and themeselect.rc files when installing on a computer that didn't already have losi installed)
- Loading branch information
Showing
3 changed files
with
24 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
!ifndef HIDDEN_SECTION_THEME | ||
!define HIDDEN_SECTION_THEME | ||
!include LogicLib.nsh | ||
|
||
Section "-HiddenSectionTheme" | ||
; OTS2 Theme files | ||
IfFileExists "$whereprofiles\themes\themeslist.rc" 0 AddThemeFiles | ||
IfFileExists "$whereprofiles\themes\themeselect.rc" SkipThemeFiles | ||
|
||
AddThemeFiles: | ||
SetOutPath "$whereprofiles\themes\" | ||
!insertmacro UNINSTALL.LOG_OPEN_INSTALL | ||
${If} ${SectionIsSelected} ${SecTheme} | ||
File ".\Personal\themes\themeselect.rc" | ||
File ".\Personal\themes\themeslist.rc" | ||
${Else} | ||
File /oname=themeselect.rc ".\Personal\themes\themeselect-empty.rc" | ||
File /oname=themeslist.rc ".\Personal\themes\themeslist-empty.rc" | ||
${EndIf} | ||
!insertmacro UNINSTALL.LOG_CLOSE_INSTALL | ||
SkipThemeFiles: | ||
SectionEnd | ||
!endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters