From: David on
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.


From: H-Man on
On Thu, 3 Jul 2008 12:57:43 -0500, David wrote:

> 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.

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.

--
HK
From: MikeD on

"David" <chapashop-groups(a)yeehee.c> wrote in message
news:Uq8bk.13037$uE5.10961(a)flpi144.ffdc.sbc.com...
>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.


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

--
Mike
Microsoft MVP Visual Basic


From: H-Man on
On Thu, 3 Jul 2008 13:45:43 -0600, H-Man wrote:

> On Thu, 3 Jul 2008 12:57:43 -0500, David wrote:
>
>> 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.
>
> 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.

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.


--
HK