I run the command line build (miabuild.exe) from an Exec task in an MS Build Script. The installer aware script basically just grabs a few redistributable files from the Visual Studio 9 directory.
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<InstallAwareDir>C:\\Program Files\\InstallAware\\InstallAware 9</InstallAwareDir>
<IAProjectFile>E:\\IA9Test\\BuildTest\\BuildTest.mpr</IAProjectFile>
<OutDir>E:\\IA9Test\\Output</OutDir>
<WorkingDir>C:\\Program Files\\Microsoft Visual Studio 9.0</WorkingDir>
</PropertyGroup>
<Target Name="BuilIA9">
<Message Text="Creating Installer"/>
<RemoveDir Directories="$(OutDir)" ContinueOnError="true"/>
<MakeDir Directories="$(OutDir)"/>
<Exec Command=""$(InstallAwareDir)\\miabuild.exe" "$(IAProjectFile)" /r /o="$(OutDir)"" WorkingDirectory="$(WorkingDir)"/>
</Target>
</Project>
Code: Select all
SET MY_DIR=E:\\IA9Test
"C:\\WINDOWS\\Microsoft.NET\\Framework\\v3.5\\msbuild.exe" /l:FileLogger,Microsoft.Build.Engine;logfile=IA9Test.log /toolsversion:3.5 %MY_DIR%\\IA9Build.xml"
C:\\Program Files\\InstallAware\\InstallAware 9\\miabuild.exe" "E:\\IA9Test\\BuildTest\\BuildTest.mpr" /r /o="E:\\IA9Test\\Output"
InstallAware Command Line Build Utility
EXEC : error : Not implemented
E:\\IA9Test\\IA9Build.xml(19,9): error MSB3073: The command ""C:\\Program Files\\InstallAware\\InstallAware 9\\miabuild.exe" "E:\\IA9Test\\BuildTest\\BuildTest.mpr" /r /o="E:\\IA9Test\\Output"" exited with code 3.
So why does the batch file and build sruipt succeed when run from the command prompt, but not when run from the Windows Server 2008 Scheduled Tasks manager?
Also this woked with InstallAware 8. The problem has occurred only with InstallAware 9.

