I'm using a setup project, I've created an installer class:
using System;
using System.ComponentModel;
using System.Runtime.Remoting.Contexts;
namespace Client.Common
{
[RunInstaller(true)]
public class Installer : System.Configuration.Install.Installer
{
public Installer()
{
}
public override void Commit(System.Collections.IDictionary savedState)
{
try
{
base.Commit(savedState);
System.Diagnostics.Process.Start(Context.Parameters["TARGETDIR"] + "Client.UI.exe");
base.Dispose();
}
catch (Exception ex)
{
}
}
}
}
And I am setting CustomActionData of my commit custom action to:
/TARGETDIR="[TARGETDIR]\"
This works fine when I run the MSI to install for "Just Me", it opens up the exe, but when I install for "Everyone" it does not run the exe.
Am I missing something to enable this to happen for "Everyone" as well?