Skip to content

Instantly share code, notes, and snippets.

@ohsyln
ohsyln / fix_installshield_uninstallation.txt
Created August 11, 2022 08:51
Fix InstallShield uninstallation issue
InstallShield msi by default checks these registry entries to identify previous installations.
Manually deleting these entries tricks the msi installer into thinking it is a fresh installation,
allowing it to carry on the installation procedure.
Fixes issue when:
- Installation is stuck in Modify/Repair/Remove, and neither option works
Solution - Registry keys to be deleted manually:
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products
@ohsyln
ohsyln / prevent_screen_lock.bat
Last active September 12, 2022 06:50
Prevent screen lock when idle due to company policy (Win)
REM Sends a keystroke at fixed intervals to prevent screen lock
REM Bypasses most group policies that prevent execution of scripts in general
REM As long as you can run "cmd.exe" and "mshta.exe", this should work
REM 1) Open cmd.exe
REM 2) Copy-paste the command in cmd.exe and press enter
for /L %N in () do mshta vbscript.Execute("CreateObject(""wscript.shell"").sendkeys(""{SCROLLLOCK 2}"")")(close.window) && ping localhost -n 119 1>nul