Uninstall appended registry value - Advanced Installer Community
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Uninstall appended registry value

Is AI uninstall capable of "removing" string text that was prepended or appended to a registry value? I tried "appending" to any empty value but it appears not to get "removed" on uninstall.
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Uninstall appended registry value

Hi,

I've tested your scenario, but I cannot reproduce the behavior. If a value is appended to a non-empty registry value, the appended value is correctly removed at uninstall, but if it is appended to an empty registry value, then the whole entry will be removed at uninstall.

Also, please keep in mind that a value can be appended only to a list of strings (REG_MULTI_SZ registry type).

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Uninstall appended registry value

Yes the value being appended to is a string.

I am though appending to the value using 2 parameters, where the first parameter, in this case, does not exist:

[CTX_VdEx_Sep][CIF_CITRIX_VD_NAME]

CIF_CITRIX_VD_NAME = CTXCIF
CTX_VdEx_Sep = {} (in this case) or can also be ", "
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Uninstall appended registry value

I have a feeling, correct me if I'm wrong, it's trying to remove a "value" that doesn't completely exist there:

MSI (s) (34:90) [11:03:21:403]: Executing op: RegRemoveValue(Name=VirtualDriverEx,Value=[~], CTXCIF,)
RemoveRegistryValues: Key: \Software\Citrix\ICA Client\Engine\Configuration\Advanced\Modules\ICA 3.0, Name: VirtualDriverEx

What's really there is just "CTXCIF" (no comma and space in front of it).

I'm trying to account for my registry value to be appended with either "CTXCIF" (if value is empty) or ", CTXCIF") if existing values are there... perhaps I can avoid all this by just "pre-pending"...
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Uninstall appended registry value

Yes append and pre-pend seem to create a key of REG_MULTI_SZ and the vendor's existing key is defined as REG_SZ. So pre-pending seems to replace whatever is there :roll:
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Uninstall appended registry value

Tried reading current value, using registry search and then writing that out with my value appended to that string which worked fine the PROBLEM than became on uninstall the value was removed and the registry value gets deleted :?

Think I'm to the point I need to do this one via custom action code.
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Uninstall appended registry value

Hi,

As I mentioned in my previous post, the append and prepend operations should work as expected if the registry entry type is "REG_MULTI_SZ". If you want to use these operations on a "REG_SZ" registry type, you can create your own custom action with this functionality.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”