Skip to content

Commit

Permalink
Merge pull request Squirrel#486 from dj-al/master
Browse files Browse the repository at this point in the history
fixPinnedExecutables: check that taskbarPath exists
  • Loading branch information
anaisbetts committed Nov 10, 2015
2 parents 1ed86db + 316900d commit 4a3ef01
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Squirrel/UpdateManager.ApplyReleases.cs
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,11 @@ void fixPinnedExecutables(SemanticVersion newCurrentVersion)
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
"Microsoft\\Internet Explorer\\Quick Launch\\User Pinned\\TaskBar");

if (!Directory.Exists(taskbarPath)) {
this.Log().Info("fixPinnedExecutables: PinnedExecutables directory doesn't exitsts, skiping...");
return;
}

Func<FileInfo, ShellLink> resolveLink = file => {
try {
return new ShellLink(file.FullName);
Expand Down

0 comments on commit 4a3ef01

Please sign in to comment.