Category Archives: Microsoft Windows

InnoSetup Disable Select Destination Location

To disable InnoSetup “Select Destination Location” wizard page: Add this variable under [Setup] section: DisableDirPage=noDisableDirPage=no More information here: [Setup]: DisableDirPage

InnoSetup Disable Close of Applications

If you already handle the termination of your applications’s processes inside the CurStepChanged -> ssInstall then you may want to disable the display of the form “The following applications are using files that need to be updated by Setup”: To do so, just add this variable under [Setup] section: CloseApplications=noCloseApplications=no More information can be found […]

SignTool Error: Invalid option: /as

If you get this SignTool.exe error message: SignTool Error: Invalid option: /asSignTool Error: Invalid option: /as Make sure you use SignTool.exe from Windows SDK 8.1: Windows Software Development Kit (SDK) for Windows 8.1 It works also on Windows 7.

Digitally Sign a Kernel-Mode Driver

Use signtool.exe like this: 1) Sign driver with SHA1 certificate: signtool sign /ac "GlobalSign Root CA.crt" /f MyCertSHA1.pfx /p PASSWORD_HERE /t http://timestamp.globalsign.com/scripts/timestamp.dll driver.syssigntool sign /ac "GlobalSign Root CA.crt" /f MyCertSHA1.pfx /p PASSWORD_HERE /t http://timestamp.globalsign.com/scripts/timestamp.dll driver.sys 2) Sign driver with SHA-256 certificate: signtool sign /ac "GlobalSign Root CA.crt" /f MyCertSHA256.pfx /p PASSWORD_HERE /tr http://timestamp.globalsign.com/scripts/timestamp.dll /fd sha256 […]

Dual-Signing EXE File with SHA1 and SHA-256

First sign the app.exe file with the SHA1 certificate: signtool.exe sign /f MyCertSHA1.pfx /p <PFX_password> /t http://timestamp.comodoca.com /v app.exesigntool.exe sign /f MyCertSHA1.pfx /p <PFX_password> /t http://timestamp.comodoca.com /v app.exe Then you need to sign the app.exe file with the SHA-256 certificate: signtool.exe sign /f MyCertSHA256.pfx /p <PFX password> /fd sha256 /tr http://timestamp.comodoca.com/?td=sha256 /td sha256 /as /v […]

ISO Download Microsoft Windows 10 Anniversary Update

You can direct download the official (untouched) ISO file for Microsoft Windows 10 Anniversary Update (both 32-bit and 64-bit) from Microsoft website at the following link: Download Windows 10 Disc Image (ISO File) Under “Select edition” just select “Windows 10” and click on “Confirm”. The .ISO files are named respectively: Win10_1607_English_x32.iso Win10_1607_English_x64.iso

Disable /SILENT and /VERYSILENT uninstall in Inno Setup

Disable the option to silently uninstall your application: function InitializeUninstall(): Boolean; begin // Default to OK result := true;   // If it’s in silent mode, exit if UninstallSilent() then begin MsgBox(‘This setup doesn”t support silent uninstallation.’, mbInformation, MB_OK); result := false; end; end;function InitializeUninstall(): Boolean; begin // Default to OK result := true; // […]

Set directory permissions using Inno Setup

Add this in your Inno Setup script: [Dirs] Name: "{commonappdata}\YourProgramName\LogsFolder\"; Permissions: users-modify; Flags: uninsneveruninstall[Dirs] Name: "{commonappdata}\YourProgramName\LogsFolder\"; Permissions: users-modify; Flags: uninsneveruninstall The desired folder will have write and modify permissions for all users: Standard User Accounts will be able to modify/write to files inside that folder. Other useful links: http://www.jrsoftware.org/ishelp/topic_dirssection.htm http://www.jrsoftware.org/ishelp/index.php?topic=consts

Disable USB Autorun in Windows XP Vista 7 8

Create a .reg file with this content: Windows Registry Editor Version 5.00   [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer] "NoDriveTypeAutoRun"=dword:000000ff "NoAutorun"=dword:00000001Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer] "NoDriveTypeAutoRun"=dword:000000ff "NoAutorun"=dword:00000001 Save the file somewhere and run it. The reg file will disable autorun on all kinds of drives and for all users. This line disables Autorun on all kinds of drives: "NoDriveTypeAutoRun"=dword:000000ff"NoDriveTypeAutoRun"=dword:000000ff […]

Disable CTRL+ALT+DEL options on Microsoft Windows

You can disable all options in the CTRL+ALT+DEL menu on Microsoft Windows: So the above CTRL+ALT+DEL menu looks like this: To do that, you need to create a .reg file with this content: Windows Registry Editor Version 5.00   [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer] "NoLogOff"=dword:00000001   [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System] "DisableTaskMgr"=dword:00000001 "DisableLockWorkstation"=dword:00000001 "DisableChangePassword"=dword:00000001   [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System] "HideFastUserSwitching"=dword:00000001 "DisableLockWorkstation"=-Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer] […]