PdfScribe/PdfScribeInstallCustomAction/CustomAction.cs

33 lines
737 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Deployment.WindowsInstaller;
2013-12-31 03:39:33 +08:00
using PdfScribeCore;
namespace PdfScribeInstallCustomAction
{
public class CustomActions
{
2013-12-31 03:39:33 +08:00
[CustomAction]
2013-12-31 03:39:33 +08:00
public static ActionResult CheckIfPrinterNotInstalled(Session session)
{
2013-12-31 03:39:33 +08:00
ActionResult resultCode;
PdfScribeInstaller installer = new PdfScribeInstaller();
if (installer.IsPdfScribePrinterInstalled())
{
resultCode = ActionResult.Success;
}
else
{
resultCode = ActionResult.Failure;
}
2013-12-31 03:39:33 +08:00
return resultCode;
}
}
}