Consider the following code example:
ShortcutFolder = SessionVar.Expand("%StartProgramsFolderCommon%") .. "\\" .. SessionVar.Expand("%AppShortcutFolderName%");
Shell.CreateShortcut(ShortcutFolder, "My App", AppFolder.."\\myapp.exe", "", AppFolder, "", 0, SW_SHOWNORMAL, nil, "");
Shell.CreateShortcut(ShortcutFolder, "Uninstall My App", AppFolder.."\\myappuninstaller.exe", "/BTUNINST", AppFolder, "", 1, SW_SHOWNORMAL, nil, "");
DocShortcutFolder = ShortcutFolder.."\\Documentation";
Shell.CreateShortcut(DocShortcutFolder, "Doc1", AppFolder.."\\doc1.chm", "", AppFolder, "", 0, SW_SHOWNORMAL, nil, "");
Shell.CreateShortcut(DocShortcutFolder, "Doc2", AppFolder.."\\doc2.chm", "", AppFolder, "", 0, SW_SHOWNORMAL, nil, "");
Shell.CreateShortcut(DocShortcutFolder, "Doc3", AppFolder.."\\doc3.chm", "", AppFolder, "", 0, SW_SHOWNORMAL, nil, "");
On windows 7, this creates a Start Menu folder of:
My Product
|- My App
|- Uninstall My App
| Documentation
| - Doc 1
| - Doc 2
| - Doc 3
When installed on Windows 10, you get:
My Product
|- My App
| - Doc 1
| - Doc 2
| - Doc 3
Questions:
1.) Can I create sub-folders for the Windows 10 Start Menu like I did for Windows 7?
2.) Why does Windows 10 auto-hide my uninstall from the Start Menu? Does it scan for "Uninstall" in the string and auto-hide those from the Start Menu? Can I force it to appear?
Thanks!
ShortcutFolder = SessionVar.Expand("%StartProgramsFolderCommon%") .. "\\" .. SessionVar.Expand("%AppShortcutFolderName%");
Shell.CreateShortcut(ShortcutFolder, "My App", AppFolder.."\\myapp.exe", "", AppFolder, "", 0, SW_SHOWNORMAL, nil, "");
Shell.CreateShortcut(ShortcutFolder, "Uninstall My App", AppFolder.."\\myappuninstaller.exe", "/BTUNINST", AppFolder, "", 1, SW_SHOWNORMAL, nil, "");
DocShortcutFolder = ShortcutFolder.."\\Documentation";
Shell.CreateShortcut(DocShortcutFolder, "Doc1", AppFolder.."\\doc1.chm", "", AppFolder, "", 0, SW_SHOWNORMAL, nil, "");
Shell.CreateShortcut(DocShortcutFolder, "Doc2", AppFolder.."\\doc2.chm", "", AppFolder, "", 0, SW_SHOWNORMAL, nil, "");
Shell.CreateShortcut(DocShortcutFolder, "Doc3", AppFolder.."\\doc3.chm", "", AppFolder, "", 0, SW_SHOWNORMAL, nil, "");
On windows 7, this creates a Start Menu folder of:
My Product
|- My App
|- Uninstall My App
| Documentation
| - Doc 1
| - Doc 2
| - Doc 3
When installed on Windows 10, you get:
My Product
|- My App
| - Doc 1
| - Doc 2
| - Doc 3
Questions:
1.) Can I create sub-folders for the Windows 10 Start Menu like I did for Windows 7?
2.) Why does Windows 10 auto-hide my uninstall from the Start Menu? Does it scan for "Uninstall" in the string and auto-hide those from the Start Menu? Can I force it to appear?
Thanks!
Comment