module win_installer.win_extract
¶
Short summary¶
module pymyinstall.win_installer.win_extract
Helpers, inspired from utils.py
Functions¶
function |
truncated documentation |
---|---|
clean all files follwing a specific pattern |
|
Extract .zip, .exe (considered to be a zip archive) or .tar.gz archive to a temporary directory (if targetdir is None). … |
|
Copy .exe to targetdir |
|
Extract .exe archive to a temporary directory (if targetdir is None). Return the temporary directory path |
|
Extract .msi installer to a temporary directory (if targetdir is None). Return the temporary directory path |
|
Return program absolute path if installed in PATH Otherwise, return None |
Documentation¶
Helpers, inspired from utils.py
- pymyinstall.win_installer.win_extract.clean_msi(folder, pattern, verbose=False, fLOG=<built-in function print>)¶
clean all files follwing a specific pattern
- Parameters:
folder – folder
pattern – files to remove
verbose – display more information
fLOG – logging function
- Returns:
removed files (as operation)
- pymyinstall.win_installer.win_extract.extract_archive(fname, targetdir=None, verbose=False, fLOG=<built-in function print>)¶
Extract .zip, .exe (considered to be a zip archive) or .tar.gz archive to a temporary directory (if targetdir is None). Return the temporary directory path
- Parameters:
fname – zip file or exe file
targetdir – where to install
verbose – verbose
fLOG – logging function
- Returns:
targetdir
- pymyinstall.win_installer.win_extract.extract_copy(fname, targetdir=None, verbose=False, fLOG=<built-in function print>, szip=None)¶
Copy .exe to targetdir
- Parameters:
fname – local installer (exe)
targetdir – where to install
verbose – verbose
fLOG – logging function
szip – unused
- Returns:
targetdir
- pymyinstall.win_installer.win_extract.extract_exe(fname, targetdir=None, verbose=False, fLOG=<built-in function print>, szip='7z.exe')¶
Extract .exe archive to a temporary directory (if targetdir is None). Return the temporary directory path
- Parameters:
fname – local installer (exe)
targetdir – where to install
verbose – verbose
szip – path to 7z.exe
fLOG – logging function
- Returns:
targetdir
- pymyinstall.win_installer.win_extract.extract_msi(fname, targetdir=None, verbose=False, fLOG=<built-in function print>)¶
Extract .msi installer to a temporary directory (if targetdir is None). Return the temporary directory path
- Parameters:
fname – local installer (exe)
targetdir – where to install
verbose – verbose
fLOG – logging function
- Returns:
targetdir
- pymyinstall.win_installer.win_extract.is_program_installed(basename)¶
Return program absolute path if installed in PATH Otherwise, return None
- Parameters:
basename – base name
- Returns:
boolean