tatianes
Posts: 3
Joined: Mon Mar 23, 2009 11:31 pm

Is it possible to encrypt a registry key?

On the project I'm working on, it's crucial that I write some information to the registry. The ideal would be if the information got encrypted before making to the registry.
Is it possible? If not, do you have any recommendations on how I can modify a value before writing it to the registry?

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

Re: Is it possible to encrypt a registry key?

Hi,

Unfortunately Advanced Installer doesn't have a built-in feature for this. However, you could encrypt the information by using a custom property and a custom action.

You can set a property in the registry value by using the Registry page. In the "Custom Actions" page you can use a custom action to encrypt the value of the property before the registry entries are created ("InstallExecuteSequence" -> "WriteRegistryValues" standard action).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tatianes
Posts: 3
Joined: Mon Mar 23, 2009 11:31 pm

Re: Is it possible to encrypt a registry key?

Hi Cosmin,

Thanks for your prompt response.

What I'm doing to contour this problem is, my .exe file looks for some information on the registry after it has been installed using Advanced Installer. The way it works: I first create a key during installation that's a combination of properties and write it to the registry. My .exe reads that key, breaks it down and compare with each individual value.

For example:
My key value will be [PhysicalMemory][VirtualMemory]
Advanced Installer adds that value to the registry during installation
My .exe is launched and it looks in the registry first. It reads the value that was created during installation, breaks it down in two values and them go get those values on the registry to compare with the ones it got from breaking down the key. The question is, where are those information ([PhysicalMemory][VirtualMemory]) located within the registry?

I hope my explanation is clear.
Thanks a lot,
tati
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Is it possible to encrypt a registry key?

Hi,
My key value will be [PhysicalMemory][VirtualMemory]
Advanced Installer adds that value to the registry during installation
My .exe is launched and it looks in the registry first. It reads the value that was created during installation, breaks it down in two values and them go get those values on the registry to compare with the ones it got from breaking down the key. The question is, where are those information ([PhysicalMemory][VirtualMemory]) located within the registry?
I'm not sure I understand your question. If you want to write custom information into the registry you can use the Registry page. Since you create the registry entries, you decide where they will be created.

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

Return to “Feature Requests”