millerp
Posts: 3
Joined: Mon Jul 18, 2005 9:51 pm
Location: Cranleigh, Surrey, UK
Contact: Website

My Custom Application for AppSearch won't fire

I'm using the installer to update executables and OCXs already installed by another installer - so can't use real Patch feature.

I have several copies of the main executabe on my development PC so I don't want to use the file search method to locate the program folder.

The original installer sets the path in a registry value (whcih I can read with AI) like this:

C?\Program Files\Windmill Computing\vivID Card\vicapp12.exe

I need to replace the ? with a : and I need to strip off the \vicapp12.exe

I've got some VB Script to do this, but I need to do this after the AppSearch standard action. How can I get my custom action to fire? I'm setting the Execution Condition, Expression to 1 as this is what the logger says AppSearch returns.

Any help on firing the action and/or character replacement in VBScript much appreciated.
Mike
Posts: 292
Joined: Wed Jun 01, 2005 10:50 am
Location: Craiova, Romania
Contact: Website

Hi,

To start your custom action you must specify a condition that must evaluate to true for your custom action to trigger. Leaving the field empty will have this effect.

You could also use the name of the search as the condition for the custom action. It will evaluate to true if the the result is not the empty string.

Regards,
Mihai
Mihai Bobaru
Advanced Installer Team
http://www.advancedinstaller.com
millerp
Posts: 3
Joined: Mon Jul 18, 2005 9:51 pm
Location: Cranleigh, Surrey, UK
Contact: Website

Thanks Mihai but it still doesn't fire...

Here is the custom action:

Image

Here is the log file:

MSI (c) (D8:DC) [23:07:07:517]: Skipping action: AI_DOWNGRADE (condition is false)
MSI (c) (D8:DC) [23:07:07:548]: Doing action: AppSearch
Action 23:07:07: AppSearch. Searching for installed applications
Action start 23:07:07: AppSearch.
AppSearch: Property: VIVID_PATH, Signature: AppSearchSign
MSI (c) (D8:DC) [23:07:07:668]: Note: 1: 2262 2: Signature 3: -2147287038
MSI (c) (D8:DC) [23:07:07:698]: Note: 1: 2262 2: CompLocator 3: -2147287038
MSI (c) (D8:DC) [23:07:07:718]: PROPERTY CHANGE: Adding VIVID_PATH property. Its value is 'C?\Program Files\Windmill Computing\vivID Card\vicapp12.exe'.
Action ended 23:07:07: AppSearch. Return value 1.
MSI (c) (D8:DC) [23:07:07:858]: Doing action: CCPSearch
Mike
Posts: 292
Joined: Wed Jun 01, 2005 10:50 am
Location: Craiova, Romania
Contact: Website

I'm sorry but I cannot reproduce your problem. My script runs perfectly. Here is the log:

MSI (s) (8C:E0) [09:44:57:093]: Doing action: AppSearch
Action 09:44:57: AppSearch. Searching for installed applications
Action start 09:44:57: AppSearch.
MSI (s) (8C:E0) [09:44:57:171]: Skipping AppSearch action: already done on client side
Action ended 09:44:57: AppSearch. Return value 0.
MSI (s) (8C:E0) [09:44:57:203]: Doing action: ScriptInline
Action 09:44:57: ScriptInline.
Action start 09:44:57: ScriptInline.
MSI (s) (8C:DC) [09:44:57:281]: Generating random cookie.

What does you log say about the ScriptInline? It should tell the reason why it doesn't fire. For example, if the condition is not true, it should say:

Action ended 09:53:01: AppSearch. Return value 0.
MSI (s) (8C:14) [09:53:01:562]: Skipping action: ScriptInline (condition is false)
Mihai Bobaru
Advanced Installer Team
http://www.advancedinstaller.com
millerp
Posts: 3
Joined: Mon Jul 18, 2005 9:51 pm
Location: Cranleigh, Surrey, UK
Contact: Website

Hi. The log doesn't say anything about ScriptInline - I've posted all of the part of the log... Is it not firing the custom action because I also need it to do the default action, ie to set the VIVID_PATH variable from the Registry?
ciprian
Posts: 259
Joined: Thu Jul 14, 2005 12:56 pm
Location: Craiova, Romania
Contact: Website

Hi,

Unfortunately we are still not able to replicate your problem.

I don't think that the value of the VIVID_PATH variable is the reason for which your custom action won't fire.

Please send us your AIP file to support at advancedinstaller dot com so we can try to figure out what goes wrong.

All the best,
Ciprian
Ciprian Burca
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”