custom action changes
This commit is contained in:
parent
57d946bf33
commit
8a7606a7c3
@ -4,16 +4,29 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using Microsoft.Deployment.WindowsInstaller;
|
||||
|
||||
using PdfScribeCore;
|
||||
|
||||
namespace PdfScribeInstallCustomAction
|
||||
{
|
||||
public class CustomActions
|
||||
{
|
||||
[CustomAction]
|
||||
public static ActionResult CustomAction1(Session session)
|
||||
{
|
||||
session.Log("Begin CustomAction1");
|
||||
|
||||
return ActionResult.Success;
|
||||
[CustomAction]
|
||||
public static ActionResult CheckIfPrinterNotInstalled(Session session)
|
||||
{
|
||||
ActionResult resultCode;
|
||||
|
||||
PdfScribeInstaller installer = new PdfScribeInstaller();
|
||||
if (installer.IsPdfScribePrinterInstalled())
|
||||
{
|
||||
resultCode = ActionResult.Success;
|
||||
}
|
||||
else
|
||||
{
|
||||
resultCode = ActionResult.Failure;
|
||||
}
|
||||
|
||||
return resultCode;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user