Hello Oleg,
Sorry for my vagueness, yes the custom dialog is resolved (thanks to your help).
Here is where I am having the remaining trouble:
var project = new ManagedProject("ConvertCommandCenter",
var project = new ManagedProject("ConvertCommandCenter",
File service = null;
var project = new ManagedProject("ConvertCommandCenter",
Bob
Sorry for my vagueness, yes the custom dialog is resolved (thanks to your help).
Here is where I am having the remaining trouble:
var project = new ManagedProject("ConvertCommandCenter",
new Dir(@"%ProgramFiles%\InFlow Technology LLC\ConvertCommandCenter",
new DirFiles(@"..\..\..\CommandCenter\bin\Release\*.*",
service = new File(@"%ProgramFiles%\InFlow Technology LLC\ConvertCommandCenter\CommandCenter.exe"))));
If I change it to:var project = new ManagedProject("ConvertCommandCenter",
new Dir(@"%ProgramFiles%\InFlow Technology LLC\ConvertCommandCenter",
new DirFiles(@"..\..\..\CommandCenter\bin\Release\*.*")));
It will successfully place my project files into the destination folder but it needs to set the service variable so I can invoke the service installer method:File service = null;
var project = new ManagedProject("ConvertCommandCenter",
new Dir(@"%ProgramFiles%\InFlow Technology LLC\ConvertCommandCenter",
new DirFiles(@"..\..\..\CommandCenter\bin\Release\*.*",
service = new File(@"%ProgramFiles%\InFlow Technology LLC\ConvertCommandCenter\CommandCenter.exe"))));
service.ServiceInstaller = new ServiceInstaller
{
Name = "ConvertCommandCenter",
Description = "InFlow Convert Command Center",
StartOn = SvcEvent.Install,
StopOn = SvcEvent.InstallUninstall_Wait,
RemoveOn = SvcEvent.Uninstall_Wait,
DelayedAutoStart = true,
ServiceSid = ServiceSid.none,
FirstFailureActionType = FailureActionType.restart,
SecondFailureActionType = FailureActionType.restart,
ThirdFailureActionType = FailureActionType.restart,
RestartServiceDelayInSeconds = 30,
ResetPeriodInDays = 1,
PreShutdownDelay = 1000 * 60 * 3,
RebootMessage = "Failure actions do not specify reboot",
};
I can remove the DirFiles parameter and get the service to install but I then do not get all of the project files placed into the destination:var project = new ManagedProject("ConvertCommandCenter",
new Dir(@"%ProgramFiles%\InFlow Technology LLC\ConvertCommandCenter",
service = new File(@"%ProgramFiles%\InFlow Technology LLC\ConvertCommandCenter\CommandCenter.exe")));
I am hoping this makes better sense and thanks again for your great help,Bob