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");
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");
Comment