@@ -109,7 +109,7 @@ Section "libCEC for .Net Framework" SecDotNet
109109 SetOutPath " $INSTDIR\x86\netfx"
110110 File " ..\build\x86\LibCecSharp.dll"
111111 File " ..\build\x86\LibCecSharp.xml"
112- File " ..\build\x86\CecSharpTester.exe"
112+ File /nonfatal " ..\build\x86\CecSharpTester.exe"
113113
114114 ${If} ${RunningX64}
115115 ; Moved to netfx subdir
@@ -139,11 +139,11 @@ Section "libCEC for .Net Core" SecDotNetCore
139139 File " ..\build\x86\netcore\LibCecSharpCore.dll"
140140 File " ..\build\x86\netcore\LibCecSharpCore.runtimeconfig.json"
141141 File " ..\build\x86\netcore\LibCecSharpCore.xml"
142- File " ..\build\x86\netcore\CecSharpCoreTester.exe"
143- File " ..\build\x86\netcore\CecSharpCoreTester.deps.json"
144- File " ..\build\x86\netcore\CecSharpCoreTester.dll"
145- File " ..\build\x86\netcore\CecSharpCoreTester.runtimeconfig.json"
146- File " ..\build\x86\netcore\Ijwhost.dll"
142+ File /nonfatal " ..\build\x86\netcore\CecSharpCoreTester.exe"
143+ File /nonfatal " ..\build\x86\netcore\CecSharpCoreTester.deps.json"
144+ File /nonfatal " ..\build\x86\netcore\CecSharpCoreTester.dll"
145+ File /nonfatal " ..\build\x86\netcore\CecSharpCoreTester.runtimeconfig.json"
146+ File /nonfatal " ..\build\x86\netcore\Ijwhost.dll"
147147
148148 ${If} ${RunningX64}
149149 SetOutPath " $INSTDIR\x64\netcore"
@@ -159,31 +159,9 @@ Section "libCEC for .Net Core" SecDotNetCore
159159 ${EndIf}
160160SectionEnd
161161
162- Section " libCEC Tray" SecTray
163- SetShellVarContext current
164- SectionIn 1
165-
166- ; Copy to the installation directory
167- SetOutPath " $INSTDIR\x86\netfx"
168- File " ..\build\x86\cec-tray.exe"
169- SetOutPath " $INSTDIR\x64\netfx"
170- File /nonfatal " ..\build\amd64\cec-tray.exe"
171-
172- !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
173- SetOutPath " $INSTDIR"
174-
175- CreateDirectory " $SMPROGRAMS\$StartMenuFolder"
176- ${If} ${RunningX64}
177- CreateShortCut " $SMPROGRAMS\$StartMenuFolder\cec-tray.lnk" " $INSTDIR\x64\netfx\cec-tray.exe" \
178- " " " $INSTDIR\x64\netfx\cec-tray.exe" 0 SW_SHOWNORMAL \
179- " " " Start libCEC Tray (x64)."
180- ${Else}
181- CreateShortCut " $SMPROGRAMS\$StartMenuFolder\cec-tray.lnk" " $INSTDIR\x86\netfx\cec-tray.exe" \
182- " " " $INSTDIR\netfx\cec-tray.exe" 0 SW_SHOWNORMAL \
183- " " " Start libCEC Tray."
184- ${EndIf}
185- !insertmacro MUI_STARTMENU_WRITE_END
186- SectionEnd
162+ !ifdef NSISDOTNETAPPS
163+ !include " nsis\cec-tray.nsh"
164+ !endif
187165
188166Section " libCEC client (cec-client)" SecCecClient
189167 SetShellVarContext current
@@ -309,13 +287,15 @@ SectionEnd
309287
310288; Required options
311289Function .onSelChange
290+ !ifdef NSISDOTNETAPPS
312291${If} ${SectionIsSelected} ${SecTray}
313292 !define /math MYSECTIONFLAGS ${SF_SELECTED} | ${SF_RO}
314293 !insertmacro SetSectionFlag ${SecDotNet} ${MYSECTIONFLAGS}
315294 !undef MYSECTIONFLAGS
316295${Else}
317296 !insertmacro ClearSectionFlag ${SecDotNet} ${SF_RO}
318297${EndIf}
298+ !endif
319299
320300${If} ${SectionIsSelected} ${SecPythonCecClient}
321301 !define /math MYSECTIONFLAGS ${SF_SELECTED} | ${SF_RO}
0 commit comments