mguenth83
Posts: 38
Joined: Wed Dec 31, 2014 11:02 am

Run AppSearch twice?

Hi,
i want to ask if it´s prossible to run the AppSearch in Wizard Dialog Stage and Install Execution Stage ?

In my Project it comes the following Message and it doent work :?

MSI (s) (84:28) [13:21:59:176]: Skipping AppSearch action: already done on client side
Aktion beendet um 13:21:59: AppSearch. Rückgabewert 0.
MSI (s) (84:28) [13:21:59:176]: Doing action: AI_AppSearchEx
Aktion 13:21:59: AI_AppSearchEx.
Aktion gestartet um 13:21:59: AI_AppSearchEx.

Thx Matthias
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Run AppSearch twice?

Hi Matthias,

I'm afraid that the "AppSearch" standard action cannot be run in Wizard Dialog Stage and Install Execution Stage for the same install. Can you please tell us why you need this, so we can try to find a workaround?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mguenth83
Posts: 38
Joined: Wed Dec 31, 2014 11:02 am

Re: Run AppSearch twice?

Hi,
i fixed that Problem with an Powershell Inline Script. So i generated my own Search.

Code: Select all

# Block for declaring the script parameters.
Param()

# Your code goes here.
if ((Get-ItemProperty -Path HKLM:\SOFTWARE\ORACLE\DEINSTALL -ErrorAction SilentlyContinue).ORACLE_HOME){
		AI_SetMsiProperty DEINSTALLED_SUCCEDED "1"}
else {
		AI_SetMsiProperty DEINSTALLED_SUCCEDED "0"}
I put this Script after Searches in Action Table :D
mguenth83
Posts: 38
Joined: Wed Dec 31, 2014 11:02 am

Re: Run AppSearch twice?

Is there any way to Reset the Search Property to search twice ?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Run AppSearch twice?

Hi,

I'm glad you managed to achieve what you want. I'm not sure what you mean by resetting the search property? If you want to change the value of the property you can do this anytime through a custom action.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mguenth83
Posts: 38
Joined: Wed Dec 31, 2014 11:02 am

Re: Run AppSearch twice?

Hi,
i mean the Installer must Store Data if the Search runs in Dialog stage or not. So where this Information will be save ?
If this Information saved in a Varibale like SEACHES = 1 i can set the SEARCHES in Exeution Stage to Value "0" so it run twice or not ?

Thx
Matthias
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Run AppSearch twice?

Hi Matthias,

The searches from the "Search" page will never be executed twice (Dialog Stage and Install Stage) because this is the Windows Installer normal behavior. But if you want to make a search through one of your custom actions and want to be sure that it will not be executed twice, you can follow the steps below:
- add that custom action in the "Wizard Dialogs Stage" section from the "Custom Actions" page
- while the "SHIFT" keyboard button is pressed, drag and drop the custom action in the "Install Execution Stage" section, to duplicate it,
- click on the "Advanced execution scenarios..." blue link and check the "Skip action in Install Execution Stage if executed in Dialogs Stage" option

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

Return to “Common Problems”