What do you mean by wherever it is launched from, different folders or different drives ?
If it is called from different locations but the program in in a single location that shouldn't be an issue. If it is in different locations, e.g. drives, then follow tha above and then you can edit the avastUI, Additional Protection, AutoSandBox, Files that will be excluded and change the drive letter to a ? question mark (wildcard for a single character), e.g. change E:\Downloads\irfanview_plugins_428_setup.exe to ?:\Downloads\irfanview_plugins_428_setup.exe. This mask would be good for all drives with that executable.