Parsing .aip file in python - 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!

mheckmann
Posts: 74
Joined: Wed Apr 20, 2011 6:24 pm

Parsing .aip file in python

Hey, I'm trying to do some manual edits to the .aip file using python's XML parsing, but I get an error when I run into the characters &#2 in my file, as that's illegal in XML. Should I be able to parse an .aip file with an external XML parser or does the file format contain special cases only supported by Advanced Installer?
Thanks
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Parsing .aip file in python

Hi,

Unfortunately it's not recommended nor do we encourage manually editing the .AIP file. This may lead to future unwanted, untraceable behavior.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mheckmann
Posts: 74
Joined: Wed Apr 20, 2011 6:24 pm

Re: Parsing .aip file in python

Hi Mihai,

just getting back onto our installer. I maybe should explain what we are trying to do and why I started looking into editing the .aip file directly:

For our pipeline when building a installer we use the same folder structure for both 32 bit and 64 bit installers. Now we are looking for a way to use the same .aip file for both installers in order to have us only make changes to one file and therefor prevent them from diverging. Is there a way for us to achieve this with Advanced Installer?

Thx for all your help
Markus
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Parsing .aip file in python

Hi Markus,
Is there a way for us to achieve this with Advanced Installer?
You can look into synchronized folders feature:
http://www.advancedinstaller.com/user-g ... lders.html

You may also find the following article and subarticles helpful:
http://www.advancedinstaller.com/user-g ... 32-64.html
Now we are looking for a way to use the same .aip file for both installers
I am not sure if you have a 32-bit and 64-bit version of your application.
If your application uses only 32-bit resources then it's a 32-bit application, therefore you don't need two installers.
Alternatively, please keep in mind this is not permitted, thus you should consider using a custom template project instead:
http://www.advancedinstaller.com/user-g ... jects.html

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mheckmann
Posts: 74
Joined: Wed Apr 20, 2011 6:24 pm

Re: Parsing .aip file in python

I was blind...
after looking again at the command line options I found that I can do the following pretty easily:

- change the build type to x64 via /SetPackageType
- change the appdir via /SetAppDir
- delete 32bit the merge module via /DelMsm
- add 64bit merge module via /AddMsm

now the only remaining thing is that I don't understand what the identifier -buildname <build_name> refers to. I couldn't find any reference in the Advanced Installer dialog for this.

Thanks again for all your help
Markus
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Parsing .aip file in python

Hi Markus,

The "-buildname" parameter asks for your to specify the name of the builds you have created in Media page, to know on which build the command is applied,

If in Media page you have only one build it should not be required to specify it anymore.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mheckmann
Posts: 74
Joined: Wed Apr 20, 2011 6:24 pm

Re: Parsing .aip file in python

Thanks for the info!

Markus

Return to “Common Problems”