deploying an activex control (.cab file) from a jsp page
Posted on 2005-05-03
This is a tricky one!
Here is some background: I've got a custom made Java webapp which is using Crystal Reports for its reporting functionality. The webapp is communicating with the Crystal RAS (reports application server) via an API. Everything works fine until the users would want to print a report from the DHTML report viewer. In order to print an ActiveX control (Print Control) needs to be installed on the client machine. The control is provided in a cab file (the file is provided by Business Objects, makers of Crystal Reports) and is signed, versioned etc. The control is supposed to be downloaded and installed automatically when the user tries to print for the first time. When we've tested the functionality all tested absolutely fine.
Now, it the "real world" the following occurs:
The PrintControl doesn't install on some user machines, doesn't even prompt to install, the page just hangs. We realised that this could be due to the user privileges on the computers they're using. We have a rather large network of client computers accessing the application (3000+) so, to make our lives (IT department) easier the users are not typically given Administrators or even Power User access under their normal logins.
We've tried to log into the troubled computers remotely using a local admin account. Then logging into the site and try to print the reports, the PrintControl would then install and allow us to print. Our assumption was that once the PrintCotrol had been installed, it will run under any logins to this machine. But when the users would log in using their normal logins the PrintControl would stop working again.
Now, we can't give all our users Power User access to the computers. So, the question is: is it possible to install an ActiveX control bypassing windows permissions? Of course we'd prefer this to be done via a webpage, but it will be ok for us to send them a CD with some sort of an exe on it to run under their account.
Many thanks in advance!
P.S. I can email the actual cab file if it helps.