Windows key store - Advanced Installer Community
rahnajoseh
Posts: 18
Joined: Tue Dec 16, 2014 6:58 am

Windows key store

Hi,

While installing my application I want to store a string in windows key store. Is it possible?

Thanks
Rahna
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Windows key store

Hi Rahna,

Yes, you can add registry keys to your installation package.
Please take a look on the Add registry keys and values to your package article with related information for hints and guidance.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rahnajoseh
Posts: 18
Joined: Tue Dec 16, 2014 6:58 am

Re: Windows key store

Hi Dan,

I done a custom action code to encrypt my user id and password.

I want to get these encrypted values from custom action in my installer.

How is it possible. I Added the custom action with sequence.

Thanks
Rahna
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Windows key store

Hi Rahna,

You can assign these values on two public windows installer properties. (e.g. ID_HASHED and PASS_HASHED). Please note that you need to use Public properties otherwise you will get in the registry default values. For details, please check the Why do I get the default property value written, instead of the one entered by the user on the MSI dialogs? article.

Store the properties' values in the registry as explain in the Add registry keys and values to your package.
Please take a look on the Retrieving and setting properties article where you can find how to get and set properties in a DTF C# custom action.

If you are using the C++ approach, then you can use the MsiSetProperty function which sets the value for an installation property.

I may help you even more if you will tell me what custom action are you using (C++, DTF C#, VBScript etc).

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”