Error in Katteker.Gui/Wrapper.cs when no configuration file was found.
This commit is contained in:
parent
016e11e81f
commit
9dd3943448
@ -56,7 +56,7 @@ Section "install" ;No components page, name is not important
|
||||
<# foreach(var directory in Directories) { #><#= $" CreateDirectory \"$INSTDIR\\{directory}\"{Environment.NewLine}" #><# } #>
|
||||
|
||||
; Put file there
|
||||
<#foreach(var file in Files) { #><#= $" File \"/oname={file.TargetPath}\" \"{file.SourcePath}\"{Environment.NewLine}" #><# } #>
|
||||
<#foreach(var file in Files) { #><#= $" File \"/oname={file.Target}\" \"{file.Source}\"{Environment.NewLine}" #><# } #>
|
||||
|
||||
WriteUninstaller "$INSTDIR\uninstall.exe"
|
||||
; Desktop
|
||||
|
@ -26,10 +26,13 @@ namespace Katteker.Gui
|
||||
using (var window = new UpdateWindow())
|
||||
{
|
||||
var dialogResult = DialogResult.Cancel;
|
||||
if (!UpdateManager.TryCreate(out var manager) && !isStartup)
|
||||
if (!UpdateManager.TryCreate(out var manager))
|
||||
{
|
||||
if (!isStartup)
|
||||
{
|
||||
MessageBox.Show(Resources.SquirrelWrapper_CheckForUpdate,
|
||||
Resources.SquirrelWrapper_CheckForUpdate_Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user