Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

msi doesn't rollback installation of merge modules


4 replies to this topic

saurabhgupta1403

saurabhgupta1403
  • Full Members
  • 17 posts

Posted 12 May 2010 - 18:43

Hello All,

I am getting a problem in my msi. I have included VC run times as merge modules in my msi and i have some custom actions in it.

One of the custom action is deferred one named "CALaunch" and is made to fail in some case. I have sequenced this CA after the step "CreateShortcuts". I tested this msi on clean 32 bit win7 and windows xp. In windows 7, after CA failure, all the merge modules are rollbacked and removed from the machine. But on windows xp, no rollback of CA takes place after the CA fails and hence VC run times are left on the machine.

I am not getting the reason for this behavior. The msi logs are attached with the mail. Can anyone help me figure out this issue.

Thanks...





Attached Files



Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 13 May 2010 - 09:57

Are you talking about files like these:
QUOTE
MSI (s) (F8:7C) [10:27:01:377]: This following file was not removed, because it is protected by Windows: C:\WINDOWS\winsxs\x86_Microsoft.VC90.MFC_1fc8b3b9a1e18e3b_9.0.30729.4137_x-ww_a57b1f13\mfc90.dll


saurabhgupta1403

saurabhgupta1403
  • Full Members
  • 17 posts

Posted 13 May 2010 - 11:28

QUOTE (Stefan Krueger @ 2010-05-13 09:57)
Are you talking about files like these:
QUOTE
MSI (s) (F8:7C) [10:27:01:377]: This following file was not removed, because it is protected by Windows: C:\WINDOWS\winsxs\x86_Microsoft.VC90.MFC_1fc8b3b9a1e18e3b_9.0.30729.4137_x-ww_a57b1f13\mfc90.dll

yes Stefan,

All the VC run time folder and files remains on the client machine even if CA fails. These VC run time folders are present in C:\windows\winsxs .

VBScab

VBScab
  • Full Members
  • 436 posts

Posted 13 May 2010 - 11:55

One, I don't get what your CA is doing. You're implying that it has something to do with installing the runtimes, yet you say you're doing that by utilising a merge module.

Two, the log tells you why they're not removed: they're protected files.
- Don't know why 'x' happened? Want to know why 'y' happened? ProcMon will tell you.
- Try using http://www.google.com before posting.
- I answer questions only via forums. Please appreciate the time I give here and don't send me personal emails.

saurabhgupta1403

saurabhgupta1403
  • Full Members
  • 17 posts

Posted 13 May 2010 - 12:14

Well, my msi is first installing merge modules of VC run times. Then my deferred mode custom action runs. So, i want that if custom action fails during its execution, the msi should rollback and it should uninstall the merge modules also as expected. But on windows xp, it is refusing to do so since the files are protected.

Is there any workaround for handling this.