Phil, Many thanks for the comments. To answer your questions ... So far as I recall, there were no other errors recorded in the log file - I'll check again in the morning.
So far as I know, the error dialog is standard WiX 3.8. I haven't consciously imported anything from Visual Studio. I created the WiX project within Visual Studio 2010 using the WiX-supplied template and essentially wrote the was from scratch. I hear what you're saying regarding InstalUtilLib.dll! I have got the "InstallUtil is evil and harmful" message loud and clear. However, I'm trying to install a (.NET) WMI provider and, for that, InstallUtil (in the form of InstallUtilLib.dll) appears to be the only game in town. If anyone can point me to a working example of a viable alternative I'll be only too happy to use it. I've done a reasonable amount of searching and I've tried things like invoking the .NET installer class with no success. (Interestingly, that also "appeared" to work (ie the installer completed without error - it just didn't install the WMI class properly) when run via msi exec from an elevated shell but threw an exception (from the deferred CA) when run by double-clicking the msi - more or less similar symptoms!) InstallUtilLib.dll currently feels like the "Last Chance Saloon". As regards VS MSIs - there haven't been any involved. The install DOES explicitly ask for elevation after the UI sequence. Having said all the above, one thing does occur to me. I have a VC++ project (complete with VS-supplied merge module for the VC++ redistributable) in the same installer. Could that be supplying the error dialog? I'll try removing that and see what happens. Thanks again for the response. I'm very new to WiX (and MSIs) so still trying to get this clear in my head. Regards David On 28 Apr 2014, at 18:34, "Phil Wilson" <phildgwil...@gmail.com> wrote: > I'd back up from the error 2869 and see what's before that. That > error is when it's decides to show you an error but doesn't like the > error dialog, and the actual error is prior to that. Where did you get > that error dialog from? That's a common error in Visual Studio setup > projects, so did you import their dialogs into a WiX setup? > > InstallUtilLib.dll is also a Visual Studio setup project thing. I'd > avoid it because it's unsupported since VS dropped setup projects, may > have the wrong bitness depending on your install, and I don't know if > you're even supposed to redistribute it like that. There's got to be a > way to accomplish the task without it. > > If you just ported the setup from a Visual Studio MSI then I don't > know if you'll get proper UAC handling, depending on the version of > VS. If the install is set up right the install should explicitly ask > for elevation after the UI sequence, because the install needs it. > That might be the issue, but look for the error just before the 2869. > --------------- > Phil Wilson > > > On Mon, Apr 28, 2014 at 9:58 AM, David Allen <d.al...@qub.ac.uk> wrote: >> I have an installer that invokes InstallUtilLib.dll via a set of CAs as >> documented in >> http://blogs.msdn.com/b/josealmeida/archive/2004/11/08/253831.aspx & >> http://avinashkt.blogspot.co.uk/2007/05/how-to-create-installer-using-wix-which.html >> If I simply double-click on the MSI or run it using msiexec (NOT as an >> administrator) then it fails with Error 2869! >> The relevant files from the logfile (msiexec /Log ...) are >> Action 17:17:50: Install. >> DEBUG: Error 2869: The dialog ErrorDlg has the error style bit set, but is >> not an error dialog >> 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) (44:C0) [17:17:52:800]: Product: OpenPKI Tools -- 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) (04!EC) [17:17:52:800]: >> DEBUG: Error 2769: Custom Action Install 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: Install, 1, >> CustomAction Install returned actual error code 1603 (note this may not be >> 100% accurate if translation happened inside sandbox) >> Action ended 17:17:52: InstallFinalize. Return value 3. >> Action 17:17:52: Rollback. Rolling back action: >> >> If I run the installer via msiexec AS AN ADMINISTRATOR it works fine! >> >> For reference - the set of CAs, including the custom action "Install" to >> which the Error 2769 refers is as follows: - >> <InstallExecuteSequence> >> <Custom Action="InstallSetProp" >> After="StartServices">$WmiProvider>2</Custom> >> <Custom Action="Install" >> After="InstallSetProp">$WmiProvider>2</Custom> >> >> <Custom Action="UninstallSetProp" >> After="MsiUnpublishAssemblies">$WmiProvider=2</Custom> >> <Custom Action="Uninstall" >> After="UninstallSetProp">$WmiProvider=2</Custom> >> >> <Custom Action="CommitSetProp" >> After="Rollback">$WmiProvider>2</Custom> >> <Custom Action="Commit" After="CommitSetProp">$WmiProvider>2</Custom> >> >> <Custom Action="RollbackSetProp" >> After="Install">$WmiProvider>2</Custom> >> <Custom Action="Rollback" >> After="RollbackSetProp">$WmiProvider>2</Custom> >> </InstallExecuteSequence> >> >> <CustomAction Id="Uninstall" BinaryKey="InstallUtil" >> DllEntry="ManagedInstall" Execute="deferred" /> >> <CustomAction Id="UninstallSetProp" Property="Uninstall" Value=' >> /installtype=notransaction /action=uninstall /Logfile= "[#WmiProviderDLL]" >> "[#WmiProviderDLLConfig]"' /> >> >> <CustomAction Id="Install" BinaryKey="InstallUtil" >> DllEntry="ManagedInstall" Execute="deferred" /> >> <CustomAction Id="InstallSetProp" Property="Install" Value=' >> /installtype=notransaction /action=install /Logfile= "[#WmiProviderDLL]" >> "[#WmiProviderDLLConfig]"' /> >> >> <CustomAction Id="Rollback" BinaryKey="InstallUtil" >> DllEntry="ManagedInstall" Execute="rollback" /> >> <CustomAction Id="RollbackSetProp" Property="Rollback" Value=' >> /installtype=notransaction /action=rollback /Logfile= "[#WmiProviderDLL]" >> "[#WmiProviderDLLConfig]"' /> >> >> <CustomAction Id="Commit" BinaryKey="InstallUtil" >> DllEntry="ManagedInstall" Execute="commit" /> >> <CustomAction Id="CommitSetProp" Property="Commit" Value=' >> /installtype=notransaction /action=commit /Logfile= "[#WmiProviderDLL]" >> "[#WmiProviderDLLConfig]"' /> >> >> >> Am I missing something that should be obvious? It feels as if the CAs are >> not being run with admin rights (even though I am prompted). >> >> All suggestions gratefully received. Apologies in advance if this is a FAQ >> with a well known answer that I've missed! >> >> Regards >> David >> >> >> >> ------------------------------------------------------------------------------ >> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE >> Instantly run your Selenium tests across 300+ browser/OS combos. Get >> unparalleled scalability from the best Selenium testing platform available. >> Simple to use. Nothing to install. Get started now for free." >> http://p.sf.net/sfu/SauceLabs >> _______________________________________________ >> WiX-users mailing list >> WiX-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------------ > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE > Instantly run your Selenium tests across 300+ browser/OS combos. Get > unparalleled scalability from the best Selenium testing platform available. > Simple to use. Nothing to install. Get started now for free." > http://p.sf.net/sfu/SauceLabs > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available. Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users