D
David Sworder
Hi,
In the past, I've used VS.NET to create simple MSI files that install assemblies to a particular directory. I'm now faced with the task of creating an MSI file that's a bit more complex. My application consists of a client EXE, a server EXE (designed to run as a service), and some common DLLs. Here is the basic logic that I'd like to embed in the MSI:
a) If the target machine doesn't have the .NET framework installed, an error message should be shown and the install should abort immediately.
b) The client EXE and common DLLs are always installed.
c) The server EXE is only installed on Operating Systems that support services. This would include Win2000/XP/2003 or Long-HORN, or any other Microsoft O/S *other* than Win98 or WinME.
d) If the O/S supports services, the server EXE needs to be registered using 'installutil'.
Questions: As described in (b), is it possible for the MSI to detect the O/S and install the server EXE conditionally? Will the MSI file know where to find 'installutil' as described in (d)? Recall that the path to 'installutil' varies from system to system depending upon the version of the .NET runtime that is installed, the O/S, and other factors.
Thanks in advance for any help you can provide.
Thanks,
In the past, I've used VS.NET to create simple MSI files that install assemblies to a particular directory. I'm now faced with the task of creating an MSI file that's a bit more complex. My application consists of a client EXE, a server EXE (designed to run as a service), and some common DLLs. Here is the basic logic that I'd like to embed in the MSI:
a) If the target machine doesn't have the .NET framework installed, an error message should be shown and the install should abort immediately.
b) The client EXE and common DLLs are always installed.
c) The server EXE is only installed on Operating Systems that support services. This would include Win2000/XP/2003 or Long-HORN, or any other Microsoft O/S *other* than Win98 or WinME.
d) If the O/S supports services, the server EXE needs to be registered using 'installutil'.
Questions: As described in (b), is it possible for the MSI to detect the O/S and install the server EXE conditionally? Will the MSI file know where to find 'installutil' as described in (d)? Recall that the path to 'installutil' varies from system to system depending upon the version of the .NET runtime that is installed, the O/S, and other factors.
Thanks in advance for any help you can provide.
Thanks,