Aaron Stebner's WebLog

Thoughts about setup and deployment issues, WiX, XNA, the .NET Framework and Visual Studio

Problem solved - weird rollback behavior in Windows Installer with .NET Framework setup

Problem solved - weird rollback behavior in Windows Installer with .NET Framework setup

  • Comments 31

Hey all, I'm happy to report that we figured out the root cause of the really strange rollback behavior we saw in the .NET Framework setup (described in a post earlier this week) and I wanted to pass on what we found in case any of you hit this issue with a Windows Installer-based setup in the future.  Here is a rough outline of the issue and the underlying problem:

  1. There was an orphaned registry value under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts that pointed to a rollback script
  2. At the end of all Windows Installer setups, it performs a standard action to “remove backup files“ and when it does this it searches this registry value and executes any rollback scripts (*.rbs) it finds there
  3. On this machine, the RBS file belonged to a different product.  Note that you can use the script named WiLstScr.vbs in the Windows Installer SDK to display the contents of an RBS in a text file to figure out what product it belongs to.
  4. When this orphaned RBS file was executed, a custom action within it failed because it actually belonged to another product and some of the properties it needed weren't set properly, and that caused the whole installation of the current product to rollback

The only thing we are not sure about is why the RBS file was orphaned in the registry and on the user's machine to begin with, so we'll have to keep digging into that if we get any additional repro machines and see if we can figure it out.  We are going to look into making the next version of Windows Installer smarter about which RBS files it will run when it is removing backup files to try to help avoid this scenario in the future, but in the meantime if you encounter this behavior in any of your scenarios, start by taking a look at that registry value and see if there is any orphaned data that may be causing your setup to rollback.

Hope this helps......

  • BINGO! I had the same problem with Visio 2003 and Adobe install (rollback in the end of the install). Per your instruction I found a "46cl.rbs" file delete the registry entry the point to that file and this time the install for these products went fine with no issues. I think this should go to Microsoft. Why if one install faill should prevent other install????
  • Woo@ Thanks to a google search and your great article here, I can not again install and uninstall software! Thanks!
  • You are a lifesaver. Thanks for posting this solution!
  • I went into my registry and navigated to the installer folder, but there is no rollback subfolder.  How can I try this fix?
  • Hi Marc - If you do not have a rollback sub-hive in your registry, then you are not experiencing the same issue that is described in this blog post.  Can you please provide more detail about the installation problem that you are seeing so I can try to figure out what the issue is?
  • PingBack from http://www.hilpers.it/2596327-errore-installer-1603-a

  • :error1722 there is a problem with the windows installer package,a program as part of the setup did not finish as expected contact your support personne or packagevendor.

  • Hi Error1722 - Are you seeing this error during .NET Framework setup or some other product?  If possible, can you please use the information listed at blogs.msdn.com/.../help-me-help-you-if-you-have-setup-bugs.aspx to try to collect verbose log files from the failing install so I can try to take a closer look?

  • rollback error. no files found such as  46cl.rbs. help pleease

  • Hi zehn - Can you please use instructions like the ones at blogs.msdn.com/.../help-me-help-you-if-you-have-setup-bugs.aspx to enable verbose logging, then reproduce this failure again, zip the log file, upload it to a file share like http://onedrive.live.com, and then reply back here and post a link to your zip file?  After you do that, I'll try to take a look at the log file and see if I can figure out anything about what is causing this error.

  • Guys i dont want the reason behind the issue...plz tell me steps to solve the problem.Every time i try to install .net it keeps on rolling back

  • Hi Vijay - We need to see the log files from your failing .NET Framework install in order to help figure out how to fix it.  Can you please use the tool described at blogs.msdn.com/.../6458047.aspx to collect all of your setup log files, upload the file named %temp%\vslogs.cab that this tool will create to a file server (such as http://onedrive.live.com), and then reply back here and provide a link that I can use to download your log files and take a closer look?

  • i have same problem with vijay......every time i try to install net framework 4 on windows 7 always rolling back...

    i try to find something problem on regedit never found any rollback script...

  • Hi Sukma - The issue described in this blog post is only one possible problem that can cause an installer to fail.  Any type of failure will cause setup to fail and roll back though, so if you don't see anything related to those rollback scripts in your registry, you're hitting some other problem.

    Can you please use the tool described at blogs.msdn.com/.../6458047.aspx to collect all of your setup log files, upload the file named %temp%\vslogs.cab that this tool will create to a file server (such as http://onedrive.live.com), and then reply back here and provide a link that I can use to download your log files and take a closer look?

  • C:\windows\windowsupdate.log



















    C:\Users\raian\AppData\Local\Temp\Microsoft .NET Framework 4 Setup_20140627_130243653-MSI_netfx_Core_x86.msi.txt

    C:\Users\raian\AppData\Local\Temp\Microsoft .NET Framework 4 Setup_20140627_135838337-MSI_netfx_Core_x86.msi.txt

    C:\Users\raian\AppData\Local\Temp\Microsoft .NET Framework 4 Setup_20140627_140207737-MSI_netfx_Core_x86.msi.txt

    C:\Users\raian\AppData\Local\Temp\Microsoft .NET Framework 4 Setup_20140628_092852948-MSI_netfx_Core_x86.msi.txt

    C:\Users\raian\AppData\Local\Temp\Microsoft .NET Framework 4 Setup_20140628_143637811-MSI_netfx_Core_x86.msi.txt

    C:\Users\raian\AppData\Local\Temp\Microsoft .NET Framework 4 Setup_20140628_144337956-MSI_netfx_Core_x86.msi.txt

    C:\Users\raian\AppData\Local\Temp\Microsoft .NET Framework 4 Setup_20140628_144910830-MSI_netfx_Core_x86.msi.txt

    C:\Users\raian\AppData\Local\Temp\Microsoft .NET Framework 4 Setup_20140628_145816531-MSI_netfx_Core_x86.msi.txt

    C:\Users\raian\AppData\Local\Temp\Microsoft .NET Framework 4.5 Setup_20140628_094657478-MSI_netfx_Full_x86.msi.txt

    C:\Users\raian\AppData\Local\Temp\Microsoft .NET Framework 4.5 Setup_20140628_130109096-MSI_netfx_Full_x86.msi.txt

Page 1 of 3 (31 items) 123
Leave a Comment
  • Please add 3 and 8 and type the answer here:
  • Post