29 lines
631 B
C#
29 lines
631 B
C#
using System;
|
|
using System.Collections;
|
|
using System.ComponentModel;
|
|
using System.Configuration.Install;
|
|
using System.Diagnostics;
|
|
using System.IO;
|
|
using System.Runtime.Remoting.Contexts;
|
|
|
|
namespace AppStarter
|
|
{
|
|
[RunInstaller(true)]
|
|
public class AppStarterInstaller : Installer
|
|
{
|
|
public override void Commit(IDictionary savedState)
|
|
{
|
|
base.Commit(savedState);
|
|
|
|
string appPath = Path.Combine(
|
|
@"C:\Program Files (x86)\Kilian Wirl GmbH\Verwaltung",
|
|
"Deckungsbeitrag.exe"); // Deine Haupt-App
|
|
|
|
if (File.Exists(appPath))
|
|
{
|
|
Process.Start(appPath);
|
|
}
|
|
}
|
|
}
|
|
}
|