Run custom action conditionally based on feature - 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!

tp0189
Posts: 19
Joined: Fri Dec 02, 2011 10:46 am

Run custom action conditionally based on feature

Hi,


I have added a feature called 'Install Drivers' with identifier 'Feature_2'

I then have a custom action which executes a file called Drivers.exe with the condition of 'NOT Installed AND !Feature_2 = 3'

So as you can see, I only want to run the driver package when the associated feature has been ticked for install.

Unfortunately this doesn't happen and the exe never executes. The log says...

MSI (s) (E0:8C) [15:26:36:259]: Skipping action: Drivers.EXE (condition is false) but doesn't elaborate further.

The funny thing is, that I was sure this was working at some point, but I can't figure out why it has stopped.

Thanks

Tom
tp0189
Posts: 19
Joined: Fri Dec 02, 2011 10:46 am

Re: Run custom action conditionally based on feature

Okay, so fixed this problem. I misunderstood the documentation and it appears I should be using &Feature_2 as opposed to !Feature_2

Thanks
Tom

Return to “Common Problems”