A functional integral with respect to the Wiener measure that represents a solution of the Schrödinger equation with signed Hamiltonian is obtained. In turn, this integral is derived, using the analytic continuation with respect to the argument, from a similar integral for the corresponding heat equation.