Yes, I want to find the application path. It depends on the operation system with either 64 bit or 32 bit.
C:\Program Files\ClientApps (x64)\client.exe or
C:\Program Files (x86)\clientApp (x86)\client.exe
currenlty, I am using the OS info to check 64bit or 32 bit to assign the hard coded application path. I was wondering if there are better/clever ways to get the application path.
You can use environment variables. For example, you can insert them to the path to your application added in TestedApps either via the editor, or from scripts (see the "TestedApps Editor" and "TestedApp.Path" help topics). Also, you can obtain values of environment variables in scripts by using the aqEnvironment.GetEnvironmentVariable method (see the "aqEnvironment.GetEnvironmentVariable" help topic).
You can either define an environment variable in Windows and keep the path there, or check your system's bitness and generate the path dynamically in a script. For example:
<font class="small">Code:</font><hr /><pre>...
var is64bit = false;
if(Sys.OSInfo.Windows64bit) is64bit = true;
var path = aqEnvironment.GetEnvironmentVariable("ProgramFiles ", is64bit) + "\\ClientApps ";