Hi everyone.
I'm using CustomActions to modify some files after installation. But I
don't really understand the order in which the actions are done.
In my source wxs, I have declared some <File> elements, a
<ServiceInstall>, a <ServiceControl Id="Apache2_Service_Ctrl3"
Name="APM_WEBSERVICE" Wait="yes" Start="install" /> and some custom
actions. The sequence I would like to execute is:
-Install the files
-Install the service
-ConfigureHttpConf (custom action)
-start the service
To achieve this, I wrote the following code:
<CustomAction Id='ConfigureHttpConf' BinaryKey='apmwsinst.dll'
DllEntry='apm_edit_conf' />
<InstallExecuteSequence>
<Custom Action='ConfigureHttpConf'' After='InstallServices'>NOT
Installed</Custom>
</InstallExecuteSequence>
<Binary Id='apmwsinst.dll'
SourceFile="$(var.FACT_DESTDIR)\shared_lib\apmwsinst.dll" />
........
<Directory Id="Apache2_bin_for_service_install" Name="bin">
<Component Id="APM_WEBSERVICES_APACHE_SERVICE"
Guid="A0C7D596-6E76-493C-AA82-BD27596AB8B5">
<File Id="httpd_bin_Apache.exe" Name="Apache.exe"
Source="$(var.FACT_DESTDIR)\ship\httpd\bin\Apache.exe" KeyPath="yes" />
<ServiceInstall Id="Apache2_Service"
Name="APM_WEBSERVICE" Arguments="-k runservice" Type="ownProcess"
Start="auto" ErrorControl="ignore" Description="IAM Policy Manager Web
Service" DisplayName="IAM Policy Manager Administration WebService"
Vital="no">
<ServiceDependency Id="Tcpip" />
<ServiceDependency Id="Afd" />
</ServiceInstall>
<ServiceControl Id="Apache2_Service_Ctrl1"
Name="APM_WEBSERVICE" Wait="yes" Stop="both" />
<ServiceControl Id="Apache2_Service_Ctrl2"
Name="APM_WEBSERVICE" Wait="yes" Remove="uninstall" />
<ServiceControl Id="Apache2_Service_Ctrl3"
Name="APM_WEBSERVICE" Wait="yes" Start="install" />
</Component>
</Directory>
...........
but I keep getting an error at install. The custom action fails because
the file it is supposed to modify hasn't been installed yet. What am I
doing wrong?
Thanks for your help.
Fred
begin:vcard
fn;quoted-printable:Fr=C3=A9d=C3=A9ric Viollet
n;quoted-printable:Viollet;Fr=C3=A9d=C3=A9ric
org:Bull, Architect of an Open World (TM);Evidian S.A.
adr;quoted-printable:;;Rue Jean Jaur=C3=A8s;Les Clayes Sous Bois;;78340;France
email;internet:[EMAIL PROTECTED]
title:Software Engineer
tel;work:01 30 80 77 34
url:http://www.evidian.com - http://www.bull.com
version:2.1
end:vcard
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users