Category Archives: Microsoft Windows

Timestamp URLs for SHA1 SHA256 Code Sign 2021

Here are timestamp URLs I use when signing Windows PE files: SHA1 Timestamp Server: http://timestamp.digicert.comhttp://timestamp.digicert.com * The above timestamp works also on Windows XP and Windows 7 * RFC timestamp servers are not supported on Windows XP and Windows 7 SHA256 Timestamp Server: http://rfc3161timestamp.globalsign.com/advancedhttp://rfc3161timestamp.globalsign.com/advanced Following ones are not working anymore: http://timestamp.globalsign.com/scripts/timestamp.dll http://timestamp.globalsign.com/?signature=sha2http://timestamp.globalsign.com/scripts/timestamp.dll http://timestamp.globalsign.com/?signature=sha2 Other timestamp […]

Add New Path to Delphi 10.4 Sydney on Library Path

Library Path on Delphi 10.4 Sydney is found here: Tools->Options->Language->Delphi Options->LibraryTools->Options->Language->Delphi Options->Library Here is an example of “Library path” field: $(BDSLIB)\$(Platform)\release;$(BDSUSERDIR)\Imports;$(BDS)\Imports;$(BDSCOMMONDIR)\Dcp;$(BDS)\include$(BDSLIB)\$(Platform)\release;$(BDSUSERDIR)\Imports;$(BDS)\Imports;$(BDSCOMMONDIR)\Dcp;$(BDS)\include If you want to add a new library path, e.g C:\Almadev\StyleControls append it: $(BDSLIB)\$(Platform)\release;$(BDSUSERDIR)\Imports;$(BDS)\Imports;$(BDSCOMMONDIR)\Dcp;$(BDS)\include;C:\Almadev\StyleControls$(BDSLIB)\$(Platform)\release;$(BDSUSERDIR)\Imports;$(BDS)\Imports;$(BDSCOMMONDIR)\Dcp;$(BDS)\include;C:\Almadev\StyleControls Make sure to do same for 32-bit and 64-bit platform.

AMD Radeon 7400 Drivers for Windows 10

I installed Windows 10 as dual boot using Apple Boot Camp in my MacBook Pro 2011, initially there were problems with the drivers for the graphics card AMD Radeon 7400 series, so if you’re looking for AMD Radeon 7500 series drivers for Windows 10 just click here: https://www2.ati.com/drivers/15.201.1301-150819a-188578c-whql.zip The drivers work for AMD Radeon found […]

How to pass custom command-line parameters in InnoSetup

You can read custom parameters with the {param} constant, example: if ExpandConstant(‘{param:Mode|DefaultMode}’) = ‘DefaultMode’ then begin Log(‘Installing for default mode’); end else begin Log(‘Installing for different mode’); end;if ExpandConstant(‘{param:Mode|DefaultMode}’) = ‘DefaultMode’ then begin Log(‘Installing for default mode’); end else begin Log(‘Installing for different mode’); end; It works with syntax like /Name=Value. And can also be […]

Programmatically create desktop icon with InnoSetup

Inside “ssPostInstall” of CurStepChanged() add this code: //create user desktop shortcut ShortcutPath := ExpandConstant(‘{userdesktop}’) + ‘\YourApp.lnk’; CreateShellLink(ShortcutPath, ‘YourApp’, ExpandConstant(‘{app}\YourApp.exe’), ”, ExpandConstant(‘{app}’), ”, 0, SW_SHOWNORMAL);//create user desktop shortcut ShortcutPath := ExpandConstant(‘{userdesktop}’) + ‘\YourApp.lnk’; CreateShellLink(ShortcutPath, ‘YourApp’, ExpandConstant(‘{app}\YourApp.exe’), ”, ExpandConstant(‘{app}’), ”, 0, SW_SHOWNORMAL); If you want to disable desktop icon via command-line, use this: if ExpandConstant(‘{param:skipdesktopicon|false}’) <> ‘false’ […]

Detect VMWare Virtual Machine

How to detect VMWare Virtual Machine via WMIC: wmic bios get serialnumber /format:listwmic bios get serialnumber /format:list The output is like this: SerialNumber=VMware-56 4d 95 b1 5a fa 05 0f-28 d0 2d d4 a3 fe e2 5dSerialNumber=VMware-56 4d 95 b1 5a fa 05 0f-28 d0 2d d4 a3 fe e2 5d Alternatively you can query […]

Detect Microsoft Virtual PC Virtual Machine

How to detect Virtual PC Virtual Machine via WMIC: wmic baseboard get manufacturer, product /format:listwmic baseboard get manufacturer, product /format:list The output is like this: Manufacturer=Microsoft Corporation Product=Virtual MachineManufacturer=Microsoft Corporation Product=Virtual Machine Another way is to query “csproduct” like this: wmic csproduct get vendor, name /format:listwmic csproduct get vendor, name /format:list The output is like […]

InnoSetup error the servicemanager is not available

This error happens with InnoSetup v6+ It is related to functions used to manage Windows services, such as: function OpenServiceManager() : HANDLE; begin if UsingWinNT() = true then begin Result := OpenSCManager(”,”,SC_MANAGER_ALL_ACCESS); if Result = 0 then MsgBox(‘the servicemanager is not available’, mbError, MB_OK) end else begin MsgBox(‘only nt based systems support services’, mbError, MB_OK) […]