tags:

views:

297

answers:

1

In Windows, one can edit a shortcut's properties and choose whether it should start the target program's window normally, minimized, or maximized.

I'm creating an installer in NSIS, and there are some batch files to which I would like to create shortcuts and have them start minimized. Does anyone what parameters to include in CreateShortcut to accomplish this?

+3  A: 

The following is a very basic example of a shortcut that starts the target minimized. The empty strings are for additional parameters that are neglected in this example. For more information, see the reference

CreateShortCut "MyShortcut.lnk" "MyProgram.exe" "" "" "" SW_SHOWMINIMIZED
Kyle Gagnet