Am 29.03.2012 13:06, schrieb Marcos Douglas:
The application is installed and the system variable is created. The
application and others process should be use this variable just
calling SysUtils.GetEnvironmentVariable.
Then let a FPC program print all passed environment variables as a test:
=== source begin ===
program envtest;
var
i: LongInt;
begin
for i := 0 to GetEnvironmentVariableCount do
Writeln(GetEnvironmentString(i)); // Note: this will include
"name=value" unlike GetEnvironmentVariable
end.
=== source end ===
Also - as I already wrote - you can use the Process Explorer (
http://technet.microsoft.com/de-de/sysinternals/bb896653 ) to check
whether the application does indeed contain the environment variable.
Regards,
Sven
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal