Let $G$ be a group. I am interested in embedding $G$ in a group $\tilde G$ such that there is a surjective map $\tilde G\rightarrow\operatorname{Aut}G$ whose restriction to $G$ yields the homomorphism $G\rightarrow\operatorname{Inn}G$ given by $g\mapsto \rho_g$ where $\rho_g$ is conjugation by $G$.
Does there exist a uniform construction of such a $\tilde G$?
I suppose another way to ask this question (edit 11/5/14 - this is actually a stronger question, see link below) is,
Is the restriction map $H^2(\operatorname{Aut}G, Z(G))\rightarrow H^2(\operatorname{Inn}G,Z(G))$ always injective, and does the class of $G$ (seen as an extension of $\operatorname{Inn}G$ by $Z(G)$) always lie in the image?
This feels like a long shot, so if the answer is no, are there some conditions on $G$ that make it true?
I am happy to suppose $G$ is finite if this is useful.
Thanks in advance.
EDIT 11/5/14: I realized after this question was fully answered that I actually wanted something stronger. I have followed up with another question here.
How about the holomorph $H=G \rtimes \operatorname{Aut}(G)$, where $\operatorname{Aut}(G)$ acts on $G$ naturally (ie. by $\phi \cdot g = \phi(g)$)?
Then $G$ is a normal subgroup of $H$, so for all $h \in H$ the conjugation map $\rho_h(g) = hgh^{-1}$ is an automorphism of $G$.
In this case the map $H \rightarrow \operatorname{Aut}(G)$ defined by $h \mapsto \rho_h$ is a surjective group homomorphism, and the restriction to $G$ is the natural map $G \rightarrow \operatorname{Inn}(G)$.