Is it possible to accept custom command line parameters with Inno Setup

With InnoSetup 5.5.5 (and perhaps other versions), just pass whatever you want as a parameter, prefixed by a / c:\> myAppInstaller.exe /foo=wiggle and in your myApp.iss: [Setup] AppName = {param:foo|waggle} The |waggle provides a default value if no parameter matches. Inno setup is not case sensitive. This is a particularly nice way to handle command … Read more

wmic error (invalid XSL format) in windows7

It’s a bug in the wmic command. It’s been suggested to copy XSL files into the %WINDIR%\system32 (or equivalent if 64 bit.) However, the command below works just as well without the need to copy files: wmic process get ProcessId,Description,CommandLine,ExecutablePath,ParentProcessId /format:”%WINDIR%\System32\wbem\en-us\csv” Of course, the “en-us” will be different for different locales. If you want to … Read more

Get certificate fingerprint of HTTPS server from command line?

The page at http://wiki.debuntu.org/wiki/OpenSSL#Retrieving_certificate_informations lists the command lines for that (and printing out the relevant information). From that page and some of the man pages, it seems like what you want is (for bash): openssl s_client -connect <host>:<port> < /dev/null 2>/dev/null | openssl x509 -fingerprint -noout -in /dev/stdin If you want the whole certificate, leave … Read more