Question

I have built a setup project for deploying my windows forms app. I want to take all of the files that are needed to deploy (setup.exe, whatever.msi, & prerequisites) and package them in a single self extracting archive.

Ideally the user would run this exe, it would extract files to temp directory, run setup.exe, and delete the files afterwards.

I thought I had this with WinRar, but after setup starts it complains that the msi file is missing. Winrar is deleting the temp directory before I want it to.

Can I make winrar wait before deleting the temp files? Is there another utility I can use? Is there something VS will do for me?

Thanks

Was it helpful?

Solution

I've used Zip 2 Secure Exe for this and it works great. It is free

http://www.chilkatsoft.com/ChilkatSfx.asp

OTHER TIPS

You could simply write the exe yourself. Just use a zip lib to unzip an embedded resource that contains all the zipped files and then fire off the setup. Wait until it is done, then delete the extracted files and finish.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top