diff --git a/ExcelAddIn_TableOfContents.csproj b/ExcelAddIn_TableOfContents.csproj
index db2343e..e751e9e 100644
--- a/ExcelAddIn_TableOfContents.csproj
+++ b/ExcelAddIn_TableOfContents.csproj
@@ -33,7 +33,7 @@
\\asyn\web\PlugIn\Excel\
de
- 1.0.0.4
+ 1.1.0.1
true
true
0
@@ -126,6 +126,7 @@
+
diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs
index 4aa9849..b8191d0 100644
--- a/Properties/AssemblyInfo.cs
+++ b/Properties/AssemblyInfo.cs
@@ -33,6 +33,6 @@
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
+[assembly: AssemblyVersion("1.1.0.0")]
+[assembly: AssemblyFileVersion("1.1.0.0")]
diff --git a/ThisAddIn.cs b/ThisAddIn.cs
index 67c2525..d01061c 100644
--- a/ThisAddIn.cs
+++ b/ThisAddIn.cs
@@ -11,6 +11,7 @@
using System.Text;
using System.Text.RegularExpressions;
using System.Reflection;
+using System.Deployment.Application;
namespace ExcelAddIn_TableOfContents
{
@@ -141,8 +142,9 @@ private void Update()
Properties.Settings.Default.Save();
}
- Version a = Assembly.GetExecutingAssembly().GetName().Version;
+ Version a = (ApplicationDeployment.IsNetworkDeployed)? ApplicationDeployment.CurrentDeployment.CurrentVersion : Assembly.GetExecutingAssembly().GetName().Version;
Version b = a;
+
// once a day should be enougth....
if (Settings.Default.LastUpdateCheck.AddHours(1) <= DateTime.Now)
@@ -162,7 +164,7 @@ private void Update()
b = new Version(m.Value.Replace("\"", "").Replace("tag_name:v", "").Replace(",", ""));
}
}
-
+
if (b > a)
{