CustomAction fails on /quiet install - 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!

cpwood
Posts: 4
Joined: Sat Oct 08, 2011 9:09 pm

CustomAction fails on /quiet install

Hi there,

I've got an executable that I've included in:

Windows Volume\Temporary Files\[ProductCode]

as a temporary file. It's called RemoveAffixa.exe.

I've then got a custom action that has the following command line:

"[&removeaffixa.exe]" /COPYLOCAL "[OriginalDatabase]"

This works fine for a normal installation (i.e. double click the MSI), but if I try and run it from msiexec with a /quiet parameter I get a crash as follows:

Product: Affixa -- Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action CopyLocal, location: C:\WINDOWS\Installer\MSI31.tmp, command: "" /COPYLOCAL "C:\affixa-setup.msi"

As you can see from the above, it doesn't look like the path to RemoveAffixa.exe was included in the command line - it's just got "" (quotes).

How can I ensure that the exe gets run in quiet or "normal" mode?

Many thanks,

Chris
cpwood
Posts: 4
Joined: Sat Oct 08, 2011 9:09 pm

Re: CustomAction fails on /quiet install

Just to clarify, the custom action is on InstallExecuteSequence > Begin.

I tried changing the command line so it used:

"[ProductCode__Dir]\RemoveAffixa.exe" /COPYLOCAL "[OriginalDatabase]"

and this failed with a command line of:

"\RemoveAffixa.exe" /COPYLOCAL "[OriginalDatabase]"

So it looks like it's just not resolving the tokens properly..?

Btw - this is on version 8.5.

Chris
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: CustomAction fails on /quiet install

Hi Chris,

This is normal, as the paths are resolved during the costing operations, since you had no UI sequence the paths must be resolved under Execute sequence.

What you need to do is to move the custom action after "CostFinalize" standard action, at this moment the path used by the custom action should be available.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cpwood
Posts: 4
Joined: Sat Oct 08, 2011 9:09 pm

Re: CustomAction fails on /quiet install

Thanks Bogdan! I've moved it to InstallValidate and it works fine now!

Chris

Return to “Common Problems”