mfairbrother
Posts: 29
Joined: Tue Dec 20, 2005 12:39 pm

urgent... Windows 2000, fails to run custom actions.

I have a custom action in InstallFinalize that MSI says the following about:

Action start 16:08:37: InstallFinalize.
Info 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: createService, location: C:\Program Files\SpyCatcher Enterprise Agent\, command: C:\Program Files\SpyCatcher Enterprise Agent\service-create.exe "C:\Program Files\SpyCatcher Enterprise Agent\" "C:\Program Files\Java\jre1.5.0_06\bin\client\jvm.dll"
Action ended 16:08:38: InstallFinalize. Return value 1.


Where the custom action properties Full Path is defined:

[#setProperties.exe] -server [SERVER_ADDRESS] -AgentPort [AGENT_PORT] -PollingInterval [POLLING_INTERVAL] -PollingOnly [POLLING_ONLY]

Execution Properties
Synchronous execution, ignore return code is set
Execution Options
Deferred. is set
Scheduling Option
Always Execute is set
Execution Condition
NOT (REMOVE="ALL")


Anyone have any idea what's going on?

If I copy and paste from the install log to a command prompt, the command works as expected.
mfairbrother
Posts: 29
Joined: Tue Dec 20, 2005 12:39 pm

I typed in the wrong example of the custom action, but they are both very simillar and both fail with the same message.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

In order to investigate the problem please send the AIP file (if not contain any confidential informations) to support at advancedinstaller dot com. Also please attach the log file to the mail.

Regards,
Gigi
_________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
mfairbrother
Posts: 29
Joined: Tue Dec 20, 2005 12:39 pm

Sent file, and log file...

Guessing that it's possibly the "Execution Condition", in that the custom action is also getting run in the UpdateStarted phase where files are being removed, does this make sense?

If so shouldn't I be able to change the expression to:

((NOT (REMOVE="ALL") OR (NOT UpdateStarted))
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

From the log file that you sens us I noticed that your custom actions fail because of improperly use of a parameter.

For the createService CA scheduled under "Install" you have "Full Path" edited like this:

Code: Select all

"[#service_create.exe]" "[APPDIR]" "[#jvm.dll_4]"
Please try with this line:

Code: Select all

"[#service_create.exe]" "[APPDIR] " "[#jvm.dll_4]"
Also you need to modify in all CA's that have a similar "File Path".

Regards,
Gigi
________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
mfairbrother
Posts: 29
Joined: Tue Dec 20, 2005 12:39 pm

That doesn't make sense... on a fresh install (not an upgrade) it works just fine. You sure it's not because its being run in the UpdateStarted, and the files have been removed?

You will note in the log file, that at 16:08:37 InstallFinalize is called, and at 16:08:43 InstallFinalize is called again/
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Also I notice that you use "NOT (REMOVE="ALL")" as execution condition for your custom actions. I think you want those custom action to be executed only on install. Then the correct condition is (Not Installed).

Regards,
Gigi
________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
mfairbrother
Posts: 29
Joined: Tue Dec 20, 2005 12:39 pm

Will the CAs get run on upgrades if I make that change?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Yes, of course. Since on upgrades the old version of you package is uninstalled and then install the new one. The CA will run when the new version is installed.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
mfairbrother
Posts: 29
Joined: Tue Dec 20, 2005 12:39 pm

Then the description for that predefined condition isn't very clear. It says "Test if it is the first installation."

Return to “Common Problems”