简体   繁体   中英

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM