mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-28 09:51:06 -06:00
34 lines
812 B
C#
34 lines
812 B
C#
//css_dir ..\..\;
|
|
//css_ref Wix_bin\SDK\Microsoft.Deployment.WindowsInstaller.dll;
|
|
//css_ref System.Core.dll;
|
|
|
|
using System;
|
|
using System.Windows.Forms;
|
|
using Microsoft.Deployment.WindowsInstaller;
|
|
using WixSharp;
|
|
|
|
class Script
|
|
{
|
|
static public void Main()
|
|
{
|
|
var project =
|
|
new Project("Setup",
|
|
new Dir(@"%ProgramFiles%\RunAppTest",
|
|
new File("readme.txt")),
|
|
new ManagedAction("MyAction"));
|
|
|
|
project.UI = WUI.WixUI_ProgressOnly;
|
|
|
|
Compiler.BuildMsi(project);
|
|
}
|
|
}
|
|
|
|
public class CustonActions
|
|
{
|
|
[CustomAction]
|
|
public static ActionResult MyAction(Session session)
|
|
{
|
|
System.Diagnostics.Process.Start("Notepad.exe", session["INSTALLDIR"] + @"\readme.txt");
|
|
return ActionResult.Success;
|
|
}
|
|
} |