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

How to pass argument to Makefile from command line?

You probably shouldn’t do this; you’re breaking the basic pattern of how Make works. But here it is: action: @echo action $(filter-out [email protected],$(MAKECMDGOALS)) %: # thanks to chakrit @: # thanks to William Pursell EDIT: To explain the first command, $(MAKECMDGOALS) is the list of “targets” spelled out on the command line, e.g. “action value1 … Read more

Command prompt won’t change directory to another drive

As @nasreddine answered or you can use /d cd /d d:\Docs\Java For more help on the cd command use: C:\Documents and Settings\kenny>help cd Displays the name of or changes the current directory. CHDIR [/D] [drive:][path] CHDIR [..] CD [/D] [drive:][path] CD [..] .. Specifies that you want to change to the parent directory. Type CD … Read more