Question

We have an application for which we're using InstallShield LE (the one that comes with Visual Studio 2010) to manage the installation of the application.

As part of the installation, I need to install an INF file so the app can communicate with the modem

How can I get InstallShield LE to do this? Is this possible? If not, is it possible with the full edition of InstallShield?

Was it helpful?

Solution

Go to custom actions->add new action that launches an executable. For working directory you may enter "SystemFolder", for Filename & command Line enter:

rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 .\<file>.inf

Return processing - Synchronous(Ignores exit code)

Then include this action somewhere into the install sequence. This should do the trick I believe. I am writing this post using a different version of install shield, but I believe it should still hold true.

EDIT: the line on how to install an info file is taken from here

later edit by DaveDev:

This worked. Just to clarify what needs to be done, I've included screenshots (because each pic saves me 1000 words, right?)

First, inf file needs to be included in "SystemFolder" section under the Files section of the installer configuration:

enter image description here

Second, in the Custom Actions section, the fields need to be filled in as follows. This is effectively everything that @izomorphius said, but this is a little bit more clear for those who aren't familiar with the product:

enter image description here

When this is done, build and deploy and the setup.exe should handle the installation of the inf file.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top