シンプルな Windows アプリケーションとそのインストーラーを作成しました ( Setup project
)。
インストール後にアプリケーションを自動起動したいので、このスクリプトをInstaller.csに追加しました
public override void Commit(System.Collections.IDictionary savedState)
{
string appPath = Context.Parameters["AssemblyPath"].ToString();
System.Threading.Thread.Sleep(500);
System.Diagnostics.Process.Start(appPath, "2");
}
アプリケーションの起動は完璧ですが、SYSTEM user
.
Default user
MSIを開くアプリケーションで自動起動アプリケーションを実行したい。