Hi Alain,

because I register the service through a vb script, and there's some other
things the script does before registering it using
CreateServiceForApplication and I dont want to make any changes to the
script. 

Is there any way to either terminate the process before uninstall, or make
sure the uninstall custom action (that does the unregistering etc..) gets
called before this filesinuse dialog box shows up? 

I'm trying this but it seems to run the custom uninstall action for a
"repair" too .. otherwise I'm getting it to run before the filesinUse dialog
shows up by just a check for Installed


 <InstallExecuteSequence>
      <Custom Action="RunInstallScript" After="InstallFiles" >NOT
Installed</Custom>
    </InstallExecuteSequence>
    <InstallExecuteSequence>
      <Custom Action='BeforeUninstall' Before='InstallValidate'>Installed
</Custom>
    </InstallExecuteSequence>
    <CustomAction Id="RunInstallScript" ExeCommand="cmd /c
install-solidfireprovider.cmd" Directory="INSTALLFOLDER" Execute="deferred"
Return="check"/>
    <CustomAction Id="BeforeUninstall" ExeCommand="cmd /c
uninstall-solidfireprovider.cmd" Directory="INSTALLFOLDER"
Execute="immediate" Return="check"/>

I can't use REMOVE="ALL" as that would get sequenced after the
installvalidate action, right ? 

    



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/stop-a-service-before-uninstall-tp7588564p7588568.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to