Andromo - Start Making Apps - Free Signup

Announcement

Collapse
No announcement yet.

Add Shortcut to Start Menu

Collapse
X
  • 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

    Comment

    Working...
    X