mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-28 09:51:06 -06:00
26 lines
868 B
C#
26 lines
868 B
C#
//css_dir ..\..\;
|
|
//css_ref Wix_bin\SDK\Microsoft.Deployment.WindowsInstaller.dll;
|
|
//css_ref System.Core.dll;
|
|
using System;
|
|
using WixSharp;
|
|
|
|
class Script
|
|
{
|
|
static public void Main()
|
|
{
|
|
File notepad;
|
|
|
|
var project = new Project("My Product",
|
|
new WixGuid("6fe30b47-2577-43ad-9095-1861ba25889b"),
|
|
new Dir(@"%ProgramFiles%\MyApp",
|
|
notepad = new File(@"C:\WINDOWS\system32\notepad.exe",
|
|
new FileShortcut("Launch Notepad", @"%Desktop%")
|
|
{
|
|
Attributes = new Attributes() { { "Hotkey", "0" } }
|
|
})));
|
|
|
|
notepad.AttributesDefinition = "Component:SharedDllRefCount=yes";
|
|
|
|
var wxsFile = Compiler.BuildMsi(project);
|
|
}
|
|
} |