stefan_riediger
Posts: 32
Joined: Fri Feb 18, 2022 4:07 pm

Find (search the project) does not find text in scripts

Dear Advanced Installer Team,

I have a question about the Find (Ribbon - Home Tab) feature.
The help file states "Find - search the project"
What can I expect to find.
It looks like that the searched text is not found inside custom actions scripts .
Is this intended.

best regards,
Stefan
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Find (search the project) does not find text in scripts

Hello Stefan,

The "Find" function basically searches your project by having as reference the "Table Editor" page.

If you expand the "Look in" field, you can notice that all the tables from your project will be displayed.

The text from your custom action is not added in the "Table Editor".
FindAll.png
FindAll.png (185.34 KiB) Viewed 12895 times

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
stefan_riediger
Posts: 32
Joined: Fri Feb 18, 2022 4:07 pm

Re: Find (search the project) does not find text in scripts

Hi Catalin,

thank you for the answer and the hint with the tables. I think I understand it now a bit better how Advanced Installer search works and can rephrase the question a bit more precise.

Lets suppose I have a simple PowerShell Inline Script e.g.

Code: Select all

# Block for declaring the script parameters.
Param()
# Your code goes here.
$somevariable = 42
when I try to find $somevariable the result does not appear, even if when I check all tables in the Look in combobox for the Find All dialog.

When I open the Table Editor (or alternatively the msi file in Microsoft's Orca tool, the variable exists in the CustomAction table. So theoretically the search should have found the $somevariable.

But when I search for parts of the base64 encoded string (related to the recent post about the diff) I get a hit
FindCustomAction_Base64.png
FindCustomAction_Base64.png (354.31 KiB) Viewed 12892 times
Probable not very helpful. May be it is a bug.

I'm using version 19.1

best regards,
Stefan
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Find (search the project) does not find text in scripts

Hello Stefan,

Unfortunately, for now I can not really say for sure why this happens.

Most likely, it is related to the fact that the custom action's content is encoded, just as we discussed in the other thread.

I have created a ticket for our development team to further investigate and hopefully an improvement to our "Find All" function will be added in a future version of Advanced Installer.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
stefan_riediger
Posts: 32
Joined: Fri Feb 18, 2022 4:07 pm

Re: Find (search the project) does not find text in scripts

Hi Catalin,

thank you for raising a ticket for the "Find All" issue.
I'm looking forward for the solution.

best regard,
Stefan
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Find (search the project) does not find text in scripts

You are always welcome, Stefan!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Find (search the project) does not find text in scripts

Hello,

This improvement has been added in version 21.3 of Advanced Installer, released on December 14th, 2023.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”