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.
Related
How do I find the EXEs and DLLs of a Windows Store App? The target seems to be very odd in the shortcuts on the desktop, and I can't look at them more because these are virtual files. The target seems to be a package ID, followed by an exclamation point, followed by a keyword. Where can I find the files for these apps?
Go to %programfiles%, make sure hidden folders are enabled, then try to access the WindowsApps folder. If it gives a pop up saying you don't have access, click the "Security" button then "Advanced" then change the owner to "Administrators" and click Apply and then just press okay on everything.
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'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've programmed a app via visual basic .Net and after made an installation file via Advanced Installer
But both my app's icon and name aren't available .
I mean after installation my app appear in desktop with "Windows Application" and no icon so
What can I do to solve this?
Please help
You need to set the name of your shortcut and its icon from Advanced Installer, as indicated in the tutorial I linked.
After this rebuild the installer and re-install it.
I've created my first Office Add-in using Visual Studio. It targets the 4.0 .Net framework and was created using the new VS 2012. I need to distribute/install this project on various 32-bit XP and 64-bit Windows 7 computers around the office. So I configured the project to be installed on XP (which was my first speed bump because I didn't realize VS 2012 needed an update in order to make a solution that was XP compatible). Now that I have a valid win32 application, I am getting another error:
The following error occurred attempting to install 'C:\filepath...\Import Contacts.vsto':
"No application is associated with the specified file for this operation."
After doing some digging, I think I need to install the Microsoft Visual Studio Tools for Office Runtime on the client computer. To do this, I would like to use the prerequisites properties for the project. So I read up on creating custom prerequisites using some noteworthy sites (e.g, Creating Bootstrapper Packages, Application Deployment Prerequisites, Adding Custom Prerequisites, and Creating a Bootstrapper package for Office 2013 in Visual Studio 2012). I created the files according to that last URL (even though I'm not sure it pertains to the package I need just yet), but it is not appearing in the dialog box under Project > Properties > Publish > Prerequisites
If you read the article, it says the VS prerequisites dialog box should automatically update once I restart VS 2012, which I did but to no avail. I know I'll need to use this feature again in the future, so I would really like to know what I'm doing wrong and fix this. Please help! And I promise to quickly give the ACCEPT to whoever helps me fix this problem! Thank you in advance.
I didn't have any problems following the directions given in the web page and got the bootstrapper added to the Prerequisites dialog. However, there are plenty of possible ways to get it wrong. Some possibilities:
Triple-check the folder you added these files to. Be sure that you picked Program Files (x86) on a 64-bit version of Windows and not Program Files. And be sure that you now see the added VSTOR40 folder along with the other existing bootstrapper folders, like ReportViewer and VBPowerPacks.
You do not have write permission to this folder, UAC prevents copying files there. Be sure that you managed to copy them from, say, an elevated command prompt. Right-click the Command Prompt shortcut and click "Run as Administrator".
If you created the .xml files with Notepad then make sure you didn't accidentally saved them with the .txt extension. If necessary, put Explorer in "programmer mode" so you can see the filename extensions. Control Panel + Folder Options, View tab, untick the "Hide extensions for known file types" checkbox. If you now see product.xml.txt then rename the file to product.xml, same for package.xml.txt
If you created the .xml files with Notepad then be sure to save the file in UTF-8 encoding. File + Save As, Encoding combobox.
For all those who still may face similar issue I think that I found the cause of this issue. It seems that copying folder with custom bootstrapper package (and all necessary files in it) does not "refreshes" the list of available packages. Only when i went through this walkthrough and manually created folder in %Programfiles%\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\ for sample package from this walkthrough my package has shown