Check-in [3e9c42bcec]
Overview
Comment: | Shortened installer scripts. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
3e9c42bceca70bff9605f6088624e0fd |
User & Date: | mario on 2016-11-28 15:03:09 |
Other Links: | manifest | tags |
Context
2016-11-29
| ||
14:25 | Added more icons for plugins and config options in manual. check-in: 85483dd69b user: mario tags: trunk | |
2016-11-28
| ||
15:03 | Shortened installer scripts. check-in: 3e9c42bcec user: mario tags: trunk | |
00:02 | New windows installer files. check-in: 5c7a99e16e user: mario tags: trunk | |
Changes
Modified dev/install_python_gtk.bat from [f576398968] to [fc4d5f2082].
1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | - - - - - - - - - - - - - - - - - - - - + - - - - - + - - | @echo off |
Modified dev/install_python_gtk.ps1 from [3310ff0579] to [67794a7912].
︙ | |||
28 29 30 31 32 33 34 | 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | - + - - - - - - - - - - - - + - - + + - + - + - + - + - + - + | if(!(Test-Path $regPathLM)) { $regPathLM = "HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall" } #32-Bit machine $pythonPathLM = (Get-ItemProperty -path ($regPathLM.substring(0,$regPathLM.indexOf("\Microsoft"))+ "\Python\PythonCore\2.7\InstallPath\")).'(default)' 2> $null $pythonPathCU = (Get-ItemProperty -path ($regPathCU.substring(0,$regPathCU.indexOf("\Microsoft"))+ "\Python\PythonCore\2.7\InstallPath\")).'(default)' 2> $null #-- what and how to install |
︙ | |||
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 | 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 | + + + - - - - - - - - - - - - - - - - + - - - - - + - - - - + - - - + - - - - - - - - - - - - - - + + + + + + + + + + + + | "", 'Make-Shortcut -dir "$StartMenu\Streamtuner2" -name "Reconfigure.lnk" -target $UsrFolder\share\streamtuner2\dev\install_python_gtk.bat', "", "", "", "" ), @( "Basic configuration", "", 'Create-StreamtunerJSON', "", "", "", "" ), @( "FINISHED", "", 'Any-Key Green', "", "", "", "" ) ) #-- startup messages function Display-Logo { |
︙ | |||
297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 | 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + - - - | New-ItemProperty -Path . -Name UninstallString -PropertyType String -Value "$UsrFolder\share\streamtuner2\dev\uninstall.cmd" > $null New-ItemProperty -Path . -Name URLInfoAbout -PropertyType String -Value "http://freshcode.club/projects/streamtuner2" > $null New-ItemProperty -Path . -Name Publisher -PropertyType String -Value "Mario Salzer" > $null New-ItemProperty -Path . -Name NoModify -PropertyType DWord -Value 1 > $null New-ItemProperty -Path . -Name NoRepair -PropertyType DWord -Value 1 > $null #} } #-- prefill settings.json function Create-StreamtunerJSON { $dir = "$env:APPDATA\streamtuner2" if (!(Test-Path $dir)) { New-Item -Path $dir -ItemType directory } if (($STREAMRIPPER) -AND !(Test-Path ($fn = "$dir/settings.json"))) { $dq = '^"' $json = @{ "windows" = $True; "play" = @{ "audio/*" = "wmplayer.exe %asx"; "video/*" = "wmplayer.exe %asx" }; "record" = @{ "audio/*" = "/D $($dq)$($STREAMRIPPER)$($dq) streamripper.exe %srv -d $Home\Desktop" } } $json | ConvertTo-Json | Out-File $fn -Encoding ASCII } } function Any-Key($color) { Write-Host -f $color "[Press any key]" $null = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") } #-- colorized Read-Host function Ask($str) { if ($str -cmatch "^(.+?)(\[[a-z/]*)([A-Z]+)([\w/]*\])(.*)$") { Write-Host -n -f Yellow $matches[1] # Want to install Write-Host -n -f DarkYellow $matches[2] # [n/ Write-Host -n -f Green $matches[3] # Y Write-Host -n -f DarkYellow $matches[4] # /a] Write-Host -n -f Yellow $matches[5] # ? } else { Write-Host -n -f Yellow $str } Read-Host ; Write-Host "" } #-- ensure ST2 startup script exists in relative path to this install script function Check-Package { if (!(Test-Path -Path("$UsrFolder\bin\streamtuner2"))) { |
︙ | |||
343 344 345 346 347 348 349 | 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 | - + - - + | 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 "" |
︙ | |||
382 383 384 385 386 387 388 | 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 | - + - + | } else { #Write-Host (Get-ItemProperty -Path $regkey -Name "DisplayName".DisplayName).DisplayName " found" Write-Host " + $title found" } } elseif ($title -match "requests|PyQuery") { |
︙ | |||
411 412 413 414 415 416 417 418 419 420 421 422 423 | 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 | + - - + + - - - + + - + - - - + | $streamripperPath return } #-- ask before running Clear-Host Console-MaxHeight Display-Logo $UsrFolder = $MyInvocation.MyCommand.Path -replace ("([\\/][^\\/]+){4}$","") #temp fix for running on Windows 10 $PYTHON = Check-PythonInstall $reuseCachedFiles, $optionalInstall = Ask-First $STREAMRIPPER = Check-Prerequisites |
︙ | |||
478 479 480 481 482 483 484 | 472 473 474 475 476 477 478 479 480 481 482 483 484 485 | - | if ($title -notmatch "FINISHED") { Write-Host -f DarkYellow " β $cmd" } Invoke-Expression "$cmd" } # msi elseif ($file -match ".+.msi$") { |
︙ |