Re: [WiX-users] Installer runs OK via msiexec but fails when double-clicked
I didn't have the InstallPrivileges=elevated in the package section. I've added it but no change. -Original Message- From: Jeremiahf [mailto:jeremi...@gmail.com] Sent: 29 April 2014 00:31 To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Installer runs OK via msiexec but fails when double-clicked Hello, I know you said the installer prompts for elevated but do you have this? InstallPrivileges=elevated InstallScope=perMachine/ In the package ID section in your product.wxs file. On Mon, Apr 28, 2014 at 5:46 PM, b.ras...@leonit.nl wrote: Dit mailadres is niet meer in gebruik. Mail kan je voortaan sturen naar basti...@careercontrol.nl. - - 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 -- They may forget what you said but they will never forget how you made them feel. -- Anonymous --- --- 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
Re: [WiX-users] Installer runs OK via msiexec but fails when double-clicked
If this is happening on just a single machine, or maybe a set with common corporate setups, check the security access on the system and user temp folders. Also maybe the folder where the target assembly of the custom action is located. There have been some issues where the system account loses rights to some folders. The C++ code in InstallUtiLib is extracted as a CA to a temp folder, runs and loads up a version of the framework, locates your assembly and uses reflection to locate the installer classes and methods, instantiates and calls them. It's a complex black box which doesn't lend itself to debugging, but assuming it's a security issue it might be related to access to the folders involved with those activities. --- Phil Wilson On Tue, Apr 29, 2014 at 4:48 AM, David Allen d.al...@qub.ac.uk wrote: I didn't have the InstallPrivileges=elevated in the package section. I've added it but no change. -Original Message- From: Jeremiahf [mailto:jeremi...@gmail.com] Sent: 29 April 2014 00:31 To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Installer runs OK via msiexec but fails when double-clicked Hello, I know you said the installer prompts for elevated but do you have this? InstallPrivileges=elevated InstallScope=perMachine/ In the package ID section in your product.wxs file. On Mon, Apr 28, 2014 at 5:46 PM, b.ras...@leonit.nl wrote: Dit mailadres is niet meer in gebruik. Mail kan je voortaan sturen naar basti...@careercontrol.nl. - - 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 -- They may forget what you said but they will never forget how you made them feel. -- Anonymous --- --- 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
Re: [WiX-users] Installer runs OK via msiexec but fails when double-clicked
When defining your CA in your wxs file are you impersonating the CA? Impersonate=yes Just a thought. On Tue, Apr 29, 2014 at 6:48 AM, David Allen d.al...@qub.ac.uk wrote: I didn't have the InstallPrivileges=elevated in the package section. I've added it but no change. -Original Message- From: Jeremiahf [mailto:jeremi...@gmail.com] Sent: 29 April 2014 00:31 To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Installer runs OK via msiexec but fails when double-clicked Hello, I know you said the installer prompts for elevated but do you have this? InstallPrivileges=elevated InstallScope=perMachine/ In the package ID section in your product.wxs file. On Mon, Apr 28, 2014 at 5:46 PM, b.ras...@leonit.nl wrote: Dit mailadres is niet meer in gebruik. Mail kan je voortaan sturen naar basti...@careercontrol.nl. - - 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 -- They may forget what you said but they will never forget how you made them feel. -- Anonymous --- --- 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 -- They may forget what you said but they will never forget how you made them feel. -- Anonymous -- 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
Re: [WiX-users] Installer runs OK via msiexec but fails when double-clicked
Dit mailadres is niet meer in gebruik. Mail kan je voortaan sturen naar basti...@careercontrol.nl. -- 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
[WiX-users] Installer runs OK via msiexec but fails when double-clicked
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$WmiProvidergt;2/Custom Custom Action=Install After=InstallSetProp$WmiProvidergt;2/Custom Custom Action=UninstallSetProp After=MsiUnpublishAssemblies$WmiProvider=2/Custom Custom Action=Uninstall After=UninstallSetProp$WmiProvider=2/Custom Custom Action=CommitSetProp After=Rollback$WmiProvidergt;2/Custom Custom Action=Commit After=CommitSetProp$WmiProvidergt;2/Custom Custom Action=RollbackSetProp After=Install$WmiProvidergt;2/Custom Custom Action=Rollback After=RollbackSetProp$WmiProvidergt;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
Re: [WiX-users] Installer runs OK via msiexec but fails when double-clicked
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$WmiProvidergt;2/Custom Custom Action=Install After=InstallSetProp$WmiProvidergt;2/Custom Custom Action=UninstallSetProp After=MsiUnpublishAssemblies$WmiProvider=2/Custom Custom Action=Uninstall After=UninstallSetProp$WmiProvider=2/Custom Custom Action=CommitSetProp After=Rollback$WmiProvidergt;2/Custom Custom Action=Commit After=CommitSetProp$WmiProvidergt;2/Custom Custom Action=RollbackSetProp After=Install$WmiProvidergt;2/Custom Custom Action=Rollback After=RollbackSetProp$WmiProvidergt;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
Re: [WiX-users] Installer runs OK via msiexec but fails when double-clicked
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$WmiProvidergt;2/Custom Custom Action=Install After=InstallSetProp$WmiProvidergt;2/Custom Custom Action=UninstallSetProp After=MsiUnpublishAssemblies$WmiProvider=2/Custom Custom
Re: [WiX-users] Installer runs OK via msiexec but fails when double-clicked
Dit mailadres is niet meer in gebruik. Mail kan je voortaan sturen naar basti...@careercontrol.nl. -- 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
Re: [WiX-users] Installer runs OK via msiexec but fails when double-clicked
Hello, I know you said the installer prompts for elevated but do you have this? InstallPrivileges=elevated InstallScope=perMachine/ In the package ID section in your product.wxs file. On Mon, Apr 28, 2014 at 5:46 PM, b.ras...@leonit.nl wrote: Dit mailadres is niet meer in gebruik. Mail kan je voortaan sturen naar basti...@careercontrol.nl. -- 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 -- They may forget what you said but they will never forget how you made them feel. -- Anonymous -- 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