Matador2k7
Posts: 3
Joined: Wed Jul 11, 2007 10:52 am

Driver installation through custom action

Hi all!

I'm building a MSI package for UltraVNC. I want to deploy it through AD in our network.
The package includes an exe file called "setupdrv.exe" which installs the vnc mirror driver. I want to install it automatically. The "setupdrv.exe" file needs an argument called "installs" in order to install the driver in silent mode. So, the command line looks like this:
"setupdrv.exe installs".

At the moment I'm getting crazy trying to manage it with a CustomAction, but no way. I have tried "houndreds" of possibilities but nothing helped.

Could anybody please give me a lift??

Thannnnksss!
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
At the moment I'm getting crazy trying to manage it with a CustomAction, but no way. I have tried "houndreds" of possibilities but nothing helped.
What error you get? Please give me more details. If that EXE setup file has a MSI embedded then schedule the custom action under "InstallFinalize" and use "Asynchronous execution, do not wait for return" as "Execution Properties". This is because two MSI files cannot be installed at the same time.

Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/
Matador2k7
Posts: 3
Joined: Wed Jul 11, 2007 10:52 am

Hi gigi.

I tried it like you said but it also didn't work. You can check this linkhttp://www.imagehoop.com/view_image/d78 ... Driver.jpg to see how I am doing it at the moment.
If I open a command line prompt in the drivers directory and write "setupdrv.exe installs" it works perfectly. But I'm not able to launch it from MSI installer.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

From the screenshot I see that you use an "Installed Custom Action" with "[setupdrv.exe]" installs as command line. This will be translated to something like this:
setupdrv.exe C:\install path\setupdrv.exe installs

You use an extra parameter. So the correct command line for that custom action is installs. Also you need to condition this custom action to be executed only on install (use "NOT Installed" as "Execution Condition") because on uninstall setupdrv.exe no longer exist.

Let me know if this solves the problem.

Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/
Matador2k7
Posts: 3
Joined: Wed Jul 11, 2007 10:52 am

Hi again gigi.

Thank you very much for your effort. I tried it like you said but it didn't work :? As I said, there is something weird happening with this driver.

For your information:
I am packaging in the %programfiles%\UltraVNC directory another one called driver (%programfiles%\UltraVNC\driver) where this .exe file is copied with some other files (vnccom.sys,vncdrv.dll,vncdrv.inf,vncdrv.sys,vnchelp.dll) which are the driver files.
Obviously, the setupdrv.exe has to call the dll and inf files in order to install the driver. So that I think that there has to be something wrong in the installation process itself.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

I cannot reproduce this behavior on my test computer, the setupdrv.exe file is executed ok as custom action. You can send the AIP file (if not contain any confidential informations) or a small test project reproducing the issue to support at advancedinstaller dot com so we can take a look.

Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”