Andromo - Start Making Apps - Free Signup



New Forum Software

If you're here, you've found the new home for our forums. There will be some bugs to iron out, so thanks for your patience...
See more
See less

Add Shortcut to Start Menu

  • Filter
  • Time
  • Show
Clear All
new posts

  • Add Shortcut to Start Menu

    I'll sure there is an example somewhere but I could not find it. What I want to do in Visual Patch 2.0 is simply add shortcut to a new readme in the Start Menu. I would also like to delete on from the previous install.

    This is what I have in the Post Patch Actions

    result = String.Concat(Shell.GetFolder(SHF_STARTUP), "\\rFactor");
    Shell.CreateShortcut(result, "rFactor Readme", "%AppFolder%\\Readme.chm", "", "", "", 0, SW_SHOWNORMAL, nil, "");
    result = String.Concat(Shell.GetFolder(SHF_STARTUP), "\\rFactor");
    Shell.DeleteShortcut(result, "Readme.txt");

  • #2
    OK looks like my mistake was think SHF_STARTUP was SHF_STARTMENUPROGRAMS
    So the below script DOES work :yes