I've read here and here for ways to embed my application's manifest files inside the PE but these steps do not seem to work for VC#:VS2008 - VS2008 doesn't even come with mt.exe (as far as i know)
How might I go about doing this?
You can add a manifest to your C# application by following these steps:
Right-click on your project in the Solution Explorer
Select "Add New Item" from the context menu.
Choose "Application Manifest File" from the list of options in the dialog box that appears.
However, note that Visual Studio already adds a manifest to your project by default in order to ensure compliance with UAC found in Windows Vista and 7. If you want to specify that a custom manifest file should be used by your project instead, follow these additional steps:
Once you've added your custom manifest file to your project, right-click on your project in the Solution Explorer and click "Properties" (or double-click on the "Properties" item under your project).
Under the first tab ("Application"), you should see a group of options specifying how your application manages resources. You can leave the default "Icon and manifest" option selected, but you need to select your custom manifest file from the drop-down box labeled "Manifest".
Finally, for the sake of completeness or if the above steps don't work for you, you can still use mt.exe to embed your manifest file into your application's EXE after you've built it. If it wasn't included with your installation of Visual Studio, you'll need to download and install the Windows SDK. Get the latest version for Windows 7 and the .NET Framework 4.0 here.
Related
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.
Well, I wrote an add-on to excel and created a msi installer for it using wix toolset. The problem is that I would like to change the installer icon, but from what I read msi installer icons can not be changed and I wanted to ask you whether it is possible to change the installer from msi to some other (eg on exe) and then change the installer icon?
[Update]
I've already change msi file to exe using wix bootstrap, but still i don't know how could i change this icon.
Thanks for all the tips / help.
This problem is not duplicate of Change exe icon based on define C#
my problem is not a duplicate of the post that was indicated, because it is a wix project and the given solution is for wpf, winforms projects.
In my project, there is no csproj file, only wixproj, which does not even have the <ApplicationIcon> tag.
Project properties are also different because there is no context in the build tab.
You cannot change the icon displayed by Windows for *.msi file.
For bundle exe's use
<Bundle ... IconSourceFile='path\to\product.ico'>
This will also change the icon in the "Add/Remove Programs" (which is probably good).
I am trying to publish a WinForms c# application, but whenever I do, regardless of x86 or x64, I get an error on the target machine, saying that the .dll is missing. I have tried various solutions, but nothing seems to work, from adding the files manually, to switching the output to either x86 or x64, nothing works; the file doesn't get created if I publish it.
The only thing that actually works, is if I copy the whole of the release/debug folder on the target machine. That, however, is undesirable, as I don't want the user to actually have/see all those files. How do I solve the error?
To create a new setup project
On the File menu, point to Add, then click New Project.
In the resulting Add New Project dialog box, in the Project Types pane, open the Other Project Types node, open Setup and Deployment Projects, and select Visual Studio Installer.
In the Templates pane, choose Setup Project for a standard setup, or Web Setup Project for a Web application.
To add an existing setup project to a solution
On the File menu, point to Add, then click Existing Project.
In the resulting Add Existing Project dialog box, browse to the location of the setup project and click Open.
As the title says, what is the preferred way to add the Mobile Broadband API to my C# WPF application?
Steps that worked for me. The file you're looking for is mbnapi.tlb which for me (I'm on Windows 8) is located here:
C:\Program Files (x86)\Windows Kits\8.0\Lib\Win8\um\x64\mbnapi.tlb
There are a few different folders where you could find this file to work with OS versions (8.0, 8.1, ...) and processor architectures (x86, x64, ...).
Once you have located that file use the normal procedure to reference it in Visual Studio:
Click the Project item in the toolbar, and then click Add Reference from the drop-down menu.
From the Add Reference page, click the Browse tab.
Browse to the Mbnapi.tlb file and select it. Then, click OK.
Reference: http://download.microsoft.com/download/7/E/7/7E7662CF-CBEA-470B-A97E-CE7CE0D98DC2/MB_ManagedCode.docx
HI,
I have a windows application in C#. I created and added a set up project to this solution. Then, built the solution. I refered to this link http://www.codeproject.com/KB/install/SetupAndDeployment.aspx. I even added the shortcut of "Primary output of my application" to "User's Desktop" folder. But I am not able to find the installer file in Desktop, so that I can "double click" this installer file and install my Windows application.
KINDLY HELP ME WITH THE PROCEDURE THAT NEEDS TO BE FOLLOWED AFTER CREATING A SET UP PROJECT, ADDING IT TO A SOLUTION AND BUILDING THE SOLUTION. WHERE AND HOW TO FIND THE INSTALLER FILE. IS THERE ANYTHING THAT I AM MISSING.
The installer file should be located in the bin folder of your installer project. Right click on the project in the project tree, and select "Open folder in windows explorer", and you'll find the bin directory.
The link on the desktop will only be present once the installer file has been run.
Whether this is 100% applicaple I don't know but it's something I'd think is worth a try which is if u know what the installer file is called why not do a search for that file to see if it's been stored somewhere else?
I apologise If I am stating the obvious to you, I have probably misunderstood your question if i am.
When you make a setup project the built setup files are in the Debug or Release folder of the setup project depending on your build settings
-setup.msi
-setup.exe for example
clicking setup.exe will run the install the application
You copy them to the user's desktop and click to install your application?