Install Clickonce Programmatically
To do this, you need to actually invoke the appref-ms file, not the exe file. I'm assuming this is an offline/online application, and you have a shortcut on the start menu. ShortcutName = string.Concat(Environment.GetFolderPath(Environment.SpecialFolder.Programs), ' ', publishername, ' ', productname, '.appref-ms'); where publishername and productname are those fields from the publishing properties. Then you can just do Process.Start(shortcutName); and it will run the application.
Clickonce Application
Note that you can even send parameters to the application when you start it up if you want to. If you're interested, post back and I'll post a link to the article showing you how to do this. RobinDotNet Microsoft MVP, Client App Dev. To do this, you need to actually invoke the appref-ms file, not the exe file. I'm assuming this is an offline/online application, and you have a shortcut on the start menu. ShortcutName = string.Concat(Environment.GetFolderPath(Environment.SpecialFolder.Programs), ' ', publishername, ' ', productname, '.appref-ms'); where publishername and productname are those fields from the publishing properties. Then you can just do Process.Start(shortcutName); and it will run the application.
Note that you can even send parameters to the application when you start it up if you want to. If you're interested, post back and I'll post a link to the article showing you how to do this. RobinDotNet Microsoft MVP, Client App Dev.