98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
is_opt = '($optionalInstall)' # ← could use '((Ask "Install streamripper too [y/N]") -match N)' instead
prescn = 'if ($optionalInstall) {if ($t.found = (Get-ITPV "Streamripper")) {$STREAMRIPPER = $t.found}} else {$STREAMRIPPER=""; continue;}'
},
@{
title = "Mutagen (ID3-Support)"
url = "mutagen" # no download url
cmd = "pip"
iargs = "--disable-pip-version-check"
testpth= "{PYTHON}\Lib\site-packages\mutagen-1*py2.7.egg-info"
is_opt = '($optionalInstall)'
prescn = 'if ($optionalInstall) {if ($t.found = (test-path -path $t.testpth)) {$t.found = $t.testpth}} else {continue}'
},
@{
title = "Uninstall script"
cmd = 'Create-Uninstallscript'
|
|
|
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
is_opt = '($optionalInstall)' # ← could use '((Ask "Install streamripper too [y/N]") -match N)' instead
prescn = 'if ($optionalInstall) {if ($t.found = (Get-ITPV "Streamripper")) {$STREAMRIPPER = $t.found}} else {$STREAMRIPPER=""; continue;}'
},
@{
title = "Mutagen (ID3-Support)"
url = "mutagen" # no download url
cmd = "pip"
iargs = "--disable-pip-version-check -U"
testpth= "{PYTHON}\Lib\site-packages\mutagen-1*py2.7.egg-info"
is_opt = '($optionalInstall)'
prescn = 'if ($optionalInstall) {if ($t.found = (test-path -path $t.testpth)) {$t.found = $t.testpth}} else {continue}'
},
@{
title = "Uninstall script"
cmd = 'Create-Uninstallscript'
|
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
|
}
#-- older 2.7 version found
else {
if ($PythonInstalledPath) {
Write-Host ""
Write-Host -b Red -f White @"
Setup has detected an older version of Python 2.7
in $PythonInstalledPath.
It is strongly recommended to exit this setup now and uninstall
the previous Python version before installing Streamtuner2.
Continuing this setup might result in loss of functionality
for other Python applications on your computer!
"@
Write-Host ""
if ((Ask "Do you want to continue with the setup anyway? [y/N]") -notmatch "[yY]") {
exit;
|
|
|
|
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
|
}
#-- older 2.7 version found
else {
if ($PythonInstalledPath) {
Write-Host ""
Write-Host -b Red -f White @"
Setup has detected a version of Python different from 2.7.13
in $PythonInstalledPath.
It is strongly recommended to exit this setup now and uninstall
the installed Python version before installing Streamtuner2.
Continuing this setup might result in loss of functionality
for other Python applications on your computer!
"@
Write-Host ""
if ((Ask "Do you want to continue with the setup anyway? [y/N]") -notmatch "[yY]") {
exit;
|