Skip to content

Instantly share code, notes, and snippets.

View vasily-v-ryabov's full-sized avatar

Vasily Ryabov vasily-v-ryabov

View GitHub Profile
@vasily-v-ryabov
vasily-v-ryabov / uninstall_7zip.py
Last active May 31, 2021 08:01
Uninstall script for 7zip 9.20 (64-bit) - this is just an example
# Requirements:
# - Win7 or Win8.1 x64, 64-bit Python
# - pywinauto 0.5.2+
# - UAC is fully disabled
from __future__ import print_function
import pywinauto
pywinauto.Application().Start(r'explorer.exe')
explorer = pywinauto.Application().Connect(path='explorer.exe')
@vasily-v-ryabov
vasily-v-ryabov / install_7zip.py
Last active April 24, 2018 05:49
Install script for 7zip 9.20 (64-bit)
# Requirements:
# - Win7 or Win8.1 x64, 64-bit Python
# - pywinauto 0.5.2+
# - 7z920-x64.msi is in the same folder as the script
# - UAC is fully disabled
from __future__ import print_function
import sys, os
os.chdir(os.path.join(os.getcwd(), os.path.dirname(sys.argv[0])))
import pywinauto
@vasily-v-ryabov
vasily-v-ryabov / test_DragDrop.py
Last active September 28, 2019 17:29
pywinauto example for drag-n-drop
# requirements: Python 2.7 or 3.4, pyWin32, pywinauto 0.5.0+
# download the repo: https://github.com/pywinauto/pywinauto
# place this script to repo root folder
import sys, os
os.chdir(os.path.join(os.getcwd(), os.path.dirname(sys.argv[0]))) # running at repo root folder
import pywinauto
mfc_samples_folder = os.path.join(
os.path.dirname(sys.argv[0]), r"apps\MFC_samples")