[#35] Installer: Fix WIX version detection
This commit is contained in:
@ -88,7 +88,7 @@ namespace Elwig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected override async void OnStartup(StartupEventArgs evt) {
|
protected override async void OnStartup(StartupEventArgs evt) {
|
||||||
Version = typeof(App).GetTypeInfo().Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion.Split("+")[0] ?? "0.0.0";
|
Version = typeof(App).GetTypeInfo().Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion.Split('+')[0] ?? "0.0.0";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await AppDbUpdater.CheckDb();
|
await AppDbUpdater.CheckDb();
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
<Task>
|
<Task>
|
||||||
<Using Namespace="System.Diagnostics" />
|
<Using Namespace="System.Diagnostics" />
|
||||||
<Code Type="Fragment" Language="cs"><![CDATA[
|
<Code Type="Fragment" Language="cs"><![CDATA[
|
||||||
this.Version = FileVersionInfo.GetVersionInfo(this.AssemblyPath).ProductVersion;
|
this.Version = FileVersionInfo.GetVersionInfo(this.AssemblyPath).ProductVersion.Split('+')[0];
|
||||||
]]></Code>
|
]]></Code>
|
||||||
</Task>
|
</Task>
|
||||||
</UsingTask>
|
</UsingTask>
|
||||||
|
Reference in New Issue
Block a user