Visual Studio 2017 Installer Desktop Shortcut Icon - c#

I am trying to use the Visual Studio Installer for 2017 to package my program. I have added the deployment project to my solution, created a shortcut from the Primary Output in the Application folder, moved that to the User's Desktop folder, and set the icon in properties to the icon in the application folder. In the actual project, under the Properties menu (Project - Properties) I have also set the very same icon as a Resource in the icon box there. I then build the solution.
The problem is, if I run the installer it creates a shortcut on the desktop of the user, but always without the icon I've set. Please can someone help!?
I've tried re-creating the shortcut and re-adding the icon, but all my searches online suggest that the method I'm following should work.

I think the issue was with the icon itself as once I got a new one it worked. For anyone else who gets this issue, make sure your icon isn't too large, and also just try getting a new one.

Related

How to set the short-cut icon generated by installation of an .msi using a VS2017 Deployment Project

I have been tasked to change the Icons associated with a WPF VS2017 application that I did not create. I am trying to change the desktop short-cut icon that is automatically loaded on installation of the app's .msi.
This solution uses a Visual Studio Installer Project to generate the deployment .msi.
I have tried to change the file reference in the deployment project, but it seems to hang on to the original icon.
I have even gone to the extent of renaming the new .ico file with the original .ico filename and putting it into the directory where the original was located, but the .msi continues to load the old icon to the desktop on the application's installation.
Is there user documentation (not tutorials) on the Visual Studio Installer add-on?
More directly, how is the desktop short-cut icon specified in the deployment project?
Extensive web searching and experimentation have not presented an answer.
The installer project has a "file system" view.
Click round on your files under setup and it should appear in your code editing area.
Under File system on target machine will be folders.
These might have been configured to explicitly add a specific icon for the shortcut.
Click users desktop in the left panel.
You will have a shortcut in the right.
Select this and take a look at properties.
There's an Icon property which is probably set. Click the icon, browse and choose the one you want. This should be in the list of setup files.
If not, check your main entry point project has an icon set.
Choose it's properties > Application
In there under Icon and Manifest set the ico file.
Then try again.

Multiple Visual Studio files in the same window

Whenever I open up a Visual Studio file from within the Unity window it opens each file in a separate window, as opposed to being separate tabs in the same window. How would I fix this?
Apparently its a common problem on unity forums (you can check them: 1, 2, 3)
The problem appears to be related to updatinng the project to a new version of Unity
The solution is to delete the .csproj files and the .sln file for the project. Unity will just recreate them immediately, and the files will correctly open in the same instance of VS.
For me only this solution worked (from This Thread)
I just removed Visual Studio Editor package from Package Manager, and the problem looks like fixed now
---Edited by answerer - this solution is for Visual Studio Code, and not Visual Studio. It does not answer #AlphaWolf464's question correctly.---
This might be due to the settings set in the preferences.
Follow the directions below to change these settings (below is for Mac, so it may look a bit different for Windows)
Open Visual Studio and navigate to Code --> Preferences --> Settings
From the left options, navigate to Window --> New Window
If the Open Folders In New Window option is set to on, change this to off.
I had this problem as well, I believe it was related to upgrading a project to a new version of unity. I resolved it by deleting the .csproj files and the .sln file for the project. Unity just recreated them immediately, and the files correctly opened in the same instance of VS.

InstallShield shortcut links going to wrong directory

I've created a project in Visual Studios 2010, and when I package it with InstallShield, I click new -> pick the primary output file, rename it, and then click the desktop option as well. It properly creates the shortcuts to both the start menu and the desktop, but they don't point to the correct location. If I go straight to the Program Files x86 folder and click on the .exe, the program loads correctly. If I click on either of the links, it fails
Try this.
Go to InstallShield Project -> Configure the Target System -> Shortcuts/Folders
Select your shourtcut and Set your Working Directory ([INSTALLDIR]) in Behavior Property.
Do the same for your start menu.
It worked for me in Installshield 2013.

Installer - How to get exe to run stand alone

I have created a winforms project, and created an installer for it.
When installed i can run the exe from the install location, however if i create an entry in my install package to add the project output (the exe) to the users programmes menu or desktop then it fails
Does anyone know why this might be?
Thanks for your time
If this is a VS Deployment project, you don't add the project output directly, you create a shortcut from within the File System Viewer pointing to the primary output (which you will probably find in the 'Application Folder' in the shortcut dialog). You can then assign the shortcut a name and icon etc.
You need both the EXE and the MSI.

Is it possible to change the setup.exe and setup.msi icons to a different icon?

VS 2008 SP1.
I have created a setup project for our client. The icons for the setup.exe and setup.msi are the standard icons.
Our client doesn't want this these icons. They want to have icons that look like they logo.
Is it possible to change the *.exe and *.msi icons to something different?
You can change the setup.exe icon, but I'm not sure about the *.msi. I haven't tested this with it.
Build the setup project in Visual Studio
Open the setup.exe file you just built, File -> Open -> File
Right click the Icon node in the file explorer window and you can change and save.
Import the icon your want in the popup dialog, and make sure the ID of the icon is the smallest one.
A quick Google search pulled up some other approaches, so if this won't work for your particular case, check some of these out.
It is not possible to change the icon of the msi. It does not have an icon set on it. It is just a document that is handled as install package if you have Windows Installer installed. If not, you will actually just see the windows default icon for unknown file types!
For the setup.exe, you can do it by editing the icon(s) on the exe after it is build. Answer from mc2thaH (steps 2-4) is one approach.
Another tool for icon editing is Greenfish Icon Editor Pro, which is a very good free icon editor with full support for 32bit image editing. Download here.
msi cant be edited. At the same time setup exe doenst have all the valid informations. The best way to handle this is to have an msi to exe converter. EgeUE-MSI-to-EXE is a good converter which need not be installed. It converts msi to exe on the fly. Now you can edit the icon of this exe from your visual studio as explained by #mkchandler. Bear in mind that the logo you are going to import has to be .ico file to avoid further complications. I did not get a jpg or bmp image working as the icon. ico works fine like a breeze..

Categories

Resources