diff options
author | Steve Dower <steve.dower@microsoft.com> | 2015-03-25 04:25:16 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2015-03-25 04:25:16 (GMT) |
commit | 102f72cf1a414f507951cf4988d51cffb8f4e2b4 (patch) | |
tree | 4836b089a9dd96f91044ae82d76030b95e39c287 /Tools/msi/testrelease.bat | |
parent | fef9c1b368ce0a59772378798d203efc5f836413 (diff) | |
download | cpython-102f72cf1a414f507951cf4988d51cffb8f4e2b4.zip cpython-102f72cf1a414f507951cf4988d51cffb8f4e2b4.tar.gz cpython-102f72cf1a414f507951cf4988d51cffb8f4e2b4.tar.bz2 |
Adds pydoc shortcut, Edit with IDLE menu, moves redist folder into externals and fixes test script.
Diffstat (limited to 'Tools/msi/testrelease.bat')
-rw-r--r-- | Tools/msi/testrelease.bat | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/Tools/msi/testrelease.bat b/Tools/msi/testrelease.bat index 5c9e015..aee5e2f 100644 --- a/Tools/msi/testrelease.bat +++ b/Tools/msi/testrelease.bat @@ -59,9 +59,26 @@ exit /B 0 @echo Printing version "%~2\Python\python.exe" -c "import sys; print(sys.version)" > "%~2\version.txt" 2>&1 ) + +@if not errorlevel 1 ( + @echo Capturing Start Menu + @dir /s/b "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" | findstr /ic:"python" > "%~2\startmenu.txt" 2>&1 + @dir /s/b "%APPDATA%\Microsoft\Windows\Start Menu\Programs" | findstr /ic:"python" >> "%~2\startmenu.txt" 2>&1 + + @echo Capturing registry + @for /F "usebackq" %%f in (`reg query HKCR /s /f python /k`) do @( + echo %%f >> "%~2\hkcr.txt" + reg query "%%f" /s >> "%~2\hkcr.txt" 2>&1 + ) + @reg query HKCU\Software\Python /s > "%~2\hkcu.txt" 2>&1 + @reg query HKLM\Software\Python /reg:32 /s > "%~2\hklm.txt" 2>&1 + @reg query HKLM\Software\Python /reg:64 /s >> "%~2\hklm.txt" 2>&1 + cmd /k exit 0 +) + @if not errorlevel 1 ( @echo Installing package - "%~2\Python\python.exe" -m pip install azure > "%~2\pip.txt" 2>&1 + "%~2\Python\python.exe" -m pip install "azure<0.10" > "%~2\pip.txt" 2>&1 @if not errorlevel 1 ( "%~2\Python\python.exe" -m pip uninstall -y azure python-dateutil six >> "%~2\pip.txt" 2>&1 ) @@ -75,9 +92,6 @@ exit /B 0 @set EXITCODE=%ERRORLEVEL% -@for /d %%f in ("%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Python*") do @dir "%%~ff\*.lnk" /s/b > "%~2\startmenu.txt" 2>&1 -@for /d %%f in ("%APPDATA%\Microsoft\Windows\Start Menu\Programs\Python*") do @dir "%%~ff\*.lnk" /s/b >> "%~2\startmenu.txt" 2>&1 - @echo Result was %EXITCODE% @echo Removing %1 "%~1" /passive /uninstall /log "%~2\uninstall\log.txt" |