JPP
Posts: 18
Joined: Wed Oct 28, 2015 4:34 pm

Can no longer build on network drive?

We have an automated build process that builds several versions of our application every day. Part of this build process includes building a few different installation projects (using command files) with the output location set to a network drive. This has been working correctly for a while now. Yesterday I decided to upgrade AdvancedInstaller from 13.1 to 13.4 and this morning all my installation packages have failed saying "Folder path is not valid: (valid network path)" right after the SetOutputLocation command.
JPP
Posts: 18
Joined: Wed Oct 28, 2015 4:34 pm

Re: Can no longer build on network drive?

Since I need to have my packages built everyday and couldn't afford to not have any packages two days in a row I changed my build procedure to build locally and then copy to my UNC path.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Can no longer build on network drive?

Hello,

Can you please make sure the user account under which you run the build process has access rights to your network shared location? I've just tested the scenario using our 13.4 version of Advanced Installer, but the build was successfully on a network location too.

Could you please try to prepare us a small sample (AIP + its referenced resources + a BAT build file) and send us so we can test it on our side too?

Please find attached the sample I've used on our side.

All the best,
Daniel
Attachments
sample.zip
(3.48 KiB) Downloaded 355 times
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
JPP
Posts: 18
Joined: Wed Oct 28, 2015 4:34 pm

Re: Can no longer build on network drive?

The user account has the network rights, I've been running this same exact build process for months now and all that changed the other day was upgrading the AdvancedInstaller version and changing a prerequisite from .Net 4.6.1 to .Net 4.6.2.

Someone else added a message towards then end of this old thread and they seem to be having the same issue I am.
http://www.advancedinstaller.com/forums ... =2&t=30056

I've modified your sample.zip file and included an executable file "sample.exe" that does most of what we do in our build process. Pretty much the only difference is that I kept your static files instead of using synchronized folders (reading from UNC paths). I've also included the commands.txt file and the build.log file what were generated when I reproduced. I did get another error when it is trying to copy the template file but I'm guessing that is only because it is reverting back to your output location since it couldn't set it to mine beforehand.

Let me know if you can reproduce with this. I've since modified my build process and no longer build directly on the network path, I now build the package on the local machine and then copy it to its final network destination and that works correctly.
sample.zip
modified sample.zip
(63.94 KiB) Downloaded 382 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Can no longer build on network drive?

Hello,

I've tested your attached sample, but I cannot replicate the issue. There must be also another detail specific to your build scenario which I'm overlooking. I have run the build opertaion using a command like this:

Code: Select all

"C:\Program Files (x86)\Caphyon\Advanced Installer 13.4\bin\x86\AdvancedInstaller.com" /execute "path_to_AIP\sample.aip" "path_to_AIC\Commands.txt"
Can you please let us what command do you use when launching the AI with command lines? Also, please let us know if you are running the build process under a special user account (e.g. LocalSystem) or under a normal user account with UI.

Please also specify on which Windows version can you replicate the issue too. Maybe it is something specific on a certain WIndows version. I've tested this on a Windows 8.1 and on a Windows 10 machine.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
JPP
Posts: 18
Joined: Wed Oct 28, 2015 4:34 pm

Re: Can no longer build on network drive?

You do not have to run the operation with any command. You can simply run the sample.exe file that I've included or run it from the sample.sln C# code that I've included. Doing so from the C# project you can see exactly what happens in our build procedure.

The build process is run on a Windows 8.1 Enterprise edition machine. The user being used is my own user, as it has been for the past few months. As I said previously, we've been using this same exact procedure for months now, the only things that have changed are the AdvancedInstaller version and that I changed my project to include .Net 4.6.2 instead of .Net 4.6.1 in the prerequisites.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Can no longer build on network drive?

Hello,

I've tested the build scenario using your C# exe app too, but the build operation always succeeded. See attached the build log created by your EXE . Also, I ran the tests on a Windows 8.1 machine too.

For testing purposes only, could you test this scenario on another machine too? Also, can you run another test for a sample project with AI 13.1 and see if there really is a difference between AI 13.1 and AI 13.4 build in what regards this scenario?

I'm afraid I don't have any clue why the "SetOutputLocation " command could fail on AI 13.4.

All the best,
Daniel
Attachments
Build.Log
(507 Bytes) Downloaded 384 times
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”