Launch Attached File Custom Action Issue - Advanced Installer Community
elliotpenson
Posts: 4
Joined: Fri Aug 01, 2014 8:34 pm

Launch Attached File Custom Action Issue

I am having trouble with a "Launch attached file" custom action. My installer needs to call an executable (embedded in the MSI file), specifically WinZip's WZUNZIP.exe. The usage of this command-line application takes the form: wzunzip -d file.zip location. Within the "Launch attached file" page, I have selected the WinZip executable from my machine and entered the command line arguments (-d [APPDIR]cdsp-db.zip [APPDIR]). The "Execution Stage Condition" is set to (Not Installed). The custom action has been placed after "Add Resources" and before "Finish Execution" in the "Install Execution Stage". During the installation stage, I get an error message that says: "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". Do you have any suggestions?

Here is a screenshot of my setup:
Image
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Launch Attached File Custom Action Issue

Hi,

I think the problem is caused by the command line statement. Please make you sure that it is spelled correctly. Usually a file or folder path will contain spaces. So make sure you enclose the target path in quotes as in the following example:
  • Command line: "[APPDIR]"
By the way, if you want your custom action to be executed only on install, you can uncheck the "Uninstall" and "Maintenance" options, so you do not need to write the "NOT Installed" condition for it.

All the best,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”