Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4484f19d14 | |||
| ca17e5d433 | |||
| d89e36b962 |
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
; Erfordert Inno Setup 6.x (https://jrsoftware.org/isinfo.php)
|
; Erfordert Inno Setup 6.x (https://jrsoftware.org/isinfo.php)
|
||||||
|
|
||||||
#define MyAppName "Starface Outlook Sync"
|
#define MyAppName "Starface Outlook Sync"
|
||||||
#define MyAppVersion "0.0.0.20"
|
#define MyAppVersion "0.0.0.21"
|
||||||
#define MyAppPublisher "HackerSoft - Hacker-Net Telekommunikation"
|
#define MyAppPublisher "HackerSoft - Hacker-Net Telekommunikation"
|
||||||
#define MyAppURL "https://www.hacker-net.de"
|
#define MyAppURL "https://www.hacker-net.de"
|
||||||
#define MyAppExeName "StarfaceOutlookSync.exe"
|
#define MyAppExeName "StarfaceOutlookSync.exe"
|
||||||
|
|||||||
@@ -41,39 +41,42 @@ namespace StarfaceOutlookSync.Models
|
|||||||
|
|
||||||
public void ApplyOutlookSecuritySetting()
|
public void ApplyOutlookSecuritySetting()
|
||||||
{
|
{
|
||||||
try
|
// Alle Office-Versionen abdecken (16.0 = 2016/2019/2021/2024/365, 15.0 = 2013)
|
||||||
{
|
var versions = new[] { "16.0", "15.0" };
|
||||||
var regPath = @"Software\Policies\Microsoft\Office\16.0\Outlook\Security";
|
|
||||||
|
|
||||||
if (AutoAcceptOutlookPrompt)
|
foreach (var ver in versions)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
// Alle Outlook Object Model Guard Prompts unterdruecken
|
var regPath = $@"Software\Policies\Microsoft\Office\{ver}\Outlook\Security";
|
||||||
var key = Registry.CurrentUser.CreateSubKey(regPath);
|
|
||||||
key.SetValue("ObjectModelGuard", 2, RegistryValueKind.DWord);
|
if (AutoAcceptOutlookPrompt)
|
||||||
key.SetValue("PromptOOMAddressBookAccess", 2, RegistryValueKind.DWord);
|
|
||||||
key.SetValue("PromptOOMAddressInformationAccess", 2, RegistryValueKind.DWord);
|
|
||||||
key.SetValue("AdminSecurityMode", 3, RegistryValueKind.DWord);
|
|
||||||
key.Close();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Zurueck auf Standard (Werte loeschen)
|
|
||||||
try
|
|
||||||
{
|
{
|
||||||
var key = Registry.CurrentUser.OpenSubKey(regPath, true);
|
var key = Registry.CurrentUser.CreateSubKey(regPath);
|
||||||
if (key != null)
|
key.SetValue("ObjectModelGuard", 2, RegistryValueKind.DWord);
|
||||||
{
|
key.SetValue("PromptOOMAddressBookAccess", 2, RegistryValueKind.DWord);
|
||||||
try { key.DeleteValue("ObjectModelGuard"); } catch { }
|
key.SetValue("PromptOOMAddressInformationAccess", 2, RegistryValueKind.DWord);
|
||||||
try { key.DeleteValue("PromptOOMAddressBookAccess"); } catch { }
|
key.SetValue("PromptOOMSend", 2, RegistryValueKind.DWord);
|
||||||
try { key.DeleteValue("PromptOOMAddressInformationAccess"); } catch { }
|
key.SetValue("PromptOOMSaveAs", 2, RegistryValueKind.DWord);
|
||||||
try { key.DeleteValue("AdminSecurityMode"); } catch { }
|
key.SetValue("PromptOOMFormulaAccess", 2, RegistryValueKind.DWord);
|
||||||
key.Close();
|
key.SetValue("PromptOOMCustomAction", 2, RegistryValueKind.DWord);
|
||||||
}
|
key.SetValue("PromptSimpleMAPISend", 2, RegistryValueKind.DWord);
|
||||||
|
key.SetValue("PromptSimpleMAPINameResolve", 2, RegistryValueKind.DWord);
|
||||||
|
key.SetValue("PromptSimpleMAPIOpenMessage", 2, RegistryValueKind.DWord);
|
||||||
|
key.SetValue("AdminSecurityMode", 3, RegistryValueKind.DWord);
|
||||||
|
key.Close();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Registry.CurrentUser.DeleteSubKey(regPath, false);
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
}
|
}
|
||||||
catch { }
|
|
||||||
}
|
}
|
||||||
|
catch { }
|
||||||
}
|
}
|
||||||
catch { }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,9 +7,9 @@
|
|||||||
<AssemblyTitle>Starface Outlook Sync</AssemblyTitle>
|
<AssemblyTitle>Starface Outlook Sync</AssemblyTitle>
|
||||||
<Company>HackerSoft - Hacker-Net Telekommunikation</Company>
|
<Company>HackerSoft - Hacker-Net Telekommunikation</Company>
|
||||||
<Product>Starface Outlook Sync</Product>
|
<Product>Starface Outlook Sync</Product>
|
||||||
<Version>0.0.0.20</Version>
|
<Version>0.0.0.21</Version>
|
||||||
<AssemblyVersion>0.0.0.20</AssemblyVersion>
|
<AssemblyVersion>0.0.0.21</AssemblyVersion>
|
||||||
<FileVersion>0.0.0.20</FileVersion>
|
<FileVersion>0.0.0.21</FileVersion>
|
||||||
<Description>Synchronisiert Outlook-Kontakte mit Starface Telefonanlage</Description>
|
<Description>Synchronisiert Outlook-Kontakte mit Starface Telefonanlage</Description>
|
||||||
<Copyright>Stefan Hacker - HackerSoft</Copyright>
|
<Copyright>Stefan Hacker - HackerSoft</Copyright>
|
||||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ namespace StarfaceOutlookSync.UI
|
|||||||
|
|
||||||
var lblVersion = new Label
|
var lblVersion = new Label
|
||||||
{
|
{
|
||||||
Text = "Version 0.0.0.20",
|
Text = "Version 0.0.0.21",
|
||||||
Left = 0, Top = 56, Width = 340, Height = 20,
|
Left = 0, Top = 56, Width = 340, Height = 20,
|
||||||
TextAlign = ContentAlignment.MiddleCenter,
|
TextAlign = ContentAlignment.MiddleCenter,
|
||||||
ForeColor = Color.Gray
|
ForeColor = Color.Gray
|
||||||
|
|||||||
@@ -76,8 +76,8 @@ namespace StarfaceOutlookSync.UI
|
|||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
Text = "Starface Kontakt-Sync";
|
Text = "Starface Kontakt-Sync";
|
||||||
Size = new Size(620, 450);
|
Size = new Size(830, 450);
|
||||||
MinimumSize = new Size(500, 350);
|
MinimumSize = new Size(830, 350);
|
||||||
StartPosition = FormStartPosition.CenterScreen;
|
StartPosition = FormStartPosition.CenterScreen;
|
||||||
Font = new Font("Segoe UI", 9);
|
Font = new Font("Segoe UI", 9);
|
||||||
Icon = AppIcon.GetIcon();
|
Icon = AppIcon.GetIcon();
|
||||||
|
|||||||
@@ -47,20 +47,29 @@ namespace StarfaceOutlookSync.UI
|
|||||||
Checked = _settings.AutoAcceptOutlookPrompt
|
Checked = _settings.AutoAcceptOutlookPrompt
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var lblHint = new Label
|
||||||
|
{
|
||||||
|
Text = "Hinweis: Outlook muss nach Aenderung dieser Option\nneu gestartet werden.",
|
||||||
|
Left = 38, Top = 102, Width = 300, Height = 32,
|
||||||
|
ForeColor = Color.Gray,
|
||||||
|
Font = new Font("Segoe UI", 8)
|
||||||
|
};
|
||||||
|
|
||||||
_btnSave = new Button
|
_btnSave = new Button
|
||||||
{
|
{
|
||||||
Text = "Speichern", Left = 95, Top = 160, Width = 85, Height = 28,
|
Text = "Speichern", Left = 95, Top = 170, Width = 85, Height = 28,
|
||||||
DialogResult = DialogResult.None
|
DialogResult = DialogResult.None
|
||||||
};
|
};
|
||||||
_btnSave.Click += (s, e) => Save();
|
_btnSave.Click += (s, e) => Save();
|
||||||
|
|
||||||
_btnCancel = new Button
|
_btnCancel = new Button
|
||||||
{
|
{
|
||||||
Text = "Abbrechen", Left = 189, Top = 160, Width = 85, Height = 28,
|
Text = "Abbrechen", Left = 189, Top = 170, Width = 85, Height = 28,
|
||||||
DialogResult = DialogResult.Cancel
|
DialogResult = DialogResult.Cancel
|
||||||
};
|
};
|
||||||
|
|
||||||
Controls.AddRange(new Control[] { _chkStartMinimized, _chkSyncOnStart, _chkAutoAcceptOutlook, _btnSave, _btnCancel });
|
Size = new Size(380, 260);
|
||||||
|
Controls.AddRange(new Control[] { _chkStartMinimized, _chkSyncOnStart, _chkAutoAcceptOutlook, lblHint, _btnSave, _btnCancel });
|
||||||
AcceptButton = _btnSave;
|
AcceptButton = _btnSave;
|
||||||
CancelButton = _btnCancel;
|
CancelButton = _btnCancel;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user