Build stops with error "File could not be written" - Advanced Installer Community
mlstadel
Posts: 2
Joined: Thu Apr 28, 2016 12:32 pm

Build stops with error "File could not be written"

Hi,

we didn't use Advanced Installer for a long time and now had to rebuild an installer. Unfortunately the build stops with the following error.

Code: Select all

Checking builds status... done.
Build required.
[ DefaultBuild ]
Building package (de): S:\Projekte\OF\Temp\setup.exe 
Preparing files... done.
Copying file(s)... error.
File "S:\Projekte\OF\Temp\System.Windows.Interactivity.dll" could not be written.

Build finished because an error was encountered.
When trying again, it always stops with the error "File could not be written", but sometimes with different files.
I found the related post http://www.advancedinstaller.com/forums ... hp?t=26742 but this does not apply to us.
- The files are not in use by another programm
- Windows Explorer is closed
- We have enough disk space
- Anti-virus software has been stopped
We even started Advanced Installer as administrator, but it did not help either.

We are running Advanced Installer 9.8 on Windows 8.1. Any help would be very much appreciated!

Thanks,
Michael
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Build stops with error "File could not be written"

Hello Michael and welcome to our forums,

This is very weird indeed. Can you please reboot your build machine and see if the behavior still happens after restart? I still suspect there might be a hanging process keeping in use your installation files.

Also, can you please check and make sure your installation files are not marked as Read-only on their source location on disk?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mlstadel
Posts: 2
Joined: Thu Apr 28, 2016 12:32 pm

Re: Build stops with error "File could not be written"

Hello Daniel,

thanks for your reply and sorry for my delayed answer. I thought I get notified when my post is answered and was already wondering why no one answers. When searching for this problem again today I discoverd your post.

I have already rebooted my machine for several times and tried again with no success. I currently checked that none of my installation files is marked as Read-only. Unfortunately the build process still stops.

What is kind of weird is that on the first run it says that a pdf-file could not be written. But when switching to the output folder it gets written anyway.
Then on the next run the build process stops with the same error but on a dll-file which could not be written. And this one indeed is not written.
Restarting Advanced Installer and running the build process again the same error occurs but even with a differen dll-file.

Today I did a litte bit of research:
- I put all source files into C:\Temp\Source and set C:\Temp\Setup-Files as output folder. Still the same error.
- I removed all files except an .exe and .txt file from the installer project. Still the same error "File could not be written."

I played with the output settings in the Media section of Advanced Installer. The error only occurs if the option "Place files unpacked in folders next to the MSI database" is checked. Unfortunately we do need this option.

Any ideas? Are there any known errors with AI 9.8 on Windows 8.1? If it's helpful, I could provide the Advanced Installer project and source files.

Thanks and best regards,
Michael
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Build stops with error "File could not be written"

Hello Michael,

This is very strange indeed. Can you replicate the issue in a new project? If not, can you please send us the related project which replicates the issue to support at advancedinstaller dot com so we can investigate it?

It will be very useful if you could isolate this issue in a small sample (AIP + its reference resource files).

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”