cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
piggybank1974
Level 2

Write to register from install dialog

Hi there,

I'm to to sure how to do this or if Im explaining it properly.

You have the option when you build your Setup.exe file to allow the user to install your program in any drive/folder of their choose.

I the process of the users changing the directory or usign the default one, how can I create a registry setting and put in there the current installed directory that the user used, because later on I want to use this entry for My UpdateManger so I know where the program is installed??

can anybody help with this??
Labels (1)
0 Kudos
(1) Reply
cydz1985
Level 3

you can use any property like [INSTALLDIR] as registy data value in your registry.

See for example:
If your application was installed under C:\ProgramFilesFolder\MyApp and INSTALLDIR = C:\ProgramFilesFolder
then you can set your registry data to:
InstallPath = [INSTALLDIR]MyApp
and place under preferred registy key
0 Kudos