Hello All,
I have a interesting question and hopefully it is has simple solution. We are getting ready to deploy an application to the Enterprise here. This application requires Java and well the application also uses the HKLM\Software\JavaSoft\Prefs key to store its configuration/preferences. Now I know Java reads things differently than windows so to speak. For Example:
In the Windows registry if I was going to store a Server name under the Javasoft\Prefs key it would be as follows
Type=RegSz
ValueName=ServerName
Data= /S/E/R/V/E/R-1
One of the values we are trying to store requires a value that is a filepath. The filepath we would like to use is basically a subfolder under the User's my documents folder so lets call it User1\My Documents\Application1
So again my understanding is that it would be
Type=RegSz
ValueName=App1FilePath
Data=//C://Users/User1/My /Documents/Application1
I am able to set this value in a msi/mst. However and here is where my question is I really do not want to hardcode to drive letter. I would prefer to use a Java Environmental Variable that basically would set to the current user without hardcoding drive letter or user with the rest being:
??This would be EnvVar?? /My /Documents/Application1/Temp
Is there a way to do this or am I stuck hardcoding to drive letter and user.