InstallFinalize Custom Action not completing - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

mrudolph
Posts: 25
Joined: Fri May 22, 2009 6:30 pm

InstallFinalize Custom Action not completing

I have a custom action configured for InstallFinalize with the following properties:
Source Type: vbs script
Function Name: PrepDb
Action Data: <empty>
Execution Properties: I have tried them all though the one that makes the most sense, 'Asynchronous execution, wait for return code at the end of the sequence'
Execution Options: Immediate Execution
Scheduling Options: Always Execute

The script is found and ran but it never completes. I can run the script by itself, outside the install and it all works as expected; the entire script completes.

Are they ways of debugging this? I am running into a known issue? Does it matter how long the script is or how long it needs to execute?

What more do I need to provide to help you understand the situation?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: InstallFinalize Custom Action not completing

Hi,

You can try generating a verbose log for the install process. This should offer more information about why the custom action fails. If you can't determine the cause, please send us the .AIP (project) file and the log to support at advancedinstaller dot com so we can investigate them.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mrudolph
Posts: 25
Joined: Fri May 22, 2009 6:30 pm

Re: InstallFinalize Custom Action not completing

The logging was very helpful. For some reason the WScript.sleep statements in my .vbs were causing a problem.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: InstallFinalize Custom Action not completing

Hi,

Unfortunately Windows Installer does not support the "Sleep" function in VBScript custom actions. However, you can try using the approach explained in this thread:
http://www.advancedinstaller.com/forums ... f=2&t=4849

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”