kumarkiranc
Posts: 85
Joined: Tue Sep 18, 2007 6:49 am

Repair Problem

Hi,
when installing my application i am writing some subkeys, key values and values into the registry.

When i am doing repair of my application, the subkeys and key values are there in registry. The values are getting erased.

Thanks & Regards
Kiran
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Repair Problem

Hi,
When i am doing repair of my application, the subkeys and key values are there in registry. The values are getting erased.
I'm not sure I understand what you mean. Can you please give me more details about this? What is the exact behavior you are encountering?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kumarkiranc
Posts: 85
Joined: Tue Sep 18, 2007 6:49 am

Re: Repair Problem

hi,

when i install my application. The registry will be cretaed as shown below

[HKEY_LOCAL_MACHINE\SOFTWARE\MyCompany]

[HKEY_LOCAL_MACHINE\SOFTWARE\MyCompany\SubKey]
"Sample1"="1"
"Sample2"="2"
"Sample3"="3"

when i do repair the registry is getting modified as shown below

[HKEY_LOCAL_MACHINE\SOFTWARE\MyCompany]

[HKEY_LOCAL_MACHINE\SOFTWARE\MyCompany\SubKey]
"Sample1"=""
"Sample2"=""
"Sample3"=""

Thanks
kiran
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Repair Problem

Hi,

Do these registry entries use installer properties as their values? If this is the case then this is a normal behavior (the properties set during the first installation become empty during a repair). The solution for this is to create searches which get the values of the properties from the registry.

For example, if you have a registry value which uses the TEST property you need to create a search named TEST which tries to find the registry value.

If this is not the case please send us a small test case which reproduces this behavior (the AIP and the resulted MSI package) to support at advancedinstaller dot com so we can investigate it.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kumarkiranc
Posts: 85
Joined: Tue Sep 18, 2007 6:49 am

Re: Repair Problem

hi,


I am inserting registry values through a C# dll and i don't want to change the values in registry after i repair my application.



Thanks
Kiran
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Repair Problem

Hi,

Does this custom action use the NOT Installed condition? If the registry entries are created by a custom action then the MSI package shouldn't modify them (unless these registry entries are in the package). Can you please give me more details about this?

Also, can you please send us the AIP and custom action you are using so we can investigate them?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”