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 8507891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:59:51+00:00 2026-06-11T02:59:51+00:00

I have a ClickOnce application, that I want to run everytime the computer starts,

  • 0

I have a ClickOnce application, that I want to run everytime the computer starts, based on user’s choice. For this I add my application’s executable to the registry. But this directly starts the app, skiping the ClickOnce search for updates.
So I need the path to the ClickOnce application to correctly setup in the registry.

  • 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-06-11T02:59:52+00:00Added an answer on June 11, 2026 at 2:59 am

    Execute the .appref-ms file, that the start menu shortcut (created when your ClickOnce was installed) executes. This is what we do in VB.Net:

    Dim FilePath As String = Environment.GetFolderPath(Environment.SpecialFolder.StartMenu) + "\Programs\[your publisher name]\[your app name]"
    Static p As Process
    
    Dim files As String()
    
    Try
        files = Directory.GetFiles(FilePath, "[your shortcut name]*.appref-ms")
    Catch ex As Exception
        '' an exception is thrown if no matching file exists
        '' you can open your ClickOnce URL in a webbrowser control here
        Return
    End Try
    
    If files.Length = 1 Then
        Dim psi As ProcessStartInfo = New ProcessStartInfo(files(0))
        psi.Arguments = "" 
        psi.WorkingDirectory = FilePath
        psi.UseShellExecute = True
        psi.CreateNoWindow = False
        psi.WindowStyle = ProcessWindowStyle.Normal
        psi.RedirectStandardOutput = False
        psi.RedirectStandardError = False
    
        Try
            p = Process.Start(psi)
            p.WaitForExit(50)
            p.Close()
        Catch ex As Exception
            ' handle error
        End Try
    Else
        ' more than one would be an anomaly
        If files.Length > 1 Then
            Dim f As String
            For Each f In files
                File.Delete(f)
            Next
        End If
    
        '' you can open your ClickOnce URL in a webbrowser control here
    End If
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple WPF application that uses ClickOnce to handle installing. Within this
I have a console application that I'm deploying using ClickOnce. Once the user installs
I have a Windows Forms ClickOnce application that performs its own application updates. This
I have a ClickOnce application that deploys without any problems from a Win2K3 server
I have a Visual Studio 2005/ C# ClickOnce application that gets all its data from a
I have an application that is deployed with ClickOnce, and has an option to
I have a ClickOnce application that will be used by two clients (multiple users
I have an application that we use internally that is deployed through ClickOnce. We
I have an application that stores a collection of objects in the user settings,
I have a ClickOnce application that I built for a client, and I need

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.