SNOOPY33
Posts: 8
Joined: Mon Jan 09, 2006 2:39 pm

Cannot get "attached custom action" to work

Hi,

Im still experimenting with AI. It's is really a great tool. But now I ran into a problem with an attached custom action. I have an exe file, that should be executed before uninstalling any file from a previous installation.

For this, I created an "Attached Austom Action" in the "Uninstall" section. But now, i get the following error message when running the package:

"A program required for this install to complete could not be run". I experimented with several settings on the "Custom Action Properties" but can not get the package to run.

What could be wrong? The Exe file if copied manually to the destination computer runs quite well.

Thanks a lot for your help

Michael
SNOOPY33
Posts: 8
Joined: Mon Jan 09, 2006 2:39 pm

Hmm, I'm not shure, if the error mentioned above "A program required for this install to complete could not be run" is caused by my custom action because at the moment, my package is not even able to uninstall itself. I get the same error message when trying to uninstall it.

Does anybody know, how to manually (and clean) remove (this way, that it disappears from th Windows "Add or Remove Programs".

Thanks
Michael
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

There seems to be a problem with your attached Custom Action. If you have selected "Synchronous execution, check return code" and if your program returns a non-zero error code, the installation will fail and will perform a rollback. Therefore, you will not be able to uninstall your application. You should ignore the return code, in this case, by selecting the appropriate "Execution Property".

I am afraid that the only way to remove the application is by using the "MsiZap" utility included in the Platform SDK. Use the following command line:

Code: Select all

msizap T {product code}
or

Code: Select all

msizap T <msi package>
You can find the product code by opening the AIP file with a text editor and looking for a line like the following. The Product Code is the GUID included in curly braces (including the braces themselves).

Code: Select all

<ROW Property="ProductCode" Value="1033:{9C3B2A82-C7D7-462F-8D98-48A7B6D889D1} "/>
For more details about the "MsiZap" utility, please visit:
http://msdn.microsoft.com/library/defau ... ap_exe.asp

The latest release of the Platform SDK may be downloaded from:
http://www.microsoft.com/msdownload/pla ... k-full.htm

Regards,
Denis
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”