Automate Product Version - 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!

eeboy
Posts: 7
Joined: Fri May 14, 2010 12:28 am

Automate Product Version

In the product details section I'd like to automate the assignment of the product version. For me, the product version is essentially the version attribute of the .exe file included in the package. Is there anyway to automate this? Can I create a variable from the file version and use it in the product version field?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Automate Product Version

Hi,

Unfortunately this can only be done through a public property if the file's version is user defined. If the version is got from the file then we don't have any predefined functionality to set the package's product version according to it.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
eeboy
Posts: 7
Joined: Fri May 14, 2010 12:28 am

Re: Automate Product Version

That's unfortunate. Perhaps I handle versions in an unorthodox manner but this would be very useful to me. Not only would it prevent me from having to navigate to the file and grab the version info but it would ensure that the package contained the latest version of the executable (because I append the product version to the filename). On more than one occasion I have included an older version of the .exe.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Automate Product Version

Hi,

You can always try to implement the functionality from within your own custom action.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
eeboy
Posts: 7
Joined: Fri May 14, 2010 12:28 am

Re: Automate Product Version

Hmmm... I am not sure I understand. Aren't custom actions to be performed during the install process? I would need a custom action to substitute the file version into the product version during the build process.

Thanks,
Jason
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Automate Product Version

Hi Jason,

You are correct, I apologize for the misinformation.

However, you can only implement this in your own custom way at build time. You can try to use the Advanced Installer command line to achieve this. Here is our user guide reference to it. The "/SetVersion" command would be relevant in your case.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
eeboy
Posts: 7
Joined: Fri May 14, 2010 12:28 am

Re: Automate Product Version

Perfect! I can write something to pull the version info from that file. I'll be back if I have questions on the CLI. :)

Thanks,
Jason

Return to “Common Problems”