![]() |
#1 |
Junior Member
Join Date: Jul 2007
Posts: 15
|
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! |
![]() |
![]() |
![]() |
#2 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
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.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Jul 2007
Posts: 15
|
Heh, I really don't know what a PIF is, other than it's name
![]() |
![]() |
![]() |
![]() |
#4 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
It's the file type for shortcuts to DOS applications. That's where the Full Screen setting is saved.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
#5 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,337
|
The IShellLinkDataList interface should be able to do this
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#6 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
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?
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
#7 |
Junior Member
Join Date: Jul 2007
Posts: 15
|
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. |
![]() |
![]() |
![]() |
#8 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
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.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|