Programm_Wirl/AppStarter.cs
2026-02-25 08:34:15 +01:00

32 lines
676 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Deckungsbeitrag
{
[RunInstaller(true)]
public class AppStarterInstaller : Installer
{
public override void Commit(IDictionary savedState)
{
base.Commit(savedState);
string appPath = Path.Combine(
Context.Parameters["TARGETDIR"],
"Wirl-Verwaltung.exe"); // Deine Haupt-App
if (File.Exists(appPath))
{
Process.Start(appPath);
}
}
}
}