wpf - How to create setup file with many dependencies? -


i have wpf project (app1.exe). in order run app1.exe, user needs run few exe files , msi files (e.g. .net 4.0, speech platform, etc.) install libraries before running wpf exe file. therefore, want ask few things:

  1. how create setup file wpf project?
  2. how automatically install dependencies (with specific order) before running setup.exe?
  3. how automatically decide x86 or x64 files install?

  1. install installshield visual studio , can create setup file.
  2. create bat file , run file before setup.exe
  3. follow template:

    @echo off

    if defined programfiles(x86) (

    @echo yes @echo 64-bit work 

    ) else (

    @echo no @echo 32-bit work 

    )