wix - Service does not start after updating; how to do dependencies between components -


we have installer install windows service , files. when update installation new installation (by installing new package; minor upgrade, product version changes, product id not change), service cannot start. because files missing in installation folder needed service during service start up.

currently have <feature /> , there 1 <componentgroup />. <componentgroup /> contains service , contains other components, has files. looks (empty attributes placeholders , filled):

<component id="" guid="" directory="">     <file source="" id="" />     <file source="" id="" /> </component> <component id="" guid="" directory="">     <file source="" id="" />     <file source="" id="" /> </component> <component id="" guid="" directory="">     <file source="" id="" />     <file source="" id="" /> </component> <component id="" guid="" directory="">     <file source="" id="" />     <file source="" id="" />     <file source="" id="" />     <file source="" id="" />     <serviceinstall id="serviceinstaller" type="ownprocess" vital="yes" name="" displayname="" description="" start="auto" account="localsystem" errorcontrol="ignore" interactive="no">         <util:serviceconfig firstfailureactiontype="restart" secondfailureactiontype="restart" thirdfailureactiontype="restart" resetperiodindays="5" />     </serviceinstall>     <servicecontrol id="startservice" start="install" stop="both" remove="uninstall" name="" wait="yes" /> </component> 

the bad thing service depends on other components.

how can specify dependencies? or need put files in component contains <serviceinstall />?

thanks, johannes

i suspect problem caused else. plan discover real problem run msiexec myapp.msi /log install.log , inspect resulting log file. log can prove whether files installed first , uncover issue.

during installexecutesequence when actual installation performed, windows installer installs components through sequence of actions. action lays down files on disk called installfiles, , action starts services called startservices.

unless tell otherwise, wix schedules startservices action after installfiles action, files should present on disk before service started.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -