kpozin
kpozin

Reputation: 26969

Making shortcuts run minimized in NSIS

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?

Upvotes: 3

Views: 1606

Answers (1)

Kyle Gagnet
Kyle Gagnet

Reputation: 2314

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

Upvotes: 6

Related Questions