Note that there are some explanatory texts on larger screens.

plurals
  1. POStarting services that depend on side-by-side assemblies using Windows Installer
    primarykey
    data
    text
    <p>We are in the process of updating the construction of our product's .msi package for Windows Server 2008. The main component of our install is an application that is run as a Windows service. There is also a configuration application that gets run during install to set up registry entries for use by the service.</p> <p>The service and the configuration application rely on the Microsoft C/C++ runtime and MFC, which are included in the .msi as merge modules. The assemblies for the C/C++ runtime and MFC are committed during the InstallFinalize, which seems to preclude the starting of the service using the mechanisms provided by Windows Installer (is this correct?) Certainly, we see side-by-side errors with at least the configuration application if it is run before InstallFinalize.</p> <p>The approach we have taken is to run the configuration application as a "commit" custom action after InstallFinalize, and have this application start the service. This requires that the application is executed with elevated privileges (for which we use a manifest containing a trustInfo section.) This further requires that the .msi is configured to run this application without Impersonation (which otherwise confounds the privilege elevation.)</p> <p>Is this an acceptable approach? How future-proof is this likely to be? Are there any gotchas to be aware of?</p> <p>It seems that this is a problem that has been encountered by others:</p> <p><a href="http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg12666.html" rel="nofollow noreferrer">http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg12666.html</a></p> <p>Is there an officially (or unofficially) accepted way to deal with such problems?</p> <p>As an addendum to this, is there any way of ensuring that an application run as a custom action during the install process gets focus when it starts up? Applications started in this manner always seem to pop up behind the installer and the installer keeps focus, which is not a particularly user-friendly effect.</p> <p>Many Thanks,</p> <p>Bruce.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload