Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2003
    Location
    Toronto ON
    Posts
    29

    CreateShortcut bug when Icon is in an Exe different from the Target?

    I am running the following statement to create a shortcut:

    Shell.CreateShortcut(_DesktopFolder, "DONATION", SessionVar.Expand("%AppFolder%\\RunDonation.exe"),
    "", SessionVar.Expand("%AppFolder%"), SessionVar.Expand("%AppFolder%\\donation.exe"), 0, SW_SHOWNORMAL, nil,
    "My Comment")

    The reason I'm doing this is that RunDonation.exe, the Target, is a small runner app that I am code signing, which runs the real app donation.exe. (For technical reasons, I can't code sign donation.exe.) But the icon is in donation.exe.

    What happens when I run this is that the "DONATION" shortcut is created, but the target fo that shortcut is donation.exe, not RunDonation.exe.

    This seems like a bug. Any way to work around it?

    Thanks.
    Dan Cooperstock info@Software4Nonprofits.com
    416-423-7722

  2. #2
    Join Date
    Mar 2003
    Location
    Toronto ON
    Posts
    29
    I haven't resolved the bug per se, but I did get around it by creating the shortcut from the normal UI, in the Shortcut tab of the properties window for the desired target. It was basically the same setup there (icon in a different executable from the target), and it worked fine.

    The reason I was doing the shortcut in code was that I only needed the target to be RunDonation.exe in Windows Vista, 2003 or Higher, and the shortcut could still be my regular executable, donation.exe, for Windows XP and 2000. In fact, RunDonation.exe is only installed on Vista etc. This arrangement did mean that I still had to create the shortcut for donation.exe in code (if it was Windows XP or 2000), but there was nothing weird about that shortcut creation, so it worked fine.
    Dan Cooperstock info@Software4Nonprofits.com
    416-423-7722

Similar Threads

  1. custom icon for installter exe
    By jlsf2 in forum TrueUpdate 2.0
    Replies: 4
    Last Post: 05-22-2007, 10:09 AM
  2. TrueUpdate 2.0 Update (v2.0.6.0) Released
    By Brett in forum TrueUpdate 2.0
    Replies: 0
    Last Post: 10-31-2006, 01:10 PM
  3. AutoPlay Media Studio 4.0.0.3 Released
    By Brett in forum AutoPlay Media Studio 4.0
    Replies: 0
    Last Post: 12-11-2002, 08:39 AM
  4. Change Icon of exported EXE File?
    By Realmaker in forum AutoPlay Media Studio 4.0
    Replies: 2
    Last Post: 11-21-2002, 11:40 AM
  5. Setup exe icon
    By YIRMASTER in forum Setup Factory 6.0
    Replies: 3
    Last Post: 04-29-2002, 07:23 AM

Posting Permissions

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