Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General / July 2008



Tip: Looking for answers? Try searching our database.

compile an without installing hardware drivers.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David - 03 Jul 2008 18:57 GMT
I am trying to compile an app that does not have controls/dlls installed.

I have an app that can run 3 different ways.  The app can interface with 2
different types of specialized hardware or it also can run with no hardware
connected.  Based on the hardware type or no hardware my code runs the
appropriate code.  The 2 hardware types require their own installs for me to
program the hardware.  I am trying to avoid installing the different
hardware packages on machines that don't need one or the other or neither.
I am trying to create 1 install or minimize the removal or remarking out of
code so that the program can compile and run correctly on my 3 different
types of installs.
H-Man - 03 Jul 2008 20:45 GMT
> I am trying to compile an app that does not have controls/dlls installed.
>
[quoted text clipped - 7 lines]
> code so that the program can compile and run correctly on my 3 different
> types of installs.

Well, if you want to do this all in VB then;
1) Create a program to install the program as required based on the present
hardware.
2) You'll need to write an uninstaller that will properly uninstall both
the program itself and the installer program.

Otherwise you could use a scriptable installer that may have all of the
smarts you need, like Inno.

Signature

HK

H-Man - 04 Jul 2008 18:01 GMT
>> I am trying to compile an app that does not have controls/dlls installed.
>>
[quoted text clipped - 16 lines]
> Otherwise you could use a scriptable installer that may have all of the
> smarts you need, like Inno.

Another way to go, probably better, would be to include all of the code in
your program and run different routines based on what's installed. You
don't say whether or not the hardware can be automatically detected. If Not
the user will have to configure this. Once the program knows what to
install it should install it. Then whenever the program is run, it knows
what hardware is installed, it can run the routines based on it's current
configuration. Installed hardware information can be stored in the registry
or in a file somewhere.

Signature

HK

MikeD - 04 Jul 2008 15:40 GMT
>I am trying to compile an app that does not have controls/dlls installed.
>
[quoted text clipped - 7 lines]
> or remarking out of code so that the program can compile and run correctly
> on my 3 different types of installs.

You haven't stated what problem/issue you're having. How are we supposed to
help?

Signature

Mike
Microsoft MVP Visual Basic

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.