AI Vis. St Ext: Version of AI is stored within the .aiproj - 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!

Jimmy
Posts: 36
Joined: Thu Apr 12, 2012 1:13 pm

AI Vis. St Ext: Version of AI is stored within the .aiproj

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
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: AI Vis. St Ext: Version of AI is stored within the .aipr

Hello Jimmy,
What is the correct way, to implement something like this?
The only solution, I'm afraid, is to change the version after each update like you did. We are aware of this setback because it was caused by a bug in Advanced Installer. Unfortunately since your .AIPROJ uses the old format, this is the only solution for your current case.
Are there any plans to make this more generic?
The issue is fixed in the current version of Advanced Installer and if you recreate the .AIPROJ in the new format this won't be an issue anymore.
Is there a tool to fix existing .aiproj- files?
Unfortunately not, since you have an old format .AIPROJ, the complete fix would be to recreate it with the new format.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jimmy
Posts: 36
Joined: Thu Apr 12, 2012 1:13 pm

Re: AI Vis. St Ext: Version of AI is stored within the .aipr

Hello Mihai

Thanks for your response.
Tried it, and itt seems to work.
Now I have to test it on the build server, before the trial period is over on it. :oops:

HAve a nice weekend.
Jimmy
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: AI Vis. St Ext: Version of AI is stored within the .aipr

Hello,
Now I have to test it on the build server, before the trial period is over on it.
This shouldn't be a problem. If the trial ends before you can fully evaluate our product, please contact us on e-mail.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”