Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 22 17:55

    delete-merged-branch[bot] on nuget

    (compare)

  • Aug 22 17:55

    GeertvanHorrik on develop

    Bump Costura.Fody from 4.0.0 to… Merge branch 'develop' into dep… Merge pull request #88 from Wil… (compare)

  • Aug 22 17:55
    GeertvanHorrik closed #88
  • Aug 22 06:47

    delete-merged-branch[bot] on nuget

    (compare)

  • Aug 22 06:47

    GeertvanHorrik on develop

    Bump ModuleInit.Fody from 2.0.0… Merge branch 'develop' into dep… Merge pull request #89 from Wil… (compare)

  • Aug 22 06:47
    GeertvanHorrik closed #89
  • Aug 22 06:46
    GeertvanHorrik synchronize #89
  • Aug 22 06:46

    GeertvanHorrik on nuget

    Bump Fody from 5.2.0 to 6.0.0 … Bump Obsolete.Fody from 5.0.0 t… Merge pull request #85 from Wil… and 4 more (compare)

  • Aug 22 06:42
    GeertvanHorrik synchronize #88
  • Aug 22 06:42

    GeertvanHorrik on nuget

    Bump Fody from 5.2.0 to 6.0.0 … Bump Obsolete.Fody from 5.0.0 t… Merge pull request #85 from Wil… and 4 more (compare)

  • Aug 22 00:15
    dependabot-preview[bot] labeled #89
  • Aug 22 00:15
    dependabot-preview[bot] opened #89
  • Aug 22 00:15

    dependabot-preview[bot] on nuget

    Bump ModuleInit.Fody from 2.0.0… (compare)

  • Aug 22 00:14
    dependabot-preview[bot] labeled #88
  • Aug 22 00:14
    dependabot-preview[bot] opened #88
  • Aug 22 00:14

    dependabot-preview[bot] on nuget

    Bump Costura.Fody from 4.0.0 to… (compare)

  • Aug 22 00:14

    dependabot-preview[bot] on nuget

    (compare)

  • Aug 22 00:14

    dependabot-preview[bot] on develop

    Bump MethodTimer.Fody from 3.0.… Merge pull request #87 from Wil… (compare)

  • Aug 22 00:14
    dependabot-preview[bot] closed #87
  • Aug 22 00:14

    dependabot-preview[bot] on nuget

    (compare)

Geert van Horrik
@GeertvanHorrik
If you have any questions / ideas about Orc.Squirrel, feel free to post them here.
advapiIT
@advapiIT
Here I'm
William Obando
@wocar
Is there any examples?
Are there any examples of the usage?
:)
samirem
@samirem
Hi. This project is working out fine for me. Thanks for sharing the good work!
I have a general question, that's not necessarily related to this project, but I'll try anyway and see if you have any experience to share...
I'm developing an application where I'm gonna use Squirrel and Orc.Squirrel for deployment and automatic updates. I got this to work fine. But I'm also interested in setting up a file association on my target PC when installing the application. When I'm searching around how to set file associations for WPF applications, I only find examples using ClickOnce or other tools, but Squirrel does not seem to have this option as far as I can tell.
samirem
@samirem
Have you faced a similar situation and solved it somehow? Or do you have any idea how it could be done? I guess I could fork Squirrel and add some registry manipulation during installation, but honestly I'm very unexperienced and fear that it might not be easy enough. I also think that this should be a fairly easy thing to do..
Geert van Horrik
@GeertvanHorrik
See Orc.Fileassociation and run it at app startup
samirem
@samirem

My app has recently stopped updating automatically. I've been debugging a lot to try to find the problem. After enabling file logging and running the released exe, I found this line:

16:09:07:784 => [INFO] [Orc.Squirrel.UpdateService] [1] Automatic updates are disabled

Which must come from this:
https://github.com/WildGums/Orc.Squirrel/blob/develop/src/Orc.Squirrel/Orc.Squirrel.Shared/Services/UpdateService.cs#L157

