Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 56763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T17:35:07+00:00 2026-05-10T17:35:07+00:00

I have read in some of the ClickOnce posts that ClickOnce does not allow

  • 0

I have read in some of the ClickOnce posts that ClickOnce does not allow you to create a desktop icon for you application. Is there any way around this?

  • 1 1 Answer
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T17:35:08+00:00Added an answer on May 10, 2026 at 5:35 pm

    In Visual Studio 2005, ClickOnce does not have the ability to create a desktop icon, but it is now available in Visual Studio 2008 SP1. In Visual Studio 2005, you can use the following code to create a desktop icon for you when the application starts.

    I have used this code over several projects for a couple of months now without any problem. I must say that all my applications have been deployed over an intranet in a controlled environment. Also, the icon is not removed when the application is uninstalled. This code creates a shortcut to the shortcut on the start menu that ClickOnce creates.

    private void CreateDesktopIcon() {     ApplicationDeployment ad = ApplicationDeployment.CurrentDeployment;          if (ad.IsFirstRun)         {             Assembly assembly = Assembly.GetEntryAssembly();             string company = string.Empty;             string description = string.Empty;              if (Attribute.IsDefined(assembly, typeof(AssemblyCompanyAttribute)))             {                 AssemblyCompanyAttribute ascompany =                   (AssemblyCompanyAttribute)Attribute.GetCustomAttribute(                     assembly, typeof(AssemblyCompanyAttribute));                  company = ascompany.Company;             }             if (Attribute.IsDefined(assembly, typeof(AssemblyDescriptionAttribute)))             {                 AssemblyDescriptionAttribute asdescription =                   (AssemblyDescriptionAttribute)Attribute.GetCustomAttribute(                     assembly, typeof(AssemblyDescriptionAttribute));                  description = asdescription.Description;             }             if (!string.IsNullOrEmpty(company))             {                 string desktopPath = string.Empty;                 desktopPath = string.Concat(                                 Environment.GetFolderPath(Environment.SpecialFolder.Desktop),                                 '\\',                                 description,                                 '.appref-ms');                  string shortcutName = string.Empty;                 shortcutName = string.Concat(                                  Environment.GetFolderPath(Environment.SpecialFolder.Programs),                                  '\\',                                  company,                                  '\\',                                  description,                                  '.appref-ms');                  System.IO.File.Copy(shortcutName, desktopPath, true);             }         }     } } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have read some web site that captcha is not needed in mobile application.
I have read some posts on here about not mixing parameters when passing into
I have read from some article that say's Apple doesn't approve the application which
I have read some code that people use something like this view.setOnLongClickListener(null); What does
I have read some posts about this topic and the answers are comet, reverse
I have read some topic regarding with my question but there code doesn't work
I have read some articles that state that IEnumerable used to mimic stored procedures
I have read some posts about the differences between these 3 relationships and I
I have read some comments in some forums saying that Linux programmers usually do
I have read some vague statement that virtual inheritance doesn't provide the memory structure

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.