Add Shortcut to Start Menu

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • rFactor
    Forum Member
    • Oct 2005
    • 2

    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");
  • rFactor
    Forum Member
    • Oct 2005
    • 2

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

    Comment

    Working...
    X