Problem opening file with Ant - 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!

cmodic
Posts: 2
Joined: Wed Feb 04, 2009 8:00 pm

Problem opening file with Ant

Hi,

I have been going through a process of upgrading our build process. We use 6.5.2. the error that I am getting is below along with how I'm calling it in our build file. When I first started the build upgrade I had an older version of AI and I upgraded to 6.5.2 I had a similar error and it was do to the "/" vs "\" in the Ant call (thanks to the forums I figured that one out). Well, now I'm doing some further upgrades and I'm getting the error below. AI is still 6.5.2. The msi file is created correctly in the GUI, but not using Ant. Previously when I have gotten an error during the build process (during the AI step), it seems to lock the file down and will no longer find this ccs-client.exe file. Normally, if I close all of my windows, get a new command prompt and/or restart my computer it releases it and will work fine after that. Other times I have had to delete the .aip file and recreate it from scratch. Although this is a pain, not a huge problem until now.

The reason that this has become problematic is that the build process is being moved to Anthill Pro and our code to Subversion. The process was working properly and everything was going well until all of the sudden I had a build that failed during the AI step. Now, I can't seem to get this error to resolve. I have tried everything that I can think of. I can't do some of the things I would normally do, because it is no longer under my control. The process works on my local computer after fixing the issue that caused the original build fail during the AI step.

The error itself is trying to find the file in the wrong place - like I said previously when I had that issue I changed the "/" and "\", but that doesn't seem to be the real issue anymore.

Error:
[exec]
[exec] [ DefaultBuild ]
[exec]
[exec] Building package (en): C:\dev\ccs-trunk-new\ccs-trunk\src/main/client-installer\dev-ccs-client-installer-proj.msi
[exec] Creating CAB file(s)...
[exec] Exception - Error opening file: C:\dev\target\client-dist\devMsi\bin\ccs-client.exe.
[exec] Result: 536805277


Version works on my local machine...
<exec executable="${ADVANCED_INSTALLER_PATH}/AdvancedInstaller.com">
<arg line="/build ${dir.installer}/dev-ccs-client-installer-proj.aip"/>
</exec>

Attempt #2:
<exec executable="${ADVANCED_INSTALLER_PATH}/AdvancedInstaller.com">
<arg line="/build ${dir.installer}\dev-ccs-client-installer-proj.aip"/>
</exec>

Please let me know if you need any further information. Thank you in advance for any help that you can provide!
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Problem opening file with Ant

Hi,

I'm not sure why you are encountering this behavior. Can you please send us the AIP you are using to support at advancedinstaller dot com so we can investigate it? Also, please specify the value you are using for "${dir.installer}".

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cmodic
Posts: 2
Joined: Wed Feb 04, 2009 8:00 pm

Re: Problem opening file with Ant

Thank you. I've emailed the information. I look forward to hearing back from someone. :D
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Problem opening file with Ant

Hi,

We investigated the problem and we found that the error is caused by the path you are using for the AIP file. Basically, this path should use only backslash ("\") characters in order to be supported by Advanced Installer.

Therefore, you can try this:
- set the "dir.installer" property to:

Code: Select all

src\main\client-installer
- use this line:

Code: Select all

<arg line="/build ${dir.installer}\dev-ccs-client-installer-proj.aip"/>
Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”