Lucky75
12th July 2007 17:27 UTC
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
12th July 2007 19:34 UTC
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.
Lucky75
12th July 2007 20:07 UTC
Heh, I really don't know what a PIF is, other than it's name :)
kichik
12th July 2007 20:10 UTC
It's the file type for shortcuts to DOS applications. That's where the Full Screen setting is saved.
Anders
12th July 2007 20:12 UTC
The IShellLinkDataList interface should be able to do this
kichik
12th July 2007 20:20 UTC
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
13th July 2007 16:10 UTC
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
15th July 2007 19:12 UTC
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.