Arthur
Posts: 69
Joined: Wed May 19, 2010 9:53 am

Build finished because an error was encountered

Hi, I get the following error when i try to build project:

Checking builds status... done.
Build required.
[ DefaultBuild ]
Building package (en): [Path to file\installer.exe ]
Creating CAB file(s)... done.
Creating MSI database... done.
Writing Summary Information... done.
Creating EXE file... error.
File "[Path to file\installer.exe ]" could not be written.

Build finished because an error was encountered.

Does building a project produce a log file? I've hidden the path in the error message above, but it exists, and can be written to.
Arthur
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Build finished because an error was encountered

Hi Arthur,

I'm not sure why you encountered this behavior.

This error may appears when the related .EXE is already used by another program, the .EXE is running.

Also, this error may appears when the output folder (the folder where the package will be created) is open. A conflict between the Operating System and Advanced Installer is encountered. So, it is recommended to close the output folder when the package is built.
Does building a project produce a log file?
The only log that can be seen is the one from the Build Project window.

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Arthur
Posts: 69
Joined: Wed May 19, 2010 9:53 am

Re: Build finished because an error was encountered

The .exe does not exist yet, so can't be open, and the output folder is not open. I still get the same error.
Arthur
Posts: 69
Joined: Wed May 19, 2010 9:53 am

Re: Build finished because an error was encountered

Is anyone able to give me any help?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Build finished because an error was encountered

Hi Arthur,

The cases mentioned by Dan are usually the ones that reproduce this error message. We cannot get other situations reproduced.

Do you have the latest version of Advanced Installer? Also, do you have on the machine an anti-virus software that could prevent the build process from working in Advanced Installer?

Our build process consist of using a stub EXE (empty), in which we inject the resources you want, like icons, MSI, application files, etc...
An antivirus with a very restricted set of rules could stop Advanced Installer from building the package.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Arthur
Posts: 69
Joined: Wed May 19, 2010 9:53 am

Re: Build finished because an error was encountered

I can use Advanced Installer to build other packages on the same machine - I've been using it on this machine since January - so I don't think it's the Anti Virus.

Is there any way I can get AI to produce another logfile? What else can I do? Is it possible that the project file has become corrupted? Is there any way that I can tell?

I need this to be working again soon - ideally today. I have to release this project next week.

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

Re: Build finished because an error was encountered

HI Arthur,

advinst.exe does not produce a log file, only the setup and the custom actions included in it can create logs.

Maybe the location where you save the project is the problem. Is is in the same location, relatively, as the other projects you built with Advanced Installer? Try changing the location of the project file and the output location also.

The project is not corrupted, as there are no setting in the project that can lead to this error. If it would be corrupted you would have like
loading errors or incorrect setup behavior, but not build problems.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Arthur
Posts: 69
Joined: Wed May 19, 2010 9:53 am

Re: Build finished because an error was encountered

Problem solved - I didn't have enough space in the folder I was trying to write to. Thanks for your help.
Arthur

Return to “Common Problems”