|
24 | 24 | Description="Hudson Continuous Integration Server"
|
25 | 25 | Account="[SERVICEACCOUNT]"
|
26 | 26 | Password="[SERVICEPASSWORD]" />
|
27 |
| - <ServiceControl Id="StartHudsonService" Name="Hudson" Start="install" Wait="no" /> |
28 |
| - <ServiceControl Id="StopHudsonService" Name="Hudson" Stop="both" Wait="yes" Remove="uninstall" /> |
| 27 | + <ServiceControl Id="ControlHudsonService" Name="Hudson" Start="install" Stop="both" Wait="yes" Remove="uninstall"/> |
29 | 28 | </Component>
|
30 | 29 | </Directory>
|
31 | 30 | </Directory>
|
|
35 | 34 | <UpgradeVersion Minimum="0.0.0" Maximum="99.99.99" Property="PREVIOUSVERSIONINSTALLED" />
|
36 | 35 | </Upgrade>
|
37 | 36 | <InstallExecuteSequence>
|
38 |
| - <RemoveExistingProducts After="InstallFinalize"/> |
| 37 | + <!-- |
| 38 | + Earlier I suffered a problem where after an upgrade, all the JRE files are removed |
| 39 | + (if I then repair the installation, it'll work, so it's not the missing definitions in the msi file.) |
| 40 | + |
| 41 | + I'm still new to MSI/WiX to be able to really understand what's going on, but |
| 42 | + http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg32537.html seems to explain the problem, |
| 43 | + (as caused by the interaction between deferred removal), and the take away from this thread |
| 44 | + as a whole seems to be that for auto-generated wxs files (from heat), it's just not possible |
| 45 | + to get the file updates done right (WTF?!). |
| 46 | + |
| 47 | + The InstallInitialize seems to work. My naive hypothesis is that this stops the service and |
| 48 | + deletes all the files before new ones are added (OTOH, I still get a dialog that some files |
| 49 | + are in use and I need to reboot, so I could be all wrong, or maybe the installer is showing |
| 50 | + this dialog incorrectly as a precaution, as alluded in http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg06878.html) |
| 51 | + |
| 52 | + I remember seeing another e-mail on the wix-users list about <ServiceControl> not actually |
| 53 | + waiting until the full termination of the service, and if so, this still might not work. |
| 54 | + |
| 55 | + In any case, noting my experiments so that future changes to this value will be done very carefully. |
| 56 | + --> |
| 57 | + <RemoveExistingProducts After="InstallInitialize"/> |
39 | 58 | </InstallExecuteSequence>
|
40 | 59 |
|
41 | 60 | <Feature Id='Complete' Level='1'>
|
|
0 commit comments