Category Archives: Microsoft Windows

Replace characters on filenames of all files in a folder (Windows)

First run PowerShell and set the current directoy to the folder where are the files: cd C:\path\to\foldercd C:\path\to\folder To replace a certain character on filenames of all files in a folder, type: Get-ChildItem -name | ForEach-Object { Move-Item $_ $_.replace(" ", "_") }Get-ChildItem -name | ForEach-Object { Move-Item $_ $_.replace(" ", "_") } The above […]

Firefox Addon to Capture a Screenshot of the Webpage

Do you need to capture the whole webpage or just a portion of it with Mozilla Firefox? Here is a super fast, easy to use and awesome free addon for Firefox that can capture a screenshot of the whole webpage, and save the screenshot image in your desktop by default: Easy Screenshot Easy Screenshot is […]

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