Archive: Create Full-Screen Shortcut


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!


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.


Heh, I really don't know what a PIF is, other than it's name :)


It's the file type for shortcuts to DOS applications. That's where the Full Screen setting is saved.


The IShellLinkDataList interface should be able to do this


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?


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.


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.