[wix-users] Installing Windows Service using WIX

Christopher Painter chrpai at iswix.com
Wed Jan 4 04:10:21 PST 2017


Oh my, that blog article is all wrong.   I've been trying to evangelize for 12 years this pattern is wrong but it's hard to succeed when the classes are in the .NET framework and the pattern is described in just about every C#/.NET development book.

Please watch this short video of how to 1) create a service 2) create an MSI for the service  3) test the msi/service in 2 minutes.   

https://www.youtube.com/watch?v=bxbcPnjfzIc


-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Mufaddal Shafqat
Sent: Wednesday, January 4, 2017 1:24 AM
To: wix-devs at lists.wixtoolset.org; wix-users at lists.wixtoolset.org
Subject: [wix-users] Installing Windows Service using WIX

Hi,

I am trying to create an installer using WIX which installs a Windows Service. I have followed a guide provided in the link<http://avinashkt.blogspot.com/2007/05/how-to-create-installer-using-wix-which.html>, but for some reason I am not able to execute the Installer and getting an exception as follows:

MSI (s) (3C:DC) [19:54:24:816]: Executing op: CustomActionSchedule(Action=InstallService,ActionType=1025,Source=BinaryData,Target=ManagedInstall,CustomActionData=/installtype=notransaction /action=install  "C:\Program Files (x86)\Notifier Application\config.xml") MSI (s) (3C:A8) [19:54:24:818]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI88E1.tmp, Entrypoint: ManagedInstall MSI (s) (3C:44) [19:54:24:818]: Generating random cookie.
MSI (s) (3C:44) [19:54:24:822]: Created Custom Action Server with PID 4044 (0xFCC).
MSI (s) (3C:7C) [19:54:24:836]: Running as a service.
MSI (s) (3C:7C) [19:54:24:839]: Hello, I'm your 64bit Impersonated custom action server.
DEBUG: Error 2869:  The dialog ErrorDlg has the error style bit set, but is not an error dialog MSI (c) (68:1C) [19:54:25:512]: Font created.  Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg

The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2869. The arguments are: ErrorDlg, , MSI (c) (68:1C) [19:54:26:232]: Product: Afiniti Notifier Application -- The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2869. The arguments are: ErrorDlg, ,

Error 1001.
MSI (s) (3C!8C) [19:54:26:233]:
MSI (s) (3C:A8) [19:54:26:235]: Leaked MSIHANDLE (17) of type 790531 for thread 5516 MSI (s) (3C:A8) [19:54:26:235]: Note: 1: 2769 2: InstallService 3: 1
DEBUG: Error 2769:  Custom Action InstallService did not close 1 MSIHANDLEs.
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2769. The arguments are: InstallService, 1, CustomAction InstallService returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox) Action ended 19:54:26: InstallFinalize. Return value 3.


Can someone please help me identifying the mistake. I have attached the solution for your reference.


Looking forward for your reply.


Thank You


Regards,

Mufaddal

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list