Skip to content
⌘ NSIS Forum Archive

Create Full-Screen Shortcut

8 posts

Lucky75#

Create Full-Screen Shortcut

Hi All,

I have an installer which creates a shortcut on my desktop to a batch file which then runs an executable.

How would I make it run in full screen mode (NOT maximized)? I know I can right click on the shortcut -> Properties->Full Screen, but I want to do it automatically from the installer.

Any suggesstions?

Thanks!
kichik#
I can't find any information about editing PIF files. If you can, we can help you make use of it with NSIS through a plug-in or the System plug-in.
kichik#
It's the file type for shortcuts to DOS applications. That's where the Full Screen setting is saved.
kichik#
Cool. Never seen that interface before. How do you get it though? I'm guessing you just QueryInterface it from the IShellLink instance, but where is that documented?
Lucky75#
All I do is call "CreateShortcut".

I don't really know what to do otherwise. The shortcut is in the start menu as a *.lnk file.
kichik#
I tried a modified version of ShellLink to modify this data block, but CopyDataBlock always returns E_FAIL and I don't want to create the block from scratch. The function in charge is SHFindDataBlock.