The Extension itsefl runs smooth
but: if one upgrade the AI with replacing the old one, the build does not work anymore:
in the .aiproj file is stored, which version has to be used.
<Target Name="Build">
<!--Create the output directory-->
<!-- <MakeDir Directories="$(OutputPath)" Condition="!Exists('$(OutputPath)')" /> -->
<!-- Run the advanced installer on the .aip project - build -->
<!-- Path to the Advanced Installer version used to build .aip is specified in the registry HKEY_CURRENT_USER\SOFTWARE\Caphyon\Advanced Installer\Extension for VS -->
<Exec Condition="Exists(%(Compile.Identity)) AND '$(Configuration)'=='All'" Command=""$([MSBuild]::GetRegistryValue(`HKEY_CURRENT_USER\SOFTWARE\Caphyon\Advanced Installer\Extension for VS`, 9.1))bin\x86\AdvancedInstaller.com" /build "%(Compile.Identity)"" />
<Exec Condition="Exists(%(Compile.Identity)) AND '$(Configuration)'!='All'" Command=""$([MSBuild]::GetRegistryValue(`HKEY_CURRENT_USER\SOFTWARE\Caphyon\Advanced Installer\Extension for VS`, 9.1))bin\x86\AdvancedInstaller.com" /build "%(Compile.Identity)" -buildslist $(Configuration)" />
</Target>
<Target Name="Rebuild">
<!--Create the output directory-->
<!-- MakeDir Directories="$(OutputPath)" Condition="!Exists('$(OutputPath)')" /> -->
<!-- Run the advanced installer on the .aip project - rebuild -->
<Exec Condition="Exists(%(Compile.Identity)) AND '$(Configuration)'=='All'" Command=""$([MSBuild]::GetRegistryValue(`HKEY_CURRENT_USER\SOFTWARE\Caphyon\Advanced Installer\Extension for VS`, 9.1))bin\x86\AdvancedInstaller.com" /rebuild "%(Compile.Identity)"" />
<Exec Condition="Exists(%(Compile.Identity)) AND '$(Configuration)'!='All'" Command=""$([MSBuild]::GetRegistryValue(`HKEY_CURRENT_USER\SOFTWARE\Caphyon\Advanced Installer\Extension for VS`, 9.1))bin\x86\AdvancedInstaller.com" /rebuild "%(Compile.Identity)" -buildslist $(Configuration)" />
</Target>
In the registry is written, that the path to find the advancedinstaller.com to compile the package could be found within the old path (C:\Program Files (x86)\Caphyon\Advanced Installer 9.1\ in this example)
if I change this to C:\Program Files (x86)\Caphyon\Advanced Installer 9.5\, which is currently the correct path, everything works fine...
Question(s):
What is the correct way, to implement something like this?
Are there any plans to make this more generic?
Is there a tool to fix existing .aiproj- files?
Regards
Jimmy
FOLLOW US
Get the latest news in Application Packaging