Check-in [de4013065e]
Overview
Comment: | Unified the definitions for Make-Shortcut in @tasks. Moved the Python 2.7.13 GUID to $Python GUID, since it is used in regkey and Check-Pythoninstall. For the uninstall dismissed the batch variable %UsrFolder%, since it was used only once and can be derived from %installFolder%. This had also to be corrected in the uninstall script generation in install_python_gtk.ps1. In Resetprefs.cmd I changed the text to reflect that also the downloaded Gtk themes would be deleted. In uninstall.cmd I changed the rd command for the themes folder to use the correct rd syntax. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
de4013065e46f7da4c0dd187d7b513c1 |
User & Date: | Oliver on 2016-12-23 21:37:56 |
Other Links: | manifest | tags |
Context
2016-12-23
| ||
21:39 | Temporary workaround for file browser plugin to avoid reloading. check-in: 147d87c1e1 user: Oliver tags: trunk | |
21:37 | Unified the definitions for Make-Shortcut in @tasks. Moved the Python 2.7.13 GUID to $Python GUID, since it is used in regkey and Check-Pythoninstall. For the uninstall dismissed the batch variable %UsrFolder%, since it was used only once and can be derived from %installFolder%. This had also to be corrected in the uninstall script generation in install_python_gtk.ps1. In Resetprefs.cmd I changed the text to reflect that also the downloaded Gtk themes would be deleted. In uninstall.cmd I changed the rd command for the themes folder to use the correct rd syntax. check-in: de4013065e user: Oliver tags: trunk | |
21:36 | Guard non-writeable gtk_dir / extra statusbar info. check-in: fdad9d9430 user: Oliver tags: trunk | |
Changes
Modified dev/install_python_gtk.ps1 from [864d0e4d45] to [6af7be9ecb].
︙ | |||
13 14 15 16 17 18 19 20 21 22 23 24 25 26 | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | + | #-- defaults / parameters [CmdletBinding()] Param( [string]$reinstall = "ask", [string]$TEMP = $env:TEMP, [string]$PYTHON = "C:\Python27", [string]$PythonGUID = "{4A656C6C-D24A-473F-9747-3A8D00907A03}", #Python 2.7.13 [string]$StartMenu = "$env:USERPROFILE\AppData\Roaming\Microsoft\Windows\Start Menu\Programs", #[string]$UsrFolder = $MyInvocation.MyCommand.Path -replace ("([\\/][^\\/]+){4}$",""), [string]$ProgramFiles = "%ProgramFiles(x86)%", [string]$AboutLink = "http://freshcode.club/projects/streamtuner2", [string]$VERSION = "2.2.0" ) |
︙ | |||
41 42 43 44 45 46 47 | 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | - - + + - + | $ProgramFiles = "%ProgramFiles%" } New-Variable -Name STREAMRIPPER -Option AllScope -Value "$ProgramFiles\Streamripper" #can be changed in Check-Prerequisites #-- what and how to install (hash list as used by Run-Task and Check-Prerequisites) $tasks = @( @{ |
︙ | |||
91 92 93 94 95 96 97 | 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 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 | - + + + + + + + + + + - + + + + + - + + + + + + + + - + - + + + + - + + + + - + + + + - + + + + + + - + + + + + | title = "Streamripper 1.64.6" url = "https://netcologne.dl.sourceforge.net/project/streamripper/streamripper%20%28current%29/1.64.6/streamripper-windows-installer-1.64.6.exe" cmd = "" iargs = "/S /D={STREAMRIPPER}" #NSIS does not use double quotes in /D parm regkey = "$regPathLM\Streamripper" testpth= "{STREAMRIPPER}\streamripper.exe" is_opt = '($optionalInstall)' # โ could use '((Ask "Install streamripper too [y/N]") -match N)' instead |
︙ | |||
161 162 163 164 165 166 167 | 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 | - + | | __/\\\______\//\\\________\/\\\_________/\\\/___________ | | _\///\\\\\\\\\\\/_________\/\\\________/\\\\\\\\\\\\\\\_ | | ___\///////////___________\///________\///////////////__ | | | | | | Streamtuner2 for Windows Version $VERSION | | | |
︙ | |||
220 221 222 223 224 225 226 | 259 260 261 262 263 264 265 266 267 268 269 270 271 272 | - | [CmdletBinding()] param() # update uninstall.cmd with current values $installFolder = $usrFolder.substring(0,$usrFolder.LastIndexOf('\')) $UninstallScript = Get-Content -Path $UninstallPath Out-File -FilePath $UninstallPath -Encoding ascii -InputObject @" @set installFolder=$installFolder |
︙ | |||
285 286 287 288 289 290 291 | 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 | - - + + | } } #-- Check if previous Python 2.7 installation exists function Check-PythonInstall { $PythonInstalledPath = Get-ITPV('Python\PythonCore\2.7\InstallPath\') |
︙ | |||
373 374 375 376 377 378 379 380 381 382 383 384 385 386 | 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 | + + | # ยท $prescn โ used in check-prereq() # filter Run-Task { # extract flags/vars from $tasks pipe $title=""; $cmd=""; $url=""; $iargs=""; $testpth=""; $regkey=""; $is_opt=""; $prescn=""; $found="" ($task = $_).GetEnumerator() | % { Set-Variable -Scope Local -Name $_.key -Value ([regex]::Replace($_.value, "[#{](\w+)[}#]", { param($m) Invoke-Expression ("$"+$m.Groups[1].Value) })) } # $iargs = $iargs -replace "{PYTHON}","$PYTHON" # skip optionals if ($is_opt -AND !(Invoke-Expression $is_opt)) { return } # print step if ($title -match "\d+\.\d+") { $title = "Installing $title" } Write-Host -b DarkBlue "`n $title `n" chdir($TEMP); |
︙ | |||
407 408 409 410 411 412 413 | 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 | + - + + + + + - + - + | $wget.DownloadFile($url, "$TEMP\$file"); } # run shorthand or custom command if ($cmd) { if (Test-Path $PYTHON) { chdir($PYTHON) } if ($cmd -eq "pip") { if (!($file)) { |
︙ |
Modified dev/resetprefs.cmd from [1b49b46f8b] to [5ddc3b8698].
︙ | |||
55 56 57 58 59 60 61 | 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | - + | pause exit :NotRunning echo Your personal files are in %PrefsFolder% echo. echo This will delete all settings of %ST2%, all cached files... |
Modified dev/uninstall.cmd from [a1f67aab14] to [5e61c36351].
1 | 1 2 3 4 5 6 7 8 | - | @set installFolder=Do_not_Change |
︙ | |||
42 43 44 45 46 47 48 | 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | - + | echo. echo. setlocal enableextensions cd /d "%~dp0" if NOT "%cd%" == "%TEMP%" ( |
︙ | |||
106 107 108 109 110 111 112 | 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 | - + + + + + - + - + - + + + | set INPUT= :uninstallPython if '%Pythonrun%' EQU 'Y' ( echo Skipping uninstall of Python goto uninstallST2 ) |
︙ |