Patch-Reg key not being removed - Advanced Installer Community
clint
Posts: 139
Joined: Fri Jun 19, 2009 9:46 am
Location: Germany

Patch-Reg key not being removed

Hi,
In my last Upgrade package, I added two new registry values to HKCU, but unfortunately in the hurry I didn't see that the key and key values landed directly under HKCU.

This cause the installer to start everytime a user starts my application after logging onto a Terminal Server, and of course on a normal workstation , if the key is deleted, Installer adds it back.

I created a Patch, added the key values to the correct location, and deleted the wrong ones using the Value Removal function and the bad registry node/folder by selecting the opration "Remove this key with all of it's values and subkeys".

I tested this on a normal workstation, and the bad key and the key values are not removed, and when I manually deleted the key, Installer doesn't try to create it again.

My questiona are:

1. Before I send this out, should the problem on terminal server also be corrected? ( I cannot test this myself right now)

2. Will the user have to wait for the next upgrade until the bad key is actually removed? Or, can I have this key be removed by the patch before hand?

Thank you!

clint
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Patch-Reg key not being removed

Hello Clint,

Can you please send us the .AIPs (target, upgraded and patch project files) to support at advancedinstaller dot com so we can investigate them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
clint
Posts: 139
Joined: Fri Jun 19, 2009 9:46 am
Location: Germany

Re: Patch-Reg key not being removed

Follow up,

The problem was caused from asigning the registry key removal operation (Properties-Operations-Component value on Install), to a new component, which wasn't getting added during installation.

The new component was the correct registry location (a application compatibility layers value for Vista/W7), but under my VPC-XP machine, this key will not be allowed to be added by Windows :roll:

After I assinged the operation to a component which does get upgraded, everything worked.

What is curious though, is that for the individual registry key values, I added key value removal functions, which require no component operation, and the values also still remained. I would have expected for them to be removed, and just the registry key remain, but this wasn't the case.


A word of warning: Daniel said to put the key value removals under the same component as were the bad key value additions. I didn't do this, but added them to a new component. :twisted:

After the patch was applied, and the application was starting (the bad key was under directly HKCU), Installer went into an endless loop, continuously adding and deleted the key values :?

Return to “Common Problems”