I'm building an application in vb.net/visual studio 2012. When I publish my application, the .exe file and some other files are uploaded to a server.
Publishing my application also generates a .application file. I can use this file to search for updates on my server and to automatically open the latest version of my application.
I want to change the icon of this file to the icon of my .exe file, but I don't know how. Is there any way of changing the icon of this file?
follow these steps:
Right click on the application name in the solution explorer
Select properties
Now you can see
now select Application---> change default icon to <..Browse..>
it will opens a new window from their you can browse apropriate .ico file and then publish the application
It turns out that the icon of the .application file, is not set by visual studio. It is the icon of the application that opens .application files: ClickOnce Application Deployment Support Library.
If I change the icon of that application, it will only change on my own pc and it will change the icon of all my .application files to the same one. So I think there is no solution.
Thanks anyway!
Related
I made a simple checklist desktop app in Visual Studio 2015, and I'm ready to share it with the world. Problem is that I don't know how to make an installer for it that I can share online. I have an installer exported, but it is Visual Studio's default ClickOnce installer, which won't work when I remove it from its original location
Is there a way I can package it so I can upload it somewhere and then share it? Do I need to code my own, or there some add-in or tool that will do it for me?
Once you have the installer extension this should help you to get started, as the name implies:
https://www.simple-talk.com/dotnet/visual-studio/getting-started-with-setup-projects/
Have a look at this older post of mine:
What you can do,open the project as if going to edit it, just go to "Project" then "Publish(Whatever-your-work's-name-is).vb at the bottom. Then use the wizard to finish. At the end, say you saved your exe on the desktop, three files will appear.
"Whatever-your-work's-name-is".exe And its icon shape varies.
A folder called "Application Files"
And a "setup.exe" Its icon a like a CD on something.
For the first time, click on setup.exe and open the app. From then on, the "Whatever-your-work's-name-is".exe will open normally. I usually store all three on a zipped folder, which I upload on my website and can be downloaded from there.
To get a better example, vist my website.
I use this website to store my files for backup.
You can get the MS Installer extension from here... There's one for VS 2013 too.
(Credit to peterG for commenting this)
I am trying to edit the .csproj file in Xamarin studio. I went to open the .csproj through the directory but it just opens my Xamarin android solution and no file is shown. How can I access the .csproj file in Xamarin studio?
Make sure you open it into the text editor.
In the file open dialog you need to select Source Code Editor in the Open With drop down box.
By default it will open with the Solution Workbench.
Another way to open the .csproj file into the text editor is to right click the project in the Solution window and select Tools - Edit File.
I'm creating an installation program for my VB.NET application; after install my application I get the icon on my desktop with the right icon image and open the right application but when I right click on the shortcut --> Properties the "Open location" button is grayed out.
There's a way to create a regular shortcut with all the buttons enabled?
Second, my application is being installed inside Program Files(x86)\Microsoft\MyApp, there's a way to specify a directory outside program files?
I need to write log files and that directory needs that the application runs as Administrator to do that.
I created the installer by adding an Assisted Installation project to my application project.
I tried by using MyAppSetup.exe and the msi package too with the same results.
I'm making windows application in VB.NET and I added some files in my project in solution explorer and I set on every file I added
"Copy to Output Directory: Copy Always"
but it deploy every file except .bin files after publishing.
It work in debugging mode, but not when I publish it. any help please, how to deploy .bin files?
Thanks.
What is the Build Action property of those files set to? If it is Content then I believe that they should be included in the deployment automatically. If not, open the Publish page of the project properties and click the Application Files button. There you can control what files are included in the ClickOnce deployment.
Using Visual Studio 2012, I manage to publish a Winforms application and install it successfully on other machines, making it work nicely. Although, there are a few small details that I want to change.
The published application goes into the Start Menu inside a folder named after me. I suppose it's taking my Windows user name, I don't set it anywhere, it just happens by default. I wish I could define that.
(EDIT)
I solved the above issue: Project properties > "Publish tab" > Options and set the Publisher name: this is the name of the folder
(end edit)
When I look for the program in Control Panel > Programs and Features, it has a weird default icon instead of the one I defined (which appears correctly on the Start Menu)
So, how to set my icon on the Programs and Features as well?
(EDIT) -
I'm using ClickOnce apparently (thanks to #Crono)
Thanks
For changing application icon in Programs and Features, this answer might help you: Custom icon for ClickOnce application in 'Add or Remove Programs'
The trick is in adding a registry string value DisplayIcon pointing to the icon file. The value is located under Uninstall registry key of your application.