예제 #1
0
        private void Initialize()
        {
            var url = $"{UpdateUrl}/Squirrel/NetFx";

            _currentVersion = Assembly.GetEntryAssembly().GetName().Version.ToString();
            _updateManager  = new UpdateManager(url, urlDownloader: new FileDownloader());

            SquirrelAwareApp.HandleEvents(
                onInitialInstall: v => _updateManager.CreateShortcutForThisExe(),
                onAppUpdate: v => _updateManager.CreateShortcutForThisExe(),
                onAppUninstall: v => _updateManager.RemoveShortcutForThisExe()
                );
        }
 private void PerformInstallActions()
 {
     log.Info("Performing post-install/update actions.");
     updateManager.CreateShortcutForThisExe();
     registryManager.CreateEntryToLaunchOnStartup();
     configurationManager.RestoreSettings();
 }
 private static void FirstRun(IUpdateManager mgr)
 {
     mgr.CreateShortcutForThisExe();
 }
예제 #4
0
 static void InitialInstall(IUpdateManager mgr) {
     mgr.CreateShortcutForThisExe();
     RunVcRedist();
 }
 static void Update(IUpdateManager mgr) {
     mgr.CreateShortcutForThisExe();
     //RunVcRedist();
 }
예제 #6
0
 static void InitialInstall(IUpdateManager mgr)
 {
     mgr.CreateShortcutForThisExe();
     RunVcRedist();
 }
예제 #7
0
 static void Update(IUpdateManager mgr)
 {
     mgr.CreateShortcutForThisExe();
     //RunVcRedist();
 }