I've added a "start review" context menu item for .pdf files.
In the registry I've added this as the command:
"c:\myscript\abc.exe" "%1"
The .exe is a C# application built in C# .NET.
The issue is that whenever I right-click a PDF file and choose the "start review" menu item, I get a black command window opening. How can I get rid of this?
To always hide the console, you can go to Project > Properties and change the Output type to Windows Application:
Change the output type to "Windows Application". The following link should help...
http://msdn.microsoft.com/en-us/library/vstudio/s3awkzkh(v=vs.100).aspx
Good Luck!
Related
I recently started experimenting with Xamarin and Mono C# on my Mac. I am used to working on Windows with Visual Studio so I find it cumbersome when every time I run my console application, a new terminal window and mono compiler terminal open up. And I have to manually close them. Is there anyway to get the output of my programs from a window or pane inside the IDE ? Or is there anyway to set it up so only one terminal window shows up ?
If you open the Project Options there is a Run on external console check box in the Run - General category which controls this behaviour. If you uncheck this option when you run a console application the output will be shown in an Application Output window inside Xamarin Studio and no external console window will be opened.
For anyone else arriving at this question who can't locate 'Project Options', the item is found in a drop down menu under the Project Tab (located at the top of the screen on the app's main nav bar). When a solution/file is loaded, the item is listed with your project's actual name, ex: 'MyProject Options' or 'MyProject&Options' (–it does not literally read 'Project Options').
I'm trying to get icons to show up on the Shortcuts i create in my set up application. I have two shortcuts one for the start menu and desktop. The icon shows up fine in the program files but then that's the direct output of the application. The other two are shortcuts. They are still showing the default shortcut icon.
I found this and it didn't work. When i do it there is no icon displayed. So i cant select OK
Setting correct icon for Shortcut in VS2010 Setup Project
Then i found this link
How to change windows Applicatoin's default icon in Setup Project
Right click on you windows application project, select properties. In the properties window, select the application tab. In the application tab, there is a radio button saying Icon and manifest. Select that and browse and select your custom icon for the application in the Icon drop down menu.
When i try and do that. i get an error:
Error 8 Error generating Win32 resource: Error reading icon
'C:\Users\<me>\Documents\Visual Studio 2010\Projects\<solution>\<project>\
<mylogo>.ico' -- The data is invalid.
C:\Users\<me>\Documents\Visual Studio 2010\Projects\<solution>\<project>\
obj\x86\Debug\<program>.exe <project>
Any help please would be greatly appreciated.
It means your ico is corrupt. Try converting or creating the ico with a different tool or website if you converted it online before
I have a program, MyApp, where I can open a text file, which works great.
The application is created in C# with Visual Studio 2003, .NET 1.1.
But under the [right-click on file context-menu in Explorer -> "Open With"] just the icon is shown, not the application name or description.
As shown here:
Open With context-menu (http://data.fuskbugg.se/skalman02/4e450ba043602_openwith.png)
If we look at Notepad++ in the image that text seems to be the description text, same as under File properties general tab for notepad++.exe.
What value is used there? How do I set that value?
[EDIT]:
The registry entries automatically generated when using "open With -> browse for application" are:
HKEY_CLASSES_ROOT\Applications\MyApp.exe\shell\open\command
(default) under the key command is: "correct path" "%1"
You need to set the AssemblyTitle in AssemblyInfo.cs. After doing this you may need to remove all the registry entries and re-install your aplication.
(so other people with the same problem don't need to search through the comment thread)
I want to Change default installation path which is Program Files in windows application When Creating setup. I tried but i couldn't do that please tell me solution.
Right click on your setup project
root in Solution Explorer and choose "View -> File System"
Click on (select)
"Application Folder" in the window
which opened.
If you look in the
"Properties Pane" in Visual Studio there is an entry
called "DefaultLocation". Change this
to point it somewhere besides
"Program Files".
Default value for location is [ProgramFilesFolder][Manufacturer]\[ProductName]. These are placeholders variables which are looked up when you compile the setup project. [ProgramFilesFolder] is the one which will point to "Program Files" in an English version of Windows.
In a Visual Studio Setup project, you control the default install path by setting the DefaultLocation property of the Application Folder folder, within the File System Editor.
This, in turn, as you've found, defaults to [ProgramFilesFolder][Manufacturer]\\[ProductName]. You can either replace this property entirely or you can modify these properties.
Ex: D:\\[Manufacturer]\\[ProductName]
Here it is
Right click on your setup project root in Solution Explorer and choose "View -> File System"
Click on (select) "Application Folder" in the window which opened.
If you look in the "Properties Pane" in Visual Studio there is an entry called "DefaultLocation". Change this to point it somewhere besides "Program Files".
The other solutions don't work for VS 2012 and above. Please follow these steps:
Expand Setup and Deployment Project.
Select Project Assistant, bottom you will find "Installation Interview", click on "Installation Interview".
You can see the Installation Dialogs, select "Yes" for option "Do you want your users to be able to modify the installation location of your application?"
I have a console application, I want to include an ico file as an embedded resource in the exe, then have it as the programs icon in windows explorer, how is this done?
If you right click on your actual project that you want to change the final icon and select properties at the pop-up menu, then the main screen will change to the properties file edit, in the screen that appeared, at the botton you will see that you can select the icon to use in the application, select it and when you compile your project, at the release type you will see that the application have the icon that you selected.
Regards.
In the project settings page for your Console Application, go to the Application Page.
Under "Icon and Manifest", click on the [...] button next to where it says (Default Icon), and pick your Icon. Rebuild your app.
This will give your console application a custom icon.
The icon displayed in windows explorer for any .net application is the assembly icon which can be set in the project settings in visual studio.