Office deployment wizard for InstaSoft customers: - Install Office 2019/2021/2024 (Standard, Professional Plus, Home & Business) - Auto-download ODT from Microsoft, generate config XML, run setup - Remove existing Office installations (C2R + MSI) - License troubleshooting via ospp.vbs (dstatus, unpkey) - Fluent Design UI (WPF .NET Framework 4.8, Win7+ compatible) - Hungarian interface, multi-language Office installation - Product key input with auto-activation support Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
35 sor
1.1 KiB
C#
35 sor
1.1 KiB
C#
using System.Windows.Controls;
|
|
using InstaSoftOfficeTool.Models;
|
|
|
|
namespace InstaSoftOfficeTool.Pages
|
|
{
|
|
public partial class VersionPage : Page, IWizardPage
|
|
{
|
|
private readonly MainWindow _main;
|
|
private readonly InstallConfig _config;
|
|
|
|
public VersionPage(MainWindow main, InstallConfig config)
|
|
{
|
|
InitializeComponent();
|
|
_main = main;
|
|
_config = config;
|
|
|
|
// Restore selection
|
|
switch (_config.Version)
|
|
{
|
|
case OfficeVersion.Office2024: Rb2024.IsChecked = true; break;
|
|
case OfficeVersion.Office2021: Rb2021.IsChecked = true; break;
|
|
case OfficeVersion.Office2019: Rb2019.IsChecked = true; break;
|
|
}
|
|
}
|
|
|
|
public bool Validate()
|
|
{
|
|
if (Rb2024.IsChecked == true) _config.Version = OfficeVersion.Office2024;
|
|
else if (Rb2021.IsChecked == true) _config.Version = OfficeVersion.Office2021;
|
|
else if (Rb2019.IsChecked == true) _config.Version = OfficeVersion.Office2019;
|
|
return true;
|
|
}
|
|
}
|
|
}
|