auto-install: Automatically unpack archives and silently run installers in Downloads folder

Post your working scripts, libraries and tools for AHK v1.1 and older
zotune
Posts: 85
Joined: 17 Nov 2014, 17:57

auto-install: Automatically unpack archives and silently run installers in Downloads folder

Post by zotune » 23 Jan 2024, 16:04

Features:
- Listen for archives and installers to appear in Downloads folder (as well as any subfolders)
- Auto-unpack .zip, .rar, .7z and .iso archives
- Auto-run .msi installers silently (will also uninstall first)
- Auto-detect installer type and run .exe installers silently (currently supports NSIS, Inno Setup, InstallAware and InstallShield installers)

Use-cases:
- Automatically unpack and install hardware drivers or software you download with your browser, e.g. Google Chrome (notably installers that are not yet available for package managers such as WinGet or Ninite)
- Save all your drivers/software in a folder, and when reformatting Windows, copy/move them to Downloads folder to automatically unpack and install them all.

Uncompiled script download and up-to-date instructions here:
auto-install github page

e.g. Bitwig Studio 5.1.2.msi downloaded from the Bitwig download page using Google Chrome:
image.png
image.png (12.08 KiB) Viewed 802 times

image.png
image.png (78.84 KiB) Viewed 802 times
Credits:
WatchFolder() by just me
FileGetVersionInfo_AW() by SKAN
Stdout() by CyL0N
SetTaskbarProgress() by lexikos (updated by gwarble)

Return to “Scripts and Functions (v1)”