I have an application that will use a device in some cases (i.e. printer). Basically, in one office this printer will be used, and in another office this printer will never be used.
The functionality to use the printer is sitting in the application code, and the dll's that communicate with the printer are referenced in the code. So the dll's are part of the installation .msi package.
However, these dll's cannot be registered during the installation if the prerequisite (a bunch of drivers for the printer, provided by manufacturer as a single installation exe) is not installed. The installer for the drivers is about 50M size.
I do not want to include an extra 50M file in the installation package for the office that will never use the printer. What are the possible workarounds for the problem?
Ultimately, I would want an option to somehow skip registration of these dll's during the installation. But I do not know how to approach this.
I think I could have a conditional compilation in the code. But that would involve a significant amount of work to completely separate the code which talks to this type of printer from the rest of the application code.
Any possible solutions?