integrating/overview #13
Replies: 7 comments 11 replies
|
(unrelated question to this page) |
|
My asp.net core application needs to be installed into the system service. Can I use Velopack to automatically install it into the system service and update it automatically? |
|
How about roll-back the last update? Or installing a specific version? (The previous version in my case) |
|
Where would I put the VelopackApp.Build().Run() call in, say, a VB.Net app that doesn't have a "Main" function? Would the main form loading event handler be an appropriate place? |
|
I just stumbled across this today while looking at installation frameworks options with good auto-update handling and it looks awesome! I don't think I saw anything about this in the docs, ClickOnce has a feature where it's able to to launch applications via a URL. This also depends on browser settings/extensions installed but essentially it generates a *.application file which you can upload to a cloud storage location, like S3, and then enter https://example.com/myapp.application which will just launch the application without downloading an installer. It will skip installing the app if it's already there. It's also able to accept query parameters in the URL that gets interpreted when running the application. Are these things that Velopack can do or will do in the future? |
|
Hey, this might be a dumb question, but is there a way to get the 'current' version number even if there's no update available? |
|
In fast callbacks I can do something like the code below or i can't definetly show UI like a message box?: [STAThread]
private static void Main(string[] args)
{
VelopackApp.Build()
.OnFirstRun(v =>
{
// things
})
.OnAfterInstallFastCallback(v =>
{
string path = @"C:\RandomFolder";
try
{
if (!Directory.Exists(path))
{
Directory.CreateDirectory(path);
}
}
catch (Exception ex)
{
MessageBox.Show("Hey Something was wrong, you should know that");
}
});
} |
Uh oh!
There was an error while loading. Please reload this page.
integrating/overview
To integrate Velopack into your application, you must initialise the Velopack as early as possible in app startup, and you should add update checking code somewhere.
https://docs.velopack.io/integrating/overview
All reactions