Now, the strange thing is that I've not changed anything in my code.. can it possibly be some change in the ConfigurationService that breaks the behaviour?
My code for calling HandleUpdatesAsync() is as follows:

var updateService = serviceLocator.ResolveType<IUpdateService>();
var updateChannel = new UpdateChannel("Stable", "https://...");
updateService.Initialize(new[] {updateChannel}, updateChannel, true);
updateService.HandleUpdatesAsync(DateTime.MaxValue);
samirem
@samirem
I managed to solve it now by setting
configurationService.SetRoamingValue("AutomaticUpdates.CheckForUpdates", true);
but the "updateService.Initialize()"-method should already do this as far as I can tell
Geert van Horrik
@GeertvanHorrik
@samirem Did you recently update any packages (e.g. Catel or Orchestra)?
samirem
@samirem

I updated the following:

Catel.Fody from 2.14 to 2.16.2,
Fody from 1.29.4 to 2.0.2,
LoadAssembliesOnStartup.Fody from 1.7.0 to 1.8.1,
MethodTimer.Fody from 1.16.0 to 1.19.0,
ModuleInit.Fody from 1.5.9.0 to 1.6.0,
Mono.Cecil from 0.9.6.1 to 0.10.0-beta6

I do believe that my automatic updates stopped working before this though, but I am not 100% sure.

I do remember that my automatic updates broke from version 0.0.9 to 0.0.10, and at first I believed that it was a bug with squirrel.windows (not accepting number higher than 9). But I found that it stopped working when I tried updating from 0.1.0 to 0.1.1 as well.

Geert van Horrik
@GeertvanHorrik
we recommend using GitVersion for versioning, but that's another story
you are sure the end-user didn't disable the automatic updates?
samirem
@samirem
I'll look into GitVersion, thx!
Yes I'm sure, at this point the app is still in testing stage, so I'm the end-user at the moment
samirem
@samirem
Actually, now I found this in my logs:
[WARNING] [Catel.Data.ModelBase] [1] Property 'AutomaticUpdates.CheckForUpdates' is registered after construction of type 'Catel.Configuration.DynamicConfiguration', but could not be found using reflection
Geert van Horrik
@GeertvanHorrik
that's ok, it's a dynamic configuration (hence dynamic properties, and thus not found v ia reflection)
samirem
@samirem
@GeertvanHorrik I want to restart my application after it has been updated by Orc.Squirrel (and preferably keep any command-line args), do you have any sample code of this? Since catel/orchestra is so extensive, I'm assuming that there already exists some neat service for this, which I haven't found :)
Geert van Horrik
@GeertvanHorrik
Unfortunately we don't have such behavior. We show a squirrel icon in the app and let the user restart the app in a convenient time. They can double click the squirrel and we'll ask them whether they want to restart. We could simple pass in the same command line again there, but nothing out of the box.
samirem
@samirem

Oh ok, so my best bet is something like this?

updateService.HandleUpdatesAsync();
if (updateService.IsUpdatedInstalled)
{
    System.Diagnostics.Process.Start(System.Windows.Application.ResourceAssembly.Location, Environment.GetCommandLineArgs());
    System.Windows.Application.Current.Shutdown();
}

I would also like a yes/no dialog to pop up with a message like "The application was just updated. Would you like to restart it now?", sorry for my newbish question but which way is easiest to do this?

Nevermind my question about the Yes/No-dialog, I found it here in the docs:
if (await messageService.Show("Are you sure you want to do this?", "Are you sure?", MessageButton.YesNo) == MessageResult.Yes)
{
    // Do it!
}
Geert van Horrik
@GeertvanHorrik
correct, something like that
but then use the IProcessService
we show a less intrusive icon in the status bar, then it's up to the user to either restart now or just do it on the next run
samirem
@samirem
That sounds like a very good idea. It's not nice to throw "annoying" messages in the end-users face
IProcessService instead of System.Diagnostics.Process.Start?
Orc.Notifications to show the status bar icon?
Geert van Horrik
@GeertvanHorrik
Orc.Notifications shows a desktop notification