Solved

How to add a prerequisitis to a VB 2005 project

Posted on 2016-09-12
10
40 Views
Last Modified: 2016-11-16
I need to be able to bind or have the user be prompted to install USB drivers, when I am installing my vb program.
0
Comment
Question by:cmdolcet
  • 4
  • 3
  • 3
10 Comments
 
LVL 44

Assisted Solution

by:AndyAinscow
AndyAinscow earned 250 total points (awarded by participants)
Comment Utility
That should be the job of your installer, not the VB program itself.
0
 

Author Comment

by:cmdolcet
Comment Utility
OK so how would I be able to bind it to the installer?
0
 
LVL 44

Expert Comment

by:AndyAinscow
Comment Utility
Depends on which installer you use.
0
 

Author Comment

by:cmdolcet
Comment Utility
Its the default normal installer. Not the click once deployment.
0
 
LVL 40

Accepted Solution

by:
Vadim Rapp earned 250 total points (awarded by participants)
Comment Utility
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.
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:cmdolcet
Comment Utility
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
0
 
LVL 40

Expert Comment

by:Vadim Rapp
Comment Utility
You need to obtain (or to create), the installation of the driver, and add it as a pre-requisite using the tool.
0
 

Author Comment

by:cmdolcet
Comment Utility
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?
0
 
LVL 40

Expert Comment

by:Vadim Rapp
Comment Utility
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.
0
 
LVL 44

Expert Comment

by:AndyAinscow
Comment Utility
Installer not app
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now