Problem building EXE - 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!

kettch
Posts: 28
Joined: Wed Dec 03, 2008 9:34 pm

Problem building EXE

I created a new enterprise installer project today (AI 7.3.1 on WinXP) and all is well until I try to build it as an EXE instead of just an MSI. The error message I am getting in the build project window says:

Code: Select all

Reusing archives from cache... done.
Creating MSI database... done.
Writing Summary Information... done.
error.
Exception - Reason: Access denied writing file [<Removed full local path for brevity>\Setup.exe]. Verify that it is not hidden, read-only or being used by another process.

Build finished because an error was encountered.
Now obviously the message indicates that it can't create the EXE file, but what can I do to fix this? The MSI and CAB files get created perfectly fine in the directory, so it's not a security issue...as soon as I check the "Create EXE setup file" box on the bootstrapper tab and try to build the installer, it throws this error and cancels the build. There are no other files in the directory let alone one with the same name.

Any ideas?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Problem building EXE

Hello,

Please check in the Task Manager that there is no setup.exe process running.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
kettch
Posts: 28
Joined: Wed Dec 03, 2008 9:34 pm

Re: Problem building EXE

Nope, no rogue setups running in the system processes. I've rebooted the system for some other unrelated updates and I still can't build to an EXE.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Problem building EXE

Hello,

Try deleting the said setup.exe, see if that can be done. If it can't, then there's obviously something using the file. Otherwise, just delete it and rebuild the project, see if that fixes it.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
kettch
Posts: 28
Joined: Wed Dec 03, 2008 9:34 pm

Re: Problem building EXE

As I mentioned, the setup.exe file doesn't even exist in the directory. In fact, nothing exists in the directory. During the build process I can watch and see the MSI and CAB file get created in the directory completely fine...once it tries to build the EXE out of the MSI and CAB is when the error occurs, no EXE is ever created.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Problem building EXE

Hi,

Most likely there are some conflicts regarding the writing rights that you have on the machine.

Can you please change the output directory of the project you are building or install Advanced Installer on another machine (even virtual machine)?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kettch
Posts: 28
Joined: Wed Dec 03, 2008 9:34 pm

Re: Problem building EXE

No matter the output directory the problem still occurs. I'm logged into the XP Administrator account and there no other accounts on the machine other than the defaults. I've got about a dozen other Advanced Installer projects that all work fine and have the exact same folder rights as this one.

Loading a fresh install of Advanced Installer on a clean VM and trying to build the project there did work, but that can't be the final solution to the problem as I'm not simply going to have a new system set aside just for building this one project.

Return to “Common Problems”