Take the 2-minute tour ×

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?

share|improve this question
add comment

1 Answer

up vote 5 down vote accepted

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
share|improve this answer
add comment

Your Answer


