Im wondering when you are looking for the environment variable for a program, for when you use "System::Call 'Kernel32::SetEnvironmentVariableA(t, t) i("APPDATA", "$SETTINGSDIRECTORY").r0'" what exactly would you be looking for in the source of that program so you can replace "APPDATA" with what it uses to store its data in its location it defines. Is it just like variable or the name of the folder where the data is being stored?? Thanks in advance for any help
there are different NSIS constants/vars that are built in. Here's a good list:
For even more variables, you can use the ReadEnvStr Command.
%APPDATA% is C:\Documents and Settings\%USERNAME%\Application Data .
It's where programs store their data usually, if not the app dir, the current dir, the registry, my docs, or a specified dir.
Please, do not use that line of code, as it disturbs other programs' settings as well as the app's.
BTW, you might want to clarify what you wanted to know.;)
Insert original signature here with Greasemonkey Script.
Can you give an example of when using the System call changes an environment variable for a different program? I think it only changes the environment variable that is inherited.
MC
Im going through the source of Ares Galaxy, because I have been trying to figure it out the environment variable it uses to store its data. Until recently have I been going through its source code looking for something that will tell me what environment variable it uses. I have been working on Ares since early December, and havent had any luck with gettings its data to get in the $SETTINGSDIRECTORY. hmmm since I have the registry good and everything I might just put out a test in the beta forums until I can get the environment variable.
An eye for an eye makes the whole world blind.
Mahatma Gandhi,
Indian political and spiritual leader (1869 - 1948)