Hi,
I built an installer that used deferred custom actions some time ago using version AI 2.2. I am now trying to upgrade to the latest version (3.3). However, the deferred actions do not seem to work in the same way.
I want to run a "File installed with the product" type of action after all of the files and folders have been installed and check the result of the action.
What previously worked in 2.2 was to set it as follows:
Execution properties: Asychronous, wait for return code
Execution options: Deferred
Scheduling options: Always execute.
I have attached the (slightly truncated) log file below to show you the issue. But, at the point of failure, I check the place where the files are supposed to have been copied to on the file system and they are not there yet.
If anyone can help or suggest other settings to try, it would be most appreciated.
Regards,
Anthony
=== Logging started: 3/18/2005 12:51:01 ===
Action start 12:51:01: INSTALL.
Action start 12:51:01: LaunchConditions.
Action ended 12:51:01: LaunchConditions. Return value 1.
Action start 12:51:01: FindRelatedProducts.
Action ended 12:51:01: FindRelatedProducts. Return value 1.
...
Action start 12:51:01: InstallScriptProperty. <-- THIS IS MINE TO PASS [TARGETDIR] to InstallScript
Action ended 12:51:01: InstallScriptProperty. Return value 1.
...
Action start 12:51:05: DeleteServices.
Action ended 12:51:05: DeleteServices. Return value 1.
Action start 12:51:05: UnregisterComPlus.
Action ended 12:51:05: UnregisterComPlus. Return value 0.
...
Action start 12:51:05: InstallFiles.
Action ended 12:51:07: InstallFiles. Return value 1.
...
Action start 12:51:07: PublishProduct.
Action ended 12:51:07: PublishProduct. Return value 1.
Action start 12:51:07: InstallScript. <--THIS IS THE CUSTOM ACTION
Action ended 12:51:07: InstallScript. Return value 1.
Action start 12:51:07: InstallFinalize.
1: RunInstallScript received targetDir: C:\myapp\
Error 1720. There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. Custom action InstallScript script error -2146828212, : Line 111, Column 2,
MSI (s) (94:B8): Product: ADC -- Error 1720. There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. Custom action InstallScript script err
or -2146828212, Microsoft VBScript runtime error: Path not found Line 111, Column 2,
Action ended 12:55:25: InstallFinalize. Return value 3.
Action ended 12:56:53: INSTALL. Return value 3.
=== Logging stopped: 3/18/2005 12:56:53 ===
MSI (s) (94:B8): Product: ADC -- Installation failed.
=== Logging started: 3/18/2005 13:12:49 ===
Action start 13:12:50: INSTALL.
Action start 13:12:50: LaunchConditions.
Action ended 13:12:50: LaunchConditions. Return value 1.
Action start 13:12:50: FindRelatedProducts.
Action ended 13:12:50: FindRelatedProducts. Return value 1.
Action start 13:12:50: AppSearch