SillyPutty1000
Posts: 18
Joined: Tue Jul 07, 2009 8:45 am

Adding Registry entry on Various Builds

I am making one project with the following items:

Features and Components
  • Common_Files_for_Both
  • Build_1_Files
  • Build_2_Files
Builds
  • Build_1 (Includes Common_Files_for_Both + Build_1_Files) = Setup1.exe
  • Build_2 (Includes Common_Files_for_Both + Build_2_Files) = Setup2.exe
The builds are working fine so no issues. I need to know how to add a registry entry on users computer if Setup1.exe gets installed and if Setup2.exe gets installed put a new for that in the registry so I know which products are installed.

HKEY_LOCAL_MACHINE\SOFTWARE\AAAProduct\Build_1 Path [APPDIR]
HKEY_LOCAL_MACHINE\SOFTWARE\AAAProduct\Build_2 Path [APPDIR]

Can you please give a example on how I may do this?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Adding Registry entry on Various Builds

Hi,

As I can see you have created three features in the Organization page, this could help you to install the desired registry values.

What you have to do is to create the desired registry entry and in the same time select the feature in which you wish to be
added from the combobox "Feature" available in the toolbar.

This way each registry entry will be installed if the corespondent feature installs too so your requirement is accomplished.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”