.net - Set timeout for shutting down a service in WiX -


i have service takes between 30-60 secs stop. when run installer , upgrade service new version, following window (which verify service stopped prior continuing installation.

screenshot of error: setup unable automatically close requested applications. please ensure applications holding file in use closed before continuing installation.

is there way set timeout in installer application has enough time stop service updates end user may install? our installer built wix 3.5.

unfortunately wait not configurable in windows installer. their documentation:

wait   leaving field null or entering value of 1 causes installer  wait maximum of 30 seconds service complete before proceeding.  wait can used allow additional time critical event return failure error. value of 0 in field means wait until service control manager (scm) reports service in pending state before continuing installation. 

you'll need either service shutdown faster (would great end user ;) or have write custom action shutdown yourself. chunk of work , add more fragility install (as every custom action does) i'd try hard possible fix service.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -