Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wix Error for ServiceInstaller if at least one ServiceConfig parameter is not specified #699

Closed
GilesBathgate opened this issue Aug 10, 2019 · 1 comment

Comments

@GilesBathgate
Copy link
Contributor

GilesBathgate commented Aug 10, 2019

I have the following simple ServiceInstaller setup:

var project = new ManagedProject("MyProject",
                new Dir(@"%ProgramFiles%\My Company\My Product",
                   new File("MyService.exe")
                   {
                       ServiceInstaller = new ServiceInstaller
                       {
                           Name = "Name",
                           DisplayName = "Display Name",
                           Description = "Description",
                           ErrorControl = SvcErrorControl.normal,
                           Start = SvcStartType.demand,
                           Type = SvcType.ownProcess,
                           Account = "[SERVICEACCOUNT]",
                           Password = "[SERVICEPASSWORD]",
                           StopOn = SvcEvent.Uninstall,
                           RemoveOn = SvcEvent.Uninstall,
                           ConfigureServiceTrigger = ConfigureServiceTrigger.None
                       }
                   }));

            project.GUID = new Guid("6fe30b47-2577-43ad-9095-1861ba25889b");

            project.BuildMsi();

During the build I get the error:

Error		The ServiceConfig element's DelayedAutoStart, FailureActionsWhen, PreShutdownDelay, ServiceSid, or RequiredPrivilege attribute was not found; one of these is required.	Setup1	C:\Users\Giles\source\repos\WixSharpSolution\Setup1\MyProject.wxs	16	
@GilesBathgate
Copy link
Contributor Author

Fixed by #698

oleg-shilo pushed a commit that referenced this issue Aug 11, 2019
* Added registry values aggregator (`RegKey`):
  ```
  new RegKey(fullSetup, RegistryHive.LocalMachine, @"Software\My Company\My Product",
      new RegValue("Message", "Hello"),
      new RegValue("Count", 777)),
  ```
* Issue #699: Wix Error for ServiceInstaller if at least one ServiceConfig parameter is not specified
* Improvements to DigitalSignature to allow loading cert by sha1hash
* Implemented custom message dialog instead (of the default MessageBox.Show) for displaying error message (if any detected) during the MSI session.
* Issue #688: Adding prompt to CloseApplication prevents installer from completing.
* Issue #683. Close MSI Interop handles when getting data from MSI
* Issue #672: outdir and BuildMsiCmd fails because the outdir is not created
* Issue #670: msi is always creating root folder, even if feature is disabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants