IN Dot_Net/Q_20334511.html gcottle wrote:
I have built a deployment project for the application and have made use of the Setup Bootstrapper Proejct which Microsoft provided for loading the Framework on a PC. All works well.
Heres my question
I have a VB.NET Windows Application using MS Access. Created a MSI for it.
Tried to install it on the clients machine.. It installed perfectly.
However while running the application he got a "System.TypeInitializationException" and did not start up.
1. NOW is there a way to bootstrap the setup to check for the version of the Framework or if its present at all and then prompt the user to download it from the web during install ?
2. OR Any other method of determining if the correct frameworkk is installed
and if not gracefully erroring out -> with a custiom error ?
3. Can some one show me how to write a small .BAT file - the user can run to verify if the framework is installed on the system ?
If yes Display - system components are installed correctly
if NOT then display "some error I will fill out"