7

I'm creating a setup using visual studio setup project , it will create two files one is msi and second one is exe. but i want to Create single file using that.

David G
  • 94,763
  • 41
  • 167
  • 253
user2413829
  • 111
  • 2
  • 3

2 Answers2

1

I would check out IExpress. This is a built in tool in many versions of Windows which you can use to create a self extracting directive file. You simply add the msi and setup.exe and choose to run the setup.exe.

This tool creates an SED file which you could run in a post build event so you do not have to do it manually after every build.

You could follow the directions in this tutorial: http://www.youtube.com/watch?v=k976yEXX11k

http://en.wikipedia.org/wiki/IExpress

tomasat
  • 578
  • 8
  • 11
0

You just need to uncheck Create setup program to install prerequisite components in the Deployment Project Properties - but think through, carefully, the meaning of that option.

If you don't create the setup.exe, then your program can't be installed on machines which are missing some or all of your pre-requisites.

Also, be aware that setup projects are no longer supported in VS2012 - so it may be worth the time now to start investigating other setup authoring options such as WiX.

Damien_The_Unbeliever
  • 234,701
  • 27
  • 340
  • 448
  • I'm confused - I'm using VS 2022 and I created a setup project. Are we talking about different things? – rich p Feb 23 '23 at 17:37