Quantcast
Channel: Indigo Rose Software Forums - Forums
Viewing all articles
Browse latest Browse all 2105

Setting registry values and using the %AppFolder variable

$
0
0
I have some registry values that need to be set that are very long. I use the following in order to get the appfolder value:

Code:

app_folder_result = SessionVar.Expand("%AppFolder%");
I am trying to set the registry using this code:
Code:

Registry.SetValue(HKEY_CURRENT_USER, "Software\\My_Software\\V20.0\\Java", "ImageFile", app_folder_result .."\\Images\\my_image.png;"app_folder_result .."\\imageFile2\\my_image2.png;" app_folder_result .."\\JRE\\1.3\\lib\\tools.jar;"app_folder_result .."\\JRE\\1.3\\lib\\rt.jar", REG_SZ);
So the actual key value would be something like this:
C:\Program Files (x86)\My_Software\Images\my_image.png;C:\Program Files (x86)\My_Software\imageFile2\my_image2.png;C:\Prog ram Files (x86)\My_Software\JRE\1.3\lib\tools.jar;C:\Program Files (x86)\My_Software\JRE\1.3\lib\rt.jar

So the question is how to use the appFolder variable multiple times within a single string. Thanks in advance for helping me out

Viewing all articles
Browse latest Browse all 2105

Trending Articles