QuarkMan
Posts: 4
Joined: Thu Jun 20, 2013 10:46 pm

Post-Build Event Failed to launch

My post-build events (still) work fine in v10.1, but when I loaded v10.5.2, I now get a failed build with error:
Failed to launch application with retCode: -1
The event command is "Cmd.exe" w/args:
/c copy "[|AI_AIP_FOLDER]SetupFiles\*.exe" "[|AI_AIP_FOLDER]..\..\..\Publish\Setup"
I tried adding the path to Cmd.exe, to no avail. Tried switching to XCOPY - but always get the same error.
It is already running as administrator, though that should not be relevant.
The paths are all still there - but this is irrelevant since it's not even running the command. When I uninstalled 10.5.2 and reinstalled 10.1 it started working again. I don't have time to fish out which version broke it, since there are several between 10.1 and 10.5.2.
Am running 64-bit Windows 8 Pro N w/all patches/security updates.
This is the first time loading an updated has ever broken my install. Great product! Please fix this, I can't load the update w/o it.
Thanks,
James Frater, Creative Software Solutions, Springfield, MO USA
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Post-Build Event Failed to launch

Hi James,

I'm glad you like our product.

I tested your scenario, but I cannot reproduce the behavior. Can you please send us the .AIP (project file created with version 10.1) to support at advancedinstaller dot com so we can investigate it?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
QuarkMan
Posts: 4
Joined: Thu Jun 20, 2013 10:46 pm

Re: Post-Build Event Failed to launch

I sent the requested .AIP file as requested. Thanks for taking a look.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Post-Build Event Failed to launch

Hi James,

First of all I apologize for my delayed reply.

I looked over your project and after some investigation I found that the quotes (" ") from the working directory path seem to cause the problem. It seems that this was changed in a recent Advanced Installer version, but I will investigate and see if this was intended or not.

Meanwhile you can remove the quotes from the "Working Dir" field and it should work.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
QuarkMan
Posts: 4
Joined: Thu Jun 20, 2013 10:46 pm

Re: Post-Build Event Failed to launch

Hi Eusebiu,

I removed the quotes from the "Working Dir" field in post-build events and no longer get the error when building my setup with 10.5.2.
Thank you for your prompt and productive attention! This solves my issue.
Thanks,
James Frater, Creative Software Solutions, Springfield, MO USA
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Post-Build Event Failed to launch

You're welcome James. I'm glad you got this working.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”