Hi, How can I include a batch file or an .exe file in my setup, that runs after setup is complete? Thanks Furqan
                +1 
                A: 
                
                
              It depends on the setup program you are using. The build-in setup programs available in VS Express do not offer such possibility.
If you are looking for a free alternative, have a look at Nullsoft Scriptable Install System. Other than that, you could get away by running the external batch / application file during the first time your application runs:
If My.Application.Deployment.IsFirstRun then
    Process.Start("yourapp.exe")
End If
                  Anax
                   2010-08-31 07:10:17
                
              +1 for recommending NSIS. It's the best installer I've come across so far. It even beats the one that comes built into VS.
                  Alex Essilfie
                   2010-08-31 12:45:09
                
                
                A: 
                
                
              
            If it's a Visual Studio Setup Project you can add a custom action. It can't execute batch files, but it can execute scripts and executables and also call functions in some DLLs.
Here's an article with more details: Visual Studio Setup - projects and custom actions
Be aware though, it's usually not recommended to run scripts.
                  ho1
                   2010-08-31 07:24:13