View Full Version : Add Shortcut to Start Menu

10-24-2005, 04:10 PM
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");

10-24-2005, 05:11 PM
OK looks like my mistake was think SHF_STARTUP was SHF_STARTMENUPROGRAMS :huh
So the below script DOES work :yes