How to block a program from accessing internet that runs off a unique temp folder path each time?

Hello,

 

I'm using NIS2009, with manual program control.  I plan to keep using this setting, so please let me know if the following can be done:

 

The program is benign, but expands and runs out of a unique TEMP folder instance each time it's executed.

 

Each instance it tried to access the internet to check updates.

 

So each time I run it, I create a single rule to block access, but of course next time I run it, a different rule is needed because the path has changed.

 

The filename though is always the same.

 

Isnt there a way to create a rule for a program by name only, regardless of path?