Simplified ninite section
This commit is contained in:
parent
b9e99ac4d8
commit
11401513e2
1 changed files with 8 additions and 10 deletions
|
|
@ -361,16 +361,14 @@ def install_ninite_bundle(
|
|||
|
||||
# Main selections
|
||||
main_selections = []
|
||||
if base:
|
||||
if global_vars['OS']['Version'] in ('8', '8.1', '10'):
|
||||
if base and standard:
|
||||
main_selections.append('base-standard')
|
||||
elif base:
|
||||
main_selections.append('base')
|
||||
else:
|
||||
main_selections.append('base7')
|
||||
if standard:
|
||||
if global_vars['OS']['Version'] in ('8', '8.1', '10'):
|
||||
elif standard:
|
||||
main_selections.append('standard')
|
||||
else:
|
||||
main_selections.append('standard7')
|
||||
if global_vars['OS']['Version'] not in ('8', '8.1', '10'):
|
||||
main_selections = [f'{s}7' for s in main_selections]
|
||||
if main_selections:
|
||||
# Only run if base and/or standard are enabled
|
||||
cmd = r'{}\Installers\Extras\Bundles\{}.exe'.format(
|
||||
|
|
|
|||
Loading…
Reference in a new issue