Category Archives: Microsoft Windows

Determine Windows Version with InnoSetup

If you need to install a file on say XP or Vista and newser: [Files] Source: MyDllForVistaAndNewer.dll; Dest: {app}\MyDll.dll; MinVersion: 6.0 Source: MyDllForOldWindows.dll; Dest: {app}\MyDll.dll; OnlyBelowVersion: 6.0[Files] Source: MyDllForVistaAndNewer.dll; Dest: {app}\MyDll.dll; MinVersion: 6.0 Source: MyDllForOldWindows.dll; Dest: {app}\MyDll.dll; OnlyBelowVersion: 6.0 Here are some functions to use inside [Code]: function IsWindowsVersionOrNewer(Major, Minor: Integer): Boolean; var Version: TWindowsVersion; […]

Windows Registry Keys used to Get VC_Redist Version Installed

To check if VC_Redists are installed you can check these Windows registry keys: *** Tested on Windows Vista, 7, 8, 8.1 and Windows 10 (2004 Build) *** *** WARNING: On Windows XP the registry key is different *** To install X86 VC++ Redistributables in a Win64 OS: [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\DevDiv\vc\Servicing\14.0\RuntimeMinimum] "Install"=dword:00000001 "InstallerType"="MSI" "SP"=dword:00000000 "SPIndex"=dword:00000000 "SPName"="RTM" "Version"="14.20.27508" "UpdateVersion"="14.20.27508"[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\DevDiv\vc\Servicing\14.0\RuntimeMinimum] […]

Install VC_Redist 2015 Silently with InnoSetup

First, download latest VC Redist 2015-2019 installer from here: (Download Links) Visual Studio 2015, 2017 and 2019 In this example we will download x86: vc_redist.x86.exe Rename it to VC_redist_2015_2019_x86.exe and place it inside \Redist\ folder. In InnoSetup add this below [Files] section: ; VC++ redistributable runtime. Extracted only if needed, by checking if they are […]

InnoSetup Pass License Key as Custom Parameter

Place this code inside CurStepChanged() within ssPostInstall step: //allow usage of command-line parameter /LICENSEKEY=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX //and copy the key in a file license.key in installation folder if ExpandConstant(‘{param:licensekey|none}’) <> ‘none’ then begin SaveStringToFile(ExpandConstant(‘{app}’)+’\license.key’, ExpandConstant(‘{param:licensekey|none}’), False); end;//allow usage of command-line parameter /LICENSEKEY=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX //and copy the key in a file license.key in installation folder if ExpandConstant(‘{param:licensekey|none}’) <> ‘none’ […]

How to Disable Hibernation on Windows 10

Hibernation saves your open documents and programs on your hard-disk into the file C:\hiberfil.sys and then owers off the computer. The file C:\hiberfil.sys is a hidden and system-protected file that is approximately 75% of the total amount of RAM. The problem of hibernation is that it stores in the C:\hiberfil.sys important programs data (such as […]

Disable Windows Defender on Windows 10 via Regedit

Copy this text in a new text file: Windows Registry Editor Version 5.00   [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender] "DisableAntiSpyware"=dword:00000001   [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection] "DisableRealtimeMonitoring"=dword:00000001Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender] "DisableAntiSpyware"=dword:00000001 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection] "DisableRealtimeMonitoring"=dword:00000001 Rename the text file to disable-defender.reg Double-click the .reg file and reboot the computer. Now WIndows Defender will be disabled.

How to improve security of encrypted hard disks

To avoid your encrypted disk (Truecrypt, Veracrypt, Bitlocker, etc) from being decrypted your first rule should be to use a strong password, then you need to make sure an attacker cannot access data that was saved in the memory, else he can dump the decryption key that was stored in the memory and then remove […]

How to Allow USB Encryption with Bitlocker

If you get a Bitlocker group policy conflict when trying to protect a USB removable media with Bitlocker, then you may need to enable a specific option in Group Policy Editor. You need to enable “Allow Bitlocker without a compatible TPM” option:

api-ms-win-crt-runtime-l1-1-0.dll is missing

Can’t run a program because api-ms-win-crt-runtime-l1-1-0.dll is missing? If you are using Windows 7 64-bit, install this update: Windows6.1-KB2999226-x64.msu If you are using Windows 7 32-bit, install this update: Windows6.1-KB2999226-x86.msu Then run again your program, it should work.

How to Install and Configure Mitmproxy on Windows

Download and install Mitmproxy on your Windows machine via: https://mitmproxy.org/#mitmproxy Open and edit Firefox (or other browser) to use the Mitmproxy loopback as proxy: Open Windows Command Prompt (cmd.exe) and run Mitmproxy: cd "C:\Program Files (x86)\mitmproxy\bin" mitmdump.execd "C:\Program Files (x86)\mitmproxy\bin" mitmdump.exe Now you need to install the Mitmproxy CA certificate. Visit http://mitm.it, click on “Other” […]