It has been awhile since I last created setup projects and that was when using VS2003/2005, so I hope these are still valid.
talg:3. there was no ajax installed on the server so i had to install it manually- How could i attached the ajax msi installation to my MSI file?
There are 2 ways to do this.
1. in your VS project, where you use the AJAX assemblies, make them copy to LOCAL. That way it becomes a project output so it will be included in your MSI OR
2. part of your release plan is for your client to install the AJAX extensions separately before doing so, and you MSI can have a launch precondition to check for the existence of the AJAX first OR
3. the hardest way is to create a custom action which is a .NET DLL that you attach to your INSTALL action that will check and install the AJAX MSI
talg:4 the application is under framework 3.5 ,and i had to add it manualy - How could i attached the 3.5 framework installation to my MSI file as well?
You can add a launch condition to check that the target framework is there. Not sure about VS2008, but in VS2003/2005 we can include the .NET framework as a bootstrapper to the MSI.