issue #9 - fixed an issue where custom XML settings were not being applied before Open-Shell was started

This commit is contained in:
Homes32
2022-08-29 20:34:57 -05:00
parent 02c216ce53
commit 1b4cb18972

View File

@@ -35,8 +35,8 @@ Author=Homes32
Level=3
Selected=True
Mandatory=False
Version=1.4.0.0
Date=2022-06-20
Version=1.4.1.0
Date=2022-08-29
[Variables]
%ProgramFolder%="Open-Shell"
@@ -57,12 +57,12 @@ Echo,"Preparing Registry Hives..."
ExtractAllFiles,%ScriptFile%,Reg,%ProjectTemp%
If,%cb_UseCustomXMLCfg%,Equal,True,Begin
If,Not,ExistFile,%fb_CustomXMLCfg%,Halt,"Error: The specified XML Configuration file does not exist!"
If,Not,ExistFile,%fb_CustomXMLCfg%,Halt,"Error: The specified XML configuration file does not exist!"
StrFormat,EXT,%fb_CustomXMLCfg%,%FileExt%
If,Not,%FileExt%,Equal,".xml",Halt,"Error: The configuration file must be an .XML file!"
Set,%FileExt%,Nil
FileCopy,%fb_CustomXMLCfg%,"%TargetDir%\Program Files\Open-Shell\MenuSettings.xml"
AddAutoRun,PostShell,HideNoWait,"Configuring Open-Shell Menu...","#$pProgramFiles#$p\Open-Shell\StartMenu.exe","-xml #$pProgramFiles#$p\Open-Shell\MenuSettings.xml"
AddAutoRun,PreShell,HideWait,"Configuring Open-Shell Menu...","#$q#$pProgramFiles#$p\Open-Shell\StartMenu.exe#$q","-xml #$q#$pProgramFiles#$p\Open-Shell\MenuSettings.xml#$q"
End
RegHiveLoad,Tmp_Software,%RegSoftware%