Setup projects: "variables" in registry values?  
Author Message
Brad Smith





PostPosted: Visual C# General, Setup projects: "variables" in registry values? Top

My question is probably best posed as a scenario:

During install, I want to add a registry string that contains the full path of where I was installed to. For example, if the user elects to install to "c:\program files\MyProg", then as part of the setup process I want to add a registry value under HKLM\Software\<my app>\InstallPath = "c:\program files\MyProg".

It *looks* as though the VS 2005 Setup project only allows "fixed" values added to the registry. I'm hoping I'm wrong.

Brad.


Visual C#13  
 
 
fperugini





PostPosted: Visual C# General, Setup projects: "variables" in registry values? Top

Brad,

Did you find a solution to this problem I want to do the exact same thing. I already tried [Application Folder] as the Value property and it did not seem to work.

-Frank


 
 
joeycalisay





PostPosted: Visual C# General, Setup projects: "variables" in registry values? Top

have you guys tried a value of [TARGETDIR], see this post.


 
 
fperugini





PostPosted: Visual C# General, Setup projects: "variables" in registry values? Top

Thanks! That was it. The reference article was helpful too.

-Frank