3

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

chiapa
  • 4,362
  • 11
  • 66
  • 106
  • 1
    What are you deploying your application with? – Crono Mar 18 '14 at 14:44
  • Are you using Clickonce? Wix? Installshield? – Crono Mar 18 '14 at 14:45
  • I don't know: I developed the application and then, in Visual Studio 2012, Build > Publish – chiapa Mar 18 '14 at 14:48
  • Then it's Clickonce. ;) I'll leave it to somebody else to provide an answer because I have little to no experience with it. If I may though, I suggest you start looking into Wix installer. It's free, it's open source and it's backed by Microsoft which itself uses it for key products. The learning curve is a lot steeper but it will give you much more power over the installation experience of your applications. www.wixtoolset.org – Crono Mar 18 '14 at 14:53

1 Answers1

1

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.

Community
  • 1
  • 1
miroxlav
  • 11,796
  • 5
  • 58
  • 99