[wix-users] Resolving a CNDL1150 warning
Hoover, Jacob
Jacob.Hoover at greenheck.com
Fri Aug 25 12:19:49 PDT 2017
https://github.com/wixtoolset/wix3/commit/e8504c54e4cd186f676931e1d39a6e8400e575b8
https://github.com/wixtoolset/issues/issues/5306
https://msdn.microsoft.com/en-us/library/windows/desktop/dd407945%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
Important
Windows Services provides the ability to automatically perform predefined actions in response to a failure in a service. To support programmatically setting up these Recovery Actions when a service fails, MsiServiceConfigFailureActions was added to MSI in version MSI 5.0. However, this functionality is not working as expected.
To workaround this issue, an application developer should use the Custom Action functionality in MSI to run sc.exe and set the Recovery Options appropriately.
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of mark at optimiumhealth.com
Sent: Friday, August 25, 2017 10:54 AM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] Resolving a CNDL1150 warning
* Which version of WiX are you building with?
3.11.0.1701
* Which version of Visual Studio are you building with (if any)?
Visual Studio 2015 Community Edition Update 3
* Which version of the WiX Toolset Visual Studio Extension are you
building with (if any)?
0.9.21.62588
* Which version of .NET are you building with?
The projects that build the services are targeting 4.5.2 The system is running 4.7
* If the problem occurs when installing your packages built with WiX,
what is the version of Windows the package is running on?
n/a
* Describe the problem and the steps to reproduce it.
In a ServiceInstall element of my WIX project I have an element
<ServiceConfig DelayedAutoStart="yes" OnInstall="yes" OnReinstall ="yes" />
This generates a 'warning CNDL1150: ServiceConfig functionality is documented in the Windows Installer SDK to "not [work] as expected."
Consider replacing ServiceConfig with the WixUtilExtension ServiceConfig element'
I then added the WixUtilExtension to the project, added the appropriate XLMNS reference, changed the element to
<wixutil:ServiceConfig DelayedAutoStart="yes" OnInstall="yes" OnReinstall ="yes" />
Intellisense shows that all three of the attributes are not declared and indeed the build generates three CNDL004 'undefined attribute' errors.
* Describe the behavior you expected and how it differed from the
actual behavior.
I expect to be able to replace 'ServiceConfig' with 'wixutil:ServiceConfig'
and to still be able to set the needed three attributes, Alternatively I need some documentation on how to set these attributes without the 'ServiceConfig' element.
Mark
Optimium Health Inc
________________________________________
Mark Stega, M.D.
1795 Beachfield Road; Annapolis, MD; 21409-6042
phone: 443.994.0169
email: <mailto:mark at optimiumhealth.com> mark at optimiumhealth.com
Visit Us On The Internet: <http://www.optimiumhealth.com/> http://www.optimiumhealth.com/
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users
mailing list