I prefer to set fuel psi with engine running. #1 - engine is using fuel. #2 - full voltage to pump.
If you do it with engine not running, the fuel psi can be vastly different. Especially with dead headed systems, sometimes even with return systems.
Always verify psi's throught rpm and load range. Inconsistent fuel psi will cause inconsistent 'tunes.'
BTW: fuel psi can effect fuel float height and A/F ratios.
BTW#2: Liquid filled fuel psi gauges located where they can get hot will reduce the psi reading. I have seen the gauges read 3 psi less in a very hot application. This does not mean your fuel psi is actually lower, it is because the gauge is reading lower. Not blowing smoke here, I've had probably over 40-50 dealings with this and cost me some coin.