Old 12th July 2007, 17:27   #1
Lucky75
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!
Lucky75 is offline   Reply With Quote
Old 12th July 2007, 19:34   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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
kichik is offline   Reply With Quote
Old 12th July 2007, 20:07   #3
Lucky75
Junior Member
 
Join Date: Jul 2007
Posts: 15
Heh, I really don't know what a PIF is, other than it's name
Lucky75 is offline   Reply With Quote
Old 12th July 2007, 20:10   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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
kichik is offline   Reply With Quote
Old 12th July 2007, 20:12   #5
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,337
The IShellLinkDataList interface should be able to do this

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 12th July 2007, 20:20   #6
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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
kichik is offline   Reply With Quote
Old 13th July 2007, 16:10   #7
Lucky75
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.
Lucky75 is offline   Reply With Quote
Old 15th July 2007, 19:12   #8
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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.
Attached Files
File Type: zip shelllink.zip (8.9 KB, 388 views)

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump