How to add a prerequisitis to a VB 2005 project

cmdolcet
cmdolcet used Ask the Experts™
on
I need to be able to bind or have the user be prompted to install USB drivers, when I am installing my vb program.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
AndyAinscowFreelance programmer / Consultant
Commented:
That should be the job of your installer, not the VB program itself.

Author

Commented:
OK so how would I be able to bind it to the installer?
AndyAinscowFreelance programmer / Consultant

Commented:
Depends on which installer you use.
CompTIA Network+

Prepare for the CompTIA Network+ exam by learning how to troubleshoot, configure, and manage both wired and wireless networks.

Author

Commented:
Its the default normal installer. Not the click once deployment.
Assuming that you are using Setup and Deployment Project in VS2005, you need to add a prerequisite to it. Here's the article:
https://msdn.microsoft.com/en-us/library/7eh4aaa5(v=vs.100).aspx

Since your prerequisite is in fact custom, you need to create it first. This seems to be the tool:

http://ntsblog.homedev.com.au/index.php/2011/03/03/bootstrap-manifest-generator-2008-how-to-guide-v2/

The tool itself can be downloaded from this link:
https://onedrive.live.com/?cid=BFAE7F3CF4C831AC&id=BFAE7F3CF4C831AC%21150&parId=root&action=locate

If all this does not work, then you need a professional installation-authoring tool like Installshield, capable of using all features of Windows Installer, compared to very limited subset implemented in Setup and Deployment Project.

Author

Commented:
Thanks for the link. How can I add in non Microsoft drivers, such as USB drivers or other 3rd party drivers.

I was using the following link for reference: https://msdn.microsoft.com/en-us/library/7eh4aaa5(v=vs.100).aspx
You need to obtain (or to create), the installation of the driver, and add it as a pre-requisite using the tool.

Author

Commented:
OK, thank you...what if the driver is already loaded? It seems the way I set it up in the pre-requisite it still tries to push the driver over and confuses the user.

How can I avoid this?
If installation of the driver is made according to standards, it will handle it easily, i.e. it will detect existing driver, or upgrade an older one.

Driver installation probably can be run silently, so it just does its thing without any prompts. Depending on how it's made, there can be some command-line switches for that - find them out and specify in the prerequisite.
AndyAinscowFreelance programmer / Consultant

Commented:
Installer not app

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial