Custom Actions problem - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Enrique
Posts: 1
Joined: Sun Nov 28, 2010 7:43 pm

Custom Actions problem

Hello,

I’m new to the Advanced Installer 8.0.2 and I’m having a strange problem.

Together with the application I wrote I have to install a driver that allows my program to talk to a piece of hardware through a USB to serial chip. I downloaded the driver from the USB to serial chip manufacturer web site and it is very simple to install; you just double click on the driver installer and it opens a command window that goes through the driver installation process. Once the driver is installed the command window closes automatically. Additionally, my application uses .net Framework 3.5 SP1 which I check for and install if necessary.

My problem is that on a freshly formatted Windows XP computer that does not have .net 3.5 SP1 installed the installer I generate does not install the USB driver. If, however, I remove my application after the installer installed the software for the first time without installing the driver, and then rerun the installer both the application and the driver will be installed.

This is how I have set up the installer

In the prerequisites page I have set up .net Framework 3.5 SP1 a a prerequisite and I tell it to install from the package as I include the Microsoft installer in my package.

In the Files, Folders and Shortcuts page I have added a Drivers folder that holds the .exe provided by the chip manufacturer

In the Custom Actions page I have added in the Install phase a Custom Action with the following parameters

Type: File installed with product
Source path: APPDIR\Drivers\CDM20802_Setup.exe
Source Type: Executable (*.exe)
Command Line: (it is blank)
Execution Properties: Synchronous execution, ignore return code
Execution Options: Deferred
Scheduling Options: Always Execute
Execution Condition Expression: NOT Installed

I am generating the installer on a Vista machine in English and testing it on an XP SP2 machine in Spanish (I want to make sure the program will work on all international customers)

In summary, when I run the installer on a formatted machine for the first time the driver is not installed, when I run it a second time after the application is removed the driver is properly installed, what am I doing wrong?

Thanks,
Enrique
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Custom Actions problem

Hello Enrique and welcome to the Advanced Installer Forums,

Please send us the .AIP (project) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”