Delete specific files after installation using visual studio setup project

Posted by Vadiklk on Stack Overflow See other posts from Stack Overflow or by Vadiklk
Published on 2012-08-28T08:05:06Z Indexed on 2012/08/28 9:38 UTC
Read the original article Hit count: 277

I have this problem. I want to build an installer for my c# solution, that will be placed in a folder with other installation folders and files that are needed to be copied to the installed folder. So that is easy, I just copy them to the folder I create using the folder structure I want.

Now, I want also to install another program and run a .exe file I've created to unzip some files for me. For that I need to copy 2 .exe files and 2 dlls (for the exes) to the folder to which I am installing and create 2 custom actions that will use them. That I've managed to do.

After that I want to delete those 4 extra files, as the user does not need them and shouldn't even be aware they are there. How to do so? I couldn't find a way in the built in setup project preferences + I do not know how to make a custom installer class.

A bonus question, is how to make the other installer (one of the .exe files is just a plain installer) install quietly to any path? I do not want the user to see an installer pop out of my program installer.

Thanks!

© Stack Overflow or respective owner

Related posts about c#

Related posts about visual-studio-2008