restart - WiX CloseApplication for exe and dll -


i've created wix setup project based on article wix 3 tutorial: understanding main wxs , wxi file because gives wix needed application shutdown.

however, i'm puzzled outcome. here's situation:

we have executable uses dll , create setup installs executable , dll. execute setup.

case 1: next, change executable , not dll , create setup again. start installed application , make sure dll loaded. if execute second setup, dialog shown asking user shutdown executable expected.

case 2: if not change application dll , execute setup while application running , dll loaded, no dialog shown. @ end of setup dialog appears asking if want restart computer.

is expected behaviour , how can force application shutdown dialog of case 1 when dll changed in case 2? not want user having restart computer because application running on server cannot restarted.

this determined windows installer during costing process. installer decides files need installed / updated , calculates how disk space needed , if there file locks. if there file locks, attempts resolve lock process window handle. if can this, you'll dialog. if can't, won't. doesn't mean reboot won't needed, can't give useful information on how avoid it.

a few additional points:

make sure versioning exe , dll. if old dll 1.0.0.0 , new dll 1.0.0.0 costing "nothing here".

how exe use dll @ runtime? might not have lock on during entire life of process.

understand msi's reboot behavior can altered through use of properties such reboot=reallysuppress

here's articles read:

installvalidate fileinusedialog system reboots


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -