Adding right-click menu items to shortcut with InnoSetup - windows

Is it possible with InnoSetup to add additional right-click menu options for a specific shortcut?
Say my shortcut has a target of "%localappdata%/Programs/MyApp/app.exe" that is run on double-click. But my app.exe takes some additional command line options that I'd like to abstract, say for "safe mode". Does InnoSetup support adding a menu item that would read "Run in safe mode" and would have a target of "%localappdata%/Programs/MyApp/app.exe" --safe?

Related

Add toolbar button to TFS' "My Work" in Visual Studio

I find I go to the My Work pane inside the Team Explorer frequently, but I haven't found a way to get there in one click. I can create a shortcut key for the command TeamFoundationContextMenus.Commands.GoToMyWork and that works, but I'm looking for something I can click on a toolbar.
So specifically, my question is: where in the toolbar customization "Add Command" list does this option exist? There are several categories and many items in each, and I haven't found a way to search, only scroll.
More generally, and if the option doesn't exist, is there a way to use the command name in the keyboard shortcut customization to create a toolbar button for that command?
For a toolbar you can add commands only from the existing VS menu.
For additional commands, you can create an intermediate Visual Commander command DTE.ExecuteCommand("TeamFoundationContextMenus.Commands.GoToMyWork") and then add this VCmd.Command01 command to a toolbar.

How to associate an extension with a program if the extension is not in the "Default Programs" list in Windows Seven?

In Windows Seven, I'm aware of the "Default Programs" dialog in Control Panel, which lets me associate pre-defined extensions with programs. However, I need to add an association for a file extension that isn't in the list. In WinXP, I'm pretty sure I could add entries to the list, but that doesn't appear to be immediately available in Windows Seven.
If you select a file with the desired extension in Explorer and click on it, a dialog box pops up that lets you select a program from a list. Click that. Then you can CLick on "Browse..." and select the program you want the file to be opened with. I have not tried, but you might be able to change it through the Default Programs afterwards.

Windows 7 right click "Send to" file context menu

When I right click a file (in any folder) I see an option "Send to" and inside
Desktop
Documents
...
and a bunch of other locations.
How can I add my own location, ie "C:\stuff" to this context menu?
Open file explorer and navigate to: %APPDATA%\Microsoft\Windows\SendTo
Once in the SendTo folder, right click -> New -> Shortcut
In addition to the default shortcuts in the SendTo menu, there are hidden options that are exposed if you hold down shift while right clicking the targeted icon.
(This is Windows 7 only)
The easiest way to add your own is to type "shell:sendto" in a file explorer, ( or start -> run -> sendto ) and place whatever shortcut you deem useful. As mentioned before you can add shortcuts to programs as well as directories.
(This is more universal)
HERE is a nice article with a picture instructions.
in addition to shortcuts to folders, you can add shortcuts to apps. for example, add a shortcut to "send to notepad" to open a file in the notepad app. a useful function for a developer.

Visual Studio: Context Menu on Solution Explorer too long, can I add a sub menu or a toolbar above solution explorer?

My context menu on my solution explorer is way too long, although I am not complaining, this is due to the fact that I have a lot of extensions installed. Most commands I can find... but there is one pesky command that always is difficult to spot and I use it all the time.
"Set as Startup Project"
Is there a way (or an extension) that allows me to add a sub menu to the context menu for commands I use regularly or an extension for adding a toolbar on the solution window?
It doesn't require an extension, you can alter the menu to your heart's content without coding. Use Tools > Customize > Commands tab. Click the Toolbar radio button and select "Context Menus | Project and Solution Context Menus | Solution". You should see your too-long context menu. Move a favorite command in a better spot with the Move Up button. Use the Add New Menu button to add a sub-menu.

.net .vdproj - application shortcut

I'm creating a .vdproj setup for a simple Windows form. I have added a shortcut to the user's program menu (in a folder), but when I click the shortcut, it just opens the install folder. How do I set it up to run the .exe program?
I just tried putting the .exe name in the "Argument" for the shortcut - no luck yet. I thought it might be more intuitive than that. It also seems like "Target" might be the property to set - but it gives me a pick list - and my .exe is not in the list of things to pick.
Thanks,
Neal Walters
Update 1:
I'm using VS2008 SP1.
I added a folder under "User's Program menu" called "RCT" (that's my application name). I right click on that folder and I see "Add" with an arrow to submenu and "Create shortcut to RCT". The first thing I tried was the "Create shortcut to RCT", which is what lead me to post this question. Once the shortcut is there, it looks like the Properties Windows is the only way to configure it.
I set the "Target", and "Working Folder" (all 3 properties) to "Application Folder".
Now when I click the shortcut, it opens disk directory: C:\Users\uxnxw01\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\RCT
If I right click on "User's Program Menu" I see a link "Add shortcut to user's program menu". I really want a shortcut "in" the user's program menu, not "to" the user's program menu.
The "Add" submenu has four options: Folder, Project Output, File, Assembly.
SOLUTION - based on Heinzi's response:
I think I got it now - you right-click on the white space (under "name ... type..."- not on the folder. Then I see "create new shortcut". What a confusing design on the part of Microsoft! Seems like you would click on the folder and "add new shortcut". Instead they give you "Add shortcut to..." the item you click on.
After clicking on Create New Shortcut, instead of selecting the application folder, double-click on the application folder. Then Primary output from <YourApplication> should be selectable.

Resources