hileyj
11/21/2007 4:22:00 PM
OK, I'm pretty sure this has something to do with the RTC merge module being
included with the setup.
To test, I used a machine that did not have the correct version of RTC
present before the application was installed. I then installed the app and
the necessary RTC assemblies showed up in the WinSxS directory. After doing
an upgrade, these RTC directories (v5.2.1002.3) were removed! Trying to run
the app from the .exe failed with an event that said it could not find the
correct RTC assembly. Running from the shortcut caused the repair which
replaced those assemblies and everything was good after that.
So, I tried a workaround by changing the order of the InstallExecuteSequence
so that the RemoveExistingProducts action came at the very end, after the
install finalize. This seemed to work in the sense that it prevented the
repair from taking place and it is possible to run from the .exe after the
upgrade.
However, I have a new problem... we have custom actions that execute on
Install, commit and uninstall. When I upgrade from a previous release of
software to one with the new InstallExecuteSequence the install fails. It
seems that it can't find other application components that are needed in the
'SetupHelper'. From the MsiExec log:
(Action=_DB0CD5F9_984B_4DBD_8C85_90608B8E7D0B.commit,ActionType=1537,Source=BinaryData,Target=ManagedInstall,CustomActionData=/installtype=notransaction
/action=commit /LogFile= "C:\Program Files\XX\APP\SetupHelper2.dll"
"C:\Users\Jon\AppData\Local\Temp\CFGF6A5.tmp")
MSI (s) (5C:4C) [16:40:47:493]: Executing op:
ActionStart(Name=_7F8FE87B_8220_4E5F_BAA4_024F7A45125F.install,,)
Action 16:40:47: _7F8FE87B_8220_4E5F_BAA4_024F7A45125F.install.
MSI (s) (5C:4C) [16:40:47:494]: Executing op:
CustomActionSchedule(Action=_7F8FE87B_8220_4E5F_BAA4_024F7A45125F.install,ActionType=1025,Source=BinaryData,Target=ManagedInstall,CustomActionData=/installtype=notransaction
/action=install /LogFile= /SourceDir="c:\Users\Jon\Desktop\APP3.0.4\\"
"C:\Program Files\XX\APP\SetupHelper2.dll"
"C:\Users\Jon\AppData\Local\Temp\CFGF6A5.tmp")
MSI (s) (5C:AC) [16:40:47:515]: Invoking remote custom action. DLL:
C:\Windows\Installer\MSI33B2.tmp, Entrypoint: ManagedInstall
MSI (s) (5C!2C) [16:40:47:944]: Note: 1: 2262 2: Error 3: -2147287038
MSI (c) (14:C4) [16:40:47:945]: Note: 1: 2262 2: Error 3: -2147287038
DEBUG: Error 2869: The dialog ErrorDialog has the error style bit set, but
is not an error dialog
And after this the install fails and rolls back. Note that upgrading from a
version with the new InstallExecuteSequence to another with the same sequence
works OK.
Jon