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

  • SEARCH
  • Home
  • 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 6712719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:17:34+00:00 2026-05-26T08:17:34+00:00

I have a command line executable I built which is published on the network

  • 0

I have a command line executable I built which is published on the network via ClickOnce. The main use of this tool is through Visual Studio as an external tool. When I set this up in Visual Studio I am able to set the command path to the shortcut under roaming data for my profile.

However, Visual Studio resolves this to a path such as:
C:\Users\ME\AppData\Local\Apps\2.0\CGR50YPV.W5E\RXBXM176.HH8\crea..tion_f423fce0316e1dfa_0001.0000_adecafbe6c6acba3\MyAppp.exe

So what happens is if I launch the exe and grab a new version, Visual Studio is still pointing at the old version (as indicated above). I can fix this by re-pointing the command value of my external tool to the shortcut of my exe, but this is a bit frustrating to deal with.

How can I make this work without having to update my command path every time?

  • 1 1 Answer
  • 0 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. Editorial Team
    Editorial Team
    2026-05-26T08:17:35+00:00Added an answer on May 26, 2026 at 8:17 am

    You shouldn’t access a ClickOnce application via the exe file. If you’re going to do that, just xcopy the \bin folder of the application to the other machine. If you want to use the update features, you should always invoke the ClickOnce application by using the shortcut or by invoking the link to the deployment manifest on the webserver. (The deployment manifest is the application file). You can do a process.start on that link.

    [edit — add new info]
    Ohhhhh, so you’re accessing the shortcut in the folder under the user’s profile? Am I getting that? Instead of looking for that one, can you point to the shortcut on the start menu? It will add one automatically when the user installs the application, if the application is online/offline. The shortcut is added to the start menu to the location of the Publishing Company / Product Name using those fields from the Options dialog.

    I do this by setting the assembly information to the same values, and retrieving the assembly information programmatically. I always set the assembly description to be identical to the product name, and the assembly company to be the same as the publishing company. Then I can do this:

    Assembly code = Assembly.GetExecutingAssembly();
    string company = string.Empty;
    string description = string.Empty;
    if (Attribute.IsDefined(code, typeof(AssemblyCompanyAttribute)))
    {
            AssemblyCompanyAttribute ascompany =
              (AssemblyCompanyAttribute)Attribute.GetCustomAttribute(code, 
           typeof(AssemblyCompanyAttribute));
        company = ascompany.Company;
    }
    if (Attribute.IsDefined(code, typeof(AssemblyDescriptionAttribute)))
    {
        AssemblyDescriptionAttribute asdescription =
        (AssemblyDescriptionAttribute)Attribute.GetCustomAttribute(code, 
        typeof(AssemblyDescriptionAttribute));
        description = asdescription.Description;
    }
    if (company != string.Empty && description != string.Empty)
    {
        string shortcutName = 
          string.Concat(Environment.GetFolderPath(Environment.SpecialFolder.Programs),
            \", company, "\\", description, ".appref-ms");
    }
    

    (Sorry, I can’t figure out how to make the code format prettier and show the indents properly, but you get the idea.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a command-line executable which I need to run from Java on Windows
I have a command line executable that alters some bits in a file that
I have an executable that depending on the command line switch supplied looks something
I have a command line program, which outputs logging to the screen. I want
I have created a Command Line Utility C++ tool in XCode using Objective-C. I
I have a command-line application written in C++ and built with gcc/make that runs
For security reasons (I'm a developer) I do not have command line access to
I have a command line Ruby app I'm developing and I want to allow
I have a command-line process I would like to automate and capture in C#.
I have a command line app the continuously outputs YAML data in the form:

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.