F. David, I would be interested in your MSI package. I would like to add it to my sourceforge project (https://sourceforge.net/projects/nightelves) would you be willing to send me the source code, or committing it yourself if I gave you svn access.
I also write project templates for SharpDevelop, an open source .NET IDE. I would like to turn your WIX project into a template for a service installing project. Regards, Justin Dearing On 4/29/07, F. David del Campo Hill <[EMAIL PROTECTED]> wrote: > > Hi All, > > I am using WIX 2 to repackage STunnel for Windows into a MSI file I can > use to attach to an Active Directory group policy object. I have had no > problems in creating WIX files to install the files and shortcuts necessary > for STunnel, but I am having problems in making the MSI file install and > uninstall a service. > > The main WXS file in the project has the following entry to install the > service: > > ... > <DirectoryRef Id='TARGETDIR'> > <Component Id="service0" DiskId="1" > Guid="AB2050E4-94C2-499B-92AA-066DBD5C33E4"> > <ServiceInstall Id="serv0" Arguments='[!file3] -service -install -quiet' > Description="Service for stunnel" ErrorControl="normal" > Interactive="yes" Name="stunnel" DisplayName="stunnel" Start="auto" > Type="ownProcess" Vital="yes" /> > </Component> > </DirectoryRef> > ... > > file3 is the executable for stunnel.exe. 'stunnel.exe -service -install > -quiet' is the line the non-MSI STunnel service has as executable. > The features list has the following for choosing to install the service: > > ... > <Feature Id="service" Title="stunnel Service" > Description="Install the stunnel service" Level="1" InstallDefault="local" > AllowAdvertise="no"> > <ComponentRef Id='service0' /> > </Feature> > ... > > The MSI file I have created works in all respects except that the > service is not installed; not even an error message is given. Even the > presence of Vital="yes" does not stop it from working even though the > service is not installed. > > I have also tried to install the service using a CustomAction: > > ... > <CustomAction Id='InstallService' FileKey='file3' ExeCommand='-install > -quiet' > Return='ignore' /> > <CustomAction Id='StartService' FileKey='file3' ExeCommand='-start -quiet' > Return='ignore' /> > <InstallExecuteSequence> > <Custom Action='InstallService' After='InstallFinalize' /> > <Custom Action='StartService' After='InstallService' /> > </InstallExecuteSequence> > ... > > This actually works as intended (the service is installed and started at the > end of the installation), but it has the obvious problem that uninstalling > the MSI will not stop and uninstall the service, so it is no good (remember, > this MSI is for automatic installation through a GPO, so no user involvement > is allowed). > > What am I doing wrong? The total lack of error messages or failure to > terminate the installation makes me believe that there is something > fundamentally wrong in the way I am trying to install the service, but I > cannot find any tutorials on how to do it properly; can anyone help, please? > > Thank you for your help. > > F. David del Campo Hill > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users