guidogast
Posts: 51
Joined: Thu Sep 05, 2013 10:12 am

Create condition that searches an exact string

Hello,

My colleague is working on an installer and he bumped into something. He created a condition (NOT ADDLOCAL >< "DMETL") to check if the "DMETL" feature is being installed. This condition works, except we have another feature called "DMETLService". This condition searches on name, but not the exact search string. So if "DMETLService" is found, it will return false. But my colleague is not searching for "DMETLService"

Is there a way to search ADDLOCAL for the exact string "DMETL"?

Thanks in advance!

Sincerely,
Guido
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Create condition that searches an exact string

Hi Guido,

Unfortunately, there is no condition that searches for an exact word in a string as needed in your scenario, however, you can use the following condition: (&DMETL = 2) (this means "feature action: absent", the feature will not be installed).

Please note that the [ADDLOCAL] property stores the identifiers of the features that will be installed, not the name that is displayed to the user.

So, another solution to overcome this problem would be to go in the Organization page and choose an unique identifier for the "DMTEL" feature or modify the identifier of the "DMETLService" feature, so that the condition you mentioned will always be fulfilled.

Let us know if this helped.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”