rvellame
Posts: 18
Joined: Thu Jan 05, 2012 4:32 pm

Windows registry corruption - Blue screen startup error

Hi all,

This time we are facing a very serious problem. Here is the scenario:

We have a product version 4.0.0000.0000 and we developed a new version, 4.0.0002.0000.

We built an update executable, witch upgrades the version .0000 to .0002. The problem is:

When adding a registry removal key instruction and selecting the option "Delete (if present) at uninstall", the setup gives the error message:

"Could not delete key \. Make sure you have sufficient privileges to access the key, or contact technical support."
(I dont know if the message is exactly this, since our project's language is Brazilian Portuguese, and this is my free translation).

After this error message, the user's registry gets corrupted and it's not even possible to start on safe mode and restore the system. It's necessary to reinstall Windows.

The removal key instruction points to:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\NEON 4.0.0000.0000

And, as I mentioned before, it ONLY happens when the option "Delete (if present) at uninstall" is checked.

I have 2 serious considerations about this issue:

1) This removal key was added because after upgrading, the previous version key was been left, causing the display of 2 "NEON" (our product name) on Windows Add/Remove programs list. Is there anything wrong on the upgrade configuration of the project? Because I think this key should be removed and replaced by the new version's key).

2) We had to reinstall 3 of our laboratory machines because of this error. I just can't understand how an this option (even if it`s been used by mistake) is causing such damage.

Unfortunately, this episode made us very insecure about the Advanced Installer product, at least until the causes of the damage are completly clarified.

The attached file is the update log (until the point of the error, because after that, if the user aborts the setup it increases until 42mb and even compressed I was unable to send to the forum), the Setup project (of version 4.0.0000) and the Update project (version 4.0.0002).

I can make the executables available too, if necessary, as well as any other information.

We really need some urgency in this case. Hope you understand.

Thanks in advance,

Raul Vellame
Attachments
Logs and Projects.rar
(30.67 KiB) Downloaded 340 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Windows registry corruption - Blue screen startup error

Hi Raul,

This is very strange behavior, but we will have to replicate it here so we can investigate the reason. Can you please upload the entire log and built packages to an online location and send us the link to support at advancedinstaller dot com?

Did this behavior occur on any machine you installed the original and upgraded version on? Also, please specify the OSs you already tried the upgrade scenario.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rvellame
Posts: 18
Joined: Thu Jan 05, 2012 4:32 pm

Re: Windows registry corruption - Blue screen startup error

Hi, Mihai.

Yes, it happened on all tested machines, 1 Windows XP, 1 Windows 7 and a Windows XP virtual macine.

In a few minutes I'll send the e-mail.

Thanks.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Windows registry corruption - Blue screen startup error

Hello Raul,

It's pretty daunting to determine the issue exactly, especially as we cannot replicate this behavior.
However, after discussing the issue with our development team we can narrow our assumption to a registry conflict.

To sum up, on the registry manifesting the issue, the following operations are performed:
- the uninstall process of the old version is trying to delete the registry through Advanced Installer custom action
- the install process of the new version is trying to delete the registry through Advanced Installer custom action
- then Windows Installer RemoveRegistry is trying to delete the same registry

Three removal operations on the same key are an overkill and obviously unnecessary.

Can you please try to exclude those removals and see the outcome?
Also to get an overall view, can you please explain what you are trying to remove and why?

Meanwhile our development team will continue the investigation.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rvellame
Posts: 18
Joined: Thu Jan 05, 2012 4:32 pm

Re: Windows registry corruption - Blue screen startup error

Hi Mihai,

I didn't add a custom action to remove it. I've added it on the registry pane > New Key > Remove. (Is it the same?)

As I mentioned on the first e-mail, I've added this instruction because after upgrading it was been kept (witch, by itself is uncommon):
1) This removal key was added because after upgrading, the previous version key was been left, causing the display of 2 "NEON" (our product name) on Windows Add/Remove programs list. Is there anything wrong on the upgrade configuration of the project? Because I think this key should be removed and replaced by the new version's key).
And I also said that this error ONLY happens when the option "Delete (if present) at uninstall" is checked. If I delete the key removal instruction or uncheck the option, the error doesn't occur. However, our development team is very insecure of using the Advanced Installed solution after this error, specially when we don't know the cause and, sincerely, don't take it as an offense, but there should be some kind of protection for user's silliness, I mean, one checkbox incorrectly checked and the user's system is crashed.

It is also very curious that the error could not be reproduced with you. Have you tried on Windows XP SP3? It happens on 100% the times. It's very simple to reproduce:

1) Install the "NEON 4.0.0000.0000 Setup.exe" available at the link I sent you;
2) Run the "NEON.4.0.0002.0000.Update.exe" on the same link;
3) The error message about the registry will appear;
4) Reboot the system;
5) Your OS is crashed.

Once again, I'm available for any necessary elucidation.

Thanks,

Raul.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Windows registry corruption - Blue screen startup error

Hi Raul,

I was indeed able to replicate this behavior on one virtual machine with XP SP3.
As I mentioned on the first e-mail, I've added this instruction because after upgrading it was been kept (witch, by itself is uncommon)
Your upgrade settings are very strange and also not recommended given your present circumstances. The approach you took, most likely lead to this conflict.
Please read the "Saving the project under a different name" section from our user guide:
http://www.advancedinstaller.com/user-g ... jects.html

The recommended "Automatically upgrade older product versions" steps you are trying to implement are listed here:
http://www.advancedinstaller.com/user-g ... rades.html

Thus, the upgrade code of the two projects should be the same, not included from the Upgrades page. Also, most importantly in a major upgrade scenario, the components GUIDs should not be the same.

You can try to fix your existing .AIPs by having different component GUIDs. However, if you are willing to further use Advanced Installer my suggestion is to start from scratch using the correct approach.
However, our development team is very insecure of using the Advanced Installed solution after this error, specially when we don't know the cause and, sincerely, don't take it as an offense, but there should be some kind of protection for user's silliness, I mean, one checkbox incorrectly checked and the user's system is crashed.
This is indeed strange behavior, but I can assure you nothing similar has ever happened before. The duplicate component GUIDs and settings combination most likely produced the conflict. Moreover, we cannot be responsible for any damage dealt by actions performed outside our recommended guidance. Nonetheless this was a breach and we'll be sure to investigate the reasons on our end to avoid any future similar conflict.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rvellame
Posts: 18
Joined: Thu Jan 05, 2012 4:32 pm

Re: Windows registry corruption - Blue screen startup error

Thanks, Mihai.

I'll follow the recommended approaches and post a feedback as soon as possible.

Best wishes,

Raul Vellame.

Return to “Common Problems”