You should absolutely not do this at all. It does not make any sense to go through the process of creating your own program to deploy your application.
Use
this[
^] or
this[
^] or
this[
^] or
that[
^] to do whatever it is that you want to do. You will be way better off in the long run. The first come comes with Visual Studio, the second one is a commercial application, the last two are free. Or choose another way. Try
Wix[
^] it's free too. And there are plenty of others.