Installing an old driver - Advanced Installer Community
McKool
Posts: 113
Joined: Wed Jan 19, 2011 12:35 pm
Location: Darmstadt, Germany
Contact: Website

Installing an old driver

Hello Forum,

I'm trying to install an old driver (just one file *.sys). without using the "Driver" feature of AI (the driver has to be installed within a MergeModule).

In the past I used to install this driver with WiseScript. For this, I just needed to copy the file to system32\drivers and then create and start that file as a "service", where the type of the service was "Kernel Driver" and Group "Extended Base".

I have tried the same in AI but I cannot select the service type mentioned above. I have even changed the type manually using the Table-Editor but I'm not able to start the service.

Do you have any Idea how to achieve this?

Thanks in advance.
Keneth.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installing an old driver

Hello Keneth,

Unfortunately, we don't have predefined support to install and start "Kernel Driver" service type. However, in order to achieve what you need you can try to create you own custom action which will install and start your driver service. The custom action should be added in "Custom Actions" page after "Install Execute Sequence -> Add Resources" actions group and should be scheduled as deferred.

Also, as another option you can manually try to create a BAT file which will run install and start command lines (e.g. using SC.exe tool). If this works, then you can execute the BAT file using a "Launch File" predefined custom action using a similar approach like the one exposed in our "Create MSI wrapper over EXE installers" article.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
McKool
Posts: 113
Joined: Wed Jan 19, 2011 12:35 pm
Location: Darmstadt, Germany
Contact: Website

Re: Installing an old driver

Hello,

thanks for the suggestions. I will try them.

By the way, by trying to install the driver I have noted something within the "service Install" procedure. With older versions of AI, if my service install procedure was marked as "Display error message and continue" or to "ignore the error" my installation was able to continue. Now (I have just ported from a AI file v. 8.6 to v. 11.1) it seems to ignore this selection... the installation is forced to do a rollback if the service installation fail.

This is for me not a big problem but an indicative that something here could go wrong in the future, so it would be a good idea to take a look on it.

Thanks again,
Keneth
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installing an old driver

Hello Keneth,
By the way, by trying to install the driver I have noted something within the "service Install" procedure. With older versions of AI, if my service install procedure was marked as "Display error message and continue" or to "ignore the error" my installation was able to continue. Now (I have just ported from a AI file v. 8.6 to v. 11.1) it seems to ignore this selection... the installation is forced to do a rollback if the service installation fail.
I'm not sure I fully understand what you mean. The service "Error Control" option doesn't affect the setup package installation behavior. It only affect the system's behavior when the service fails to start.

So, if the service is configured to start during installation and the start operation fails, then the installation process will rollback. You can only avoid the rollback triggered by a service installation error if you have disabled the "Wait until the service completes" control option and during installation (when the service install fails and you are prompted with an error message which give you the option to ignore the error) you choose to ignore the service failure.

However, in order to have a better view about your scenario, can you try to isolate in two samples (one created using an older version and one created using our latest version) the behavior you are describing and send them us to support at advancedinstaller dot com so we can test and investigate this?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
McKool
Posts: 113
Joined: Wed Jan 19, 2011 12:35 pm
Location: Darmstadt, Germany
Contact: Website

Re: Installing an old driver

Hello,
Daniel wrote:The service "Error Control" option doesn't affect the setup package installation behavior. It only affect the system's behavior when the service fails to start.
Yes you are right. But as I told you, only compiling the same merge-module project with the new AI has caused the merge-module to act different.

But I think I found out what is different. It has directly nothing to do with the "Error Control". The problem is, that the old version of my merge-module (AI v.8.6 I think) actually installs at least the registry entries of the service, and then it is not able to start it. The new compiled merge-module doesn't. It fails already by trying to install it (no registry keys). So, the installation procedure works different among AI versions.

A bit of clarification: As I wrote, this is not a big problem (at less not for me); I was not able to configure the service correctly, so it is correct that the service is not installed (or installed but not started), since in both cases it fails due to the missing configuration. I just wanted to point this out because the same project regenerates different behaviors when compiled with different versions. You guys have created a very good, powerfull, easy to use, installation tool, and I just want to help to maintaining it so.
Daniel wrote:However, in order to have a better view about your scenario, can you try to isolate in two samples (one created using an older version and one created using our latest version) the behavior you are describing and send them us to support at advancedinstaller dot com so we can test and investigate this?
I have the two projects, but I have overwritten the merge-modules. I will try to generate them again with an old AI (I have only the v.11 installed at this moment). If the behavior appears I will send you the files to your support address.

Thanks
Keneth.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installing an old driver

Hello Keneth,

Thank you for your feedback. We'll try to investigate this scenario and if we'll find any issues will update this thread.

Also, please feel free to send us a sample which replicates the behavior to support at advancedinstaller dot com anytime.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”