I have an c# VS 2005 winform that takes file list variables via Environment.CommandLine passed from a Send To link to my application. So I need to create a shortcut to my application in the user's Send To folder. I am able to build a MSI to install my application and create the shortcut in the User's Send To Menu location but when I right click from windows explorer I do not see the short cut as a Send To target. If I simply copy the shortcut to some other location such as User's Program Menu I see the shortcut as expected in Programs start menu location, which launches my application.
How can I get my Send To shortcut to show up in windows explorer right click context menu I have other questions about the nature of the shortcut and why the properties (such as Target) are different than other shortcuts that point to the actual .exe files...but those are less important to me right now...although strange and possibly related.
Help and thanks in advance

Making a Send To Shortcut
Paul Steele
:-) was not sure you were creating an installer to do this, I thought you meant from within your application.
OK, so you can safely ignore that code.
As for not showing up in the sendTo menu even though you say you specified in the installer to create it in that folder, I really don't know as I have been able to do this just now.
Even though its simple, are you able to post step by step the process you did to create a shortcut in the user's start menu in the installer project
Miroslav_shrek
Hi guys!!
Kotter, you are absolutely right. On my machine too I followed same steps using VS.Net 2005; however, the shortcut did not display.
I would have done it by installing the exe in send to folder, but, the product does not look good when the user has selected to display the extensions also in explorer's folder options. Therefore, I am searching for the way to place the shortcut.
Just a food for thought ... I was wondering if this was something related to some registry entry
!!
I hope this help in making our search more specific.
Thanks,
Regards,
Priyanka
DeadDante
The steps I am following are basically what you might expect for any deployment shortcut creation...I think:
Create a Deployment Project
Add my files
For the shortcut creation, select the file system editor
In the editor window Right Click, Add Special Folder
Select "Users Send To Folder"
In editor window select User's Send To Menu, Right click, Create Shortcut on Users Send To Menu
Select newly created shortcut
Ensure shortcut property target is your exe
Build and install
See the shortcut file created in the send to folder
Notice that the shortcut does not show up in Right Click windows explorer
So shortcut file exists, but doesn't show up off my right click
vkan
Thank you! This was just the solution I needed.
You'll have to download the Windows SDK and once you install it, you'll be able to install Orca. The Orca installer will be in
C:\Program Files\Microsoft SDKs\Windows\v6.0\Bin\Orca.msi
CodeDjinn
darthziv
Hi Kotter!
I am also working on similar type of tool where I want to add my applicaiton's shortcut to the "Send To" menu.
I wonder if you would like ot share the knowledge how you resolved it.
Thanks in advance,
Regards,
Priyanka
wanderingbob
yanivpinhas
"to create a shortcut, you may need to use the IWSH COM component, "...uh...what Why on Earth does the .msi I built install and create a short cut in Send To that does not show up Are you suggesting a work around Whats different about the send to folder short cut creation that differs from other folders VS installar seems to be OK with..
I'd like some explaination as to why I need to write code to do this
phoenix11
The shortcut gets created as an advertised shortcut. You need to modify the MSI with Orca, or another tool, and insert the following record into the Property table
Property: DISABLEADVTSHORTCUTS
Value: 1
DanHaligas
Hi,
I still could not figure out how to resolve the issue.
If I create the shortcut manually and place it in the "Send To" folder, it displays in the Explorer's SendTo menu. However, if I create shortcut using msi, then it does not list in menu.
I could not understand about editing the property of Installer as you mentioned. Can we do that from registry.
Kindly, explain it.
Regards,
Priyanka
Sachin Saxena
you would need to basically create a shortcut in the SendTo folder.
To get the sendTo folder:
string theSendToFolderPath = Environment.GetFolderPath(Environment.SpecialFolder.SendTo))
to create a shortcut, you may need to use the IWSH COM component, here is a small example on creating a shortcut, but in VB.NET:
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=666372&SiteID=1
There was one for C# which I provided but cannot seem to locate that thread! However in C#, try this:
WshShell theShell = new WshShell();
IWShShortcut theLink = theShell.CreateShort(Environment.GetFolderPath(Environment.SpecialFolder.SendTo) + "\\yourShortcut.lnk");
theLink.TargetPath = Environment.GetFolderPath(Environment.SpecialFolder.SendTo);
theLink.Description = your description;
theLink.Save();
does this help