Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2006
    Posts
    1

    Shell.CreateShortcut - Icon fails to show

    Hi,

    Shell.CreateShortcut works fine and creates the shortcut. But the shortcut shows no icon. The icon index is correct. In fact if I right click on the icon and select Change Icon you can see the icon there. It seems to need an Apply.

    PHP Code:
    Shell.CreateShortcut(Shell.GetFolder(SHF_DESKTOP), "My App"SessionVar.Expand("\"%AppFolder%\\mypp.exe\""), ""SessionVar.Expand("%AppFolder%"), SessionVar.Expand("\"%AppFolder%\\myapp.exe\""), 0SW_SHOWNORMALnil""); 
    I have tried specifying the target in the icon file path. Icon index is left as zero as I want the first icon in the file. Why is the icon not showing on the shortcut - it's as if I need to call another command to do some kind of refresh or something.

    Same parameters work in SuF6.0 with the old Create Shortcut action.

    Any ideas?

  2. #2
    Join Date
    Mar 2004
    Location
    Toronto, ON CANADA
    Posts
    696
    You may have a problem in your syntax, and you may have missed an 'a' in there. Try this instead:

    Code:
    Shell.CreateShortcut(Shell.GetFolder(SHF_DESKTOP), "My App", SessionVar.Expand("%AppFolder%\\myapp.exe"), "", SessionVar.Expand("%AppFolder%"), SessionVar.Expand("%AppFolder%\\myapp.exe"), 0, SW_SHOWNORMAL, nil, "");

Similar Threads

  1. Show Program after Clicking/Double Clicking Tray Icon
    By d3m0n1x in forum AutoPlay Media Studio 6.0
    Replies: 15
    Last Post: 05-10-2006, 04:48 PM
  2. icon on completed project?
    By patrick6 in forum AutoPlay Media Studio 5.0
    Replies: 3
    Last Post: 01-11-2005, 10:57 PM
  3. Packages and If Statements
    By Medlir in forum Setup Factory 6.0
    Replies: 4
    Last Post: 05-09-2002, 03:51 PM
  4. icon doesn't show in taskbar or titlebar
    By camelot in forum AutoPlay Menu Studio 3.0
    Replies: 2
    Last Post: 07-19-2001, 10:04 PM
  5. how do i show text with an Icon?
    By Doogieman in forum AutoPlay Menu Studio 3.0
    Replies: 6
    Last Post: 05-28-2001, 01:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts