Community Forums
Results 1 to 2 of 2

Thread: InstallScript: creating shortcut to a folder

  1. #1
    Join Date
    Jul 2011
    Posts
    4

    InstallScript: creating shortcut to a folder

    I want to create a shortcut to a folder that gets installed. I've searched and done what was suggested but still no shortcut.
    I have a directory named "Reports" in TARGETDIR.
    I want to create a shortcut to "Reports" in a folder named "MyApp" on the desktop.
    This is what I tried. It creates a shortcut, but the shortcut is a file type shortcut and not a folder shortcut.
    szFolder = TARGETDIR ^ "Reports";

    LongPathToQuote(szFolder,TRUE);

    AddFolderIcon(
    FOLDER_DESKTOP ^ "MyApp",
    "Reports Shortcut",
    szFolder,
    "",
    "",
    0,
    "",
    NULL);

  2. #2
    Join Date
    Jan 2009
    Location
    Bangalore, India
    Posts
    31
    Not related to IA 2011. You have chosen the wrong forum.
    Sudeep H S
    Senior Developer, InstallAnywhere
    Flexera Software.

Posting Permissions

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