PeterSteele
Posts: 4
Joined: Thu Sep 16, 2004 10:38 pm

How can I automatically update the version?

Fri Sep 17, 2004 12:23 am

We have a build system that maintains the product version and build count. Each night it automatically updates the build count and this information is compiled into the various components of our product. I'd like to update the installer to use this new version information as well. As far as I can tell though the only way I could do this would be to have to build system to physically update the .aip file before issuing a build. Is this our only option?

Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact:  Website

Fri Sep 17, 2004 8:20 am

For now, this is the only option. And don't forget to also change the ProductID, otherwise Automated Updates will stop working.

In the future, we are planning to have the ability to arbitrarily change AI projects from command line or a script file.

Cata
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Guest

Fri Sep 17, 2004 2:00 pm

It would be easy enough to replace the ProductCode directly in the .api file as part of our nightly build script, but how would I create the code?

Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact:  Website

Fri Sep 17, 2004 2:13 pm

Use the CoCreateGuid() call.
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”