Перейти к основному контенту
Центр разработки для Windows

 none
Single exe with prerequsites RRS feed

  • Вопрос

  • Hello,

    May i know is it possible to create setup of a project in single exe file with 3.5 framework and windows installer 3.1

    That is now framework and windows installer comes in same folder, but i need to make it a a single file(exe)

    How can implement this

    Thanks
    Vineeth
    26 августа 2009 г. 16:59

Ответы

  • Hi Vineeth Paliath,

    Visual Studio cannot package all these files into just one exe file. But you can do this with a third-part software.

    First you need to select "Download prerequisites from the same location as my application". So Visual Studio will bring all the prerequisites into the setup.exe folder.

    After you build your setup project, you will set setup.exe *.msi and all the prerequisites package in the folder. Then you can use WinRAR to do the following work. Please look at the following step.
    http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/8678b938-7148-4e5b-b437-d71f33b446f9

    The self extract feature is the one can help us do the job. It package all the files into just one EXE, once you click it, it will extract and run the setup.exe after extracted.

    If you have any problem with this, please feel free to tell me.

    Sincerely,
    Kira Qian
    Please mark the replies as answers if they help and unmark if they don't.
    • Помечено в качестве ответа Vineeth Paliath 31 августа 2009 г. 6:30
    28 августа 2009 г. 3:31

Все ответы

  • Hi Vineeth Paliath,

    Visual Studio cannot package all these files into just one exe file. But you can do this with a third-part software.

    First you need to select "Download prerequisites from the same location as my application". So Visual Studio will bring all the prerequisites into the setup.exe folder.

    After you build your setup project, you will set setup.exe *.msi and all the prerequisites package in the folder. Then you can use WinRAR to do the following work. Please look at the following step.
    http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/8678b938-7148-4e5b-b437-d71f33b446f9

    The self extract feature is the one can help us do the job. It package all the files into just one EXE, once you click it, it will extract and run the setup.exe after extracted.

    If you have any problem with this, please feel free to tell me.

    Sincerely,
    Kira Qian
    Please mark the replies as answers if they help and unmark if they don't.
    • Помечено в качестве ответа Vineeth Paliath 31 августа 2009 г. 6:30
    28 августа 2009 г. 3:31
  • Thanks

    Vineeth
    31 августа 2009 г. 6:29