add start menu desktop shortcuts перевод

create shortcut — sukurti šaukinį statusas T sritis informatika apibrėžtis Komanda ↑šaukiniui sukurti. Jei iš konteksto aišku, kieno šaukinį sukurti ir kur jį įrašyti, tai jis sukuriamas iš karto. Priešingu atveju iškviečiamas šaukinio kūrimo ↑vediklis, kurio… … Enciklopedinis kompiuterijos žodynas

Shortcut model — An important question in statistical mechanics is the dependence of model behaviour on the dimension of the system. The shortcut modelcite journal|author=Shanker, O.|year=2007|title=Graph Zeta Function and Dimension of Complex… … Wikipedia

shortcut — In Microsoft Windows, a link to an object such as a file, a folder, a Web page, or an application. You can create an unlimited number of shortcuts, and you can place them on the Desktop, on the Start menu, or in a particular folder … Dictionary of networking

Keyboard shortcut — For Wikipedia keyboard shortcuts, see Wikipedia:Keyboard shortcuts. For a list of keyboard shortcuts, see Table of keyboard shortcuts. Firefox 3.0 menu with shortcuts highlighted with green and mnemonics highlighted with yellow. In computing, a… … Wikipedia

Environment variable — Environment variables are a set of dynamic named values that can affect the way running processes will behave on a computer. They can be sa >Wikipedia

Microsoft PowerToys — is a set of programs prov >Wikipedia

Windows Search — (formerly known as Windows Desktop Search or WDS on Windows XP and Windows Server 2003) is an indexed desktop search platform released by Microsoft for the Windows operating system.[citation needed] Windows Search for Windows Vista, Windows 7,… … Wikipedia

YouOS — es una aplicación web escrita en lenguaje JavaScript que simula un sistema operativo. Funciona en casi cualquier navegador y permite realizar tareas como editar texto, leer correo, jugar, chatear, subir y administrar archivos, entre otras.… … Wikipedia Español

sukurti šaukinį — statusas T sritis informatika apibrėžtis Komanda ↑šaukiniui sukurti. Jei iš konteksto aišku, kieno šaukinį sukurti ir kur jį įrašyti, tai jis sukuriamas iš karto. Priešingu atveju iškviečiamas šaukinio kūrimo ↑vediklis, kurio languose reikia… … Enciklopedinis kompiuterijos žodynas

Wikipedia:Public domain status of official government works — Shortcut: WP:PDOMG The public domain status of official government works is sometimes difficult to determine, but keeps coming up on Wikipedia again and again. There are some easy cases: works of the United States federal government, for example … Wikipedia

Wikipedia:Articles for creation — Shortcut: WP:AFC For the WikiProject, see Wikipedia:WikiProject Articles for creation. Welcome to Wikipedia s page for Articles for Creation. If you do not have a Wikipedia user account but have an >Wikipedia

I am building a custom installer. How can I create a shortcut to an executable in the start menu? This is what I’ve come up with so far:

I’m targeting Windows 7.

3 Answers 3

Using the Windows Script Host (make sure to add a reference to the Windows Script Host Object Model, under References > COM tab):

By MSI setup, you can easily create Start Menu Shortcut for your application. But when it comes to custom installer setup, you need to write custom code to create All Programs shortcut. In C#, you can create shortcut using Windows Script Host library.

Note: To use Windows Script Host library, you need to add a reference under References > COM tab > Windows Script Host Object Model.

Create shortcut only for Current User:

Create Shortcut for All Users:

You can get common profile path for All Users by using API function SHGetSpecialFolderPath.

This is pretty much the same as this question: Create shortcut on desktop C#.

To copy from that answer, you’ll need to create the shortcut file yourself.

This code is untested, of course, but it was accepted on that other question and it looks right.

I see another answer on that question that lists how to do it with the Windows API and some COM interop, but I’d be tempted to shy away from that and just use the above code if it works. It’s more personal preference than anything, and I’d normally be all for using a pre-established API for this, but when the solution is this simple I’m just not sure how worth it that option really is. But for good measure, I believe this code should work. Again, of course, it’s totally untested. And especially here where you’re playing with things like this, make sure you understand each line before you execute it. I’d hate to see you mess up something on your system because of a blind following to code I posted.

You will, of course, also need a reference to the «Windows Script Host Object Model,» which can be found under «Add a Reference» then «COM.»

I’ve noticed that Steam gives me the option of creating a desktop shortcut and start menu items at the end of an installation. I always say no thanks to both because I like starting my games from Steam. But recently I’ve grown fond of just pressing the windows key and writing the name of the application I want to run, so I’d like to add start menu items to my Steam games. But how do I do that after the game is already installed? I can only find an option for creating a desktop shortcut, which is not what I’m after.

4 Answers 4

From your Steam library, right click on a game and select «Create Desktop Shortcut.»

You can then drag the shortcut onto your Start Menu. If you just drop it here, it will become «pinned» to the Start Menu, and you can access it quickly.

If you hold your cursor over «All Programs» for a couple of seconds, the menu will expand. You can then drop it into any of the folders, or leave it in the root of the «All Programs» listing.

If you want, you can also open the Start Menu’s folder, and organize it with Windows Explorer. Where you’d normally type to search, type %APPDATA% and hit Enter. This will take you to the following directory:

Then navigate to:

Microsoft -> Windows -> Start Menu -> Programs

Any shortcuts you drop into this folder will show up on your Start Menu, and any folders you create here will be created on your Start Menu as well.

Note that Steam shortcuts are protocol shortcuts — like links to URLs, and not program shortcuts — like links to an application. If you move your Steam installation, they won’t need to be updated. However, if you uninstall Steam, shortcuts to your non-Steam games that were created through Steam will probably cease to function.

Оцените статью