Auto-Increment file version does not work correctly

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
Nillth
Posts: 31
Joined: Thu Aug 01, 2013 6:14 pm
Location: Melbourne, Australia

Auto-Increment file version does not work correctly

Post by Nillth »

Product: PowerShell Studio 2020 (64 Bit)
Build: v5.7.174
OS: Windows 10 Pro (64 Bit)
Build: v10.0.19592.0

When building a exe the Auto-Increment file version does not work correctly.

as per the attached screenshot, the resulting exe will be version 1.0.5.0 however the value is not updated in the .psbuild file, so all subsequent builds are also 1.0.5.0
Expected result would be that subsequent builds Auto-increment without having to manually update the version numbers
SAPIEN_Script_Packager_ftQXOAc2df.png
SAPIEN_Script_Packager_ftQXOAc2df.png (46.96 KiB) Viewed 1418 times

User avatar
Olga_B
Site Admin
Posts: 149
Joined: Mon May 15, 2017 9:06 am

Re: Auto-Increment file version does not work correctly

Post by Olga_B »

The version number will not increase if Script Packager tool is always open.
You need to restart Script Packager, or build packager from PowerShell Studio, then version will be increasing.
When checkbox is checked, the .psbuild will update value
AutoIncrementVersion=1
Every time you restarted Script Packager the value for these two will be updated
FileVersion=
ProductVersion=

User avatar
Nillth
Posts: 31
Joined: Thu Aug 01, 2013 6:14 pm
Location: Melbourne, Australia

Re: Auto-Increment file version does not work correctly

Post by Nillth »

I appreciate that, however I usually build from the Deploy Menu.
PowerShell_Studio_rRdUhRBK2T.png
PowerShell_Studio_rRdUhRBK2T.png (3.79 KiB) Viewed 1147 times
and it is not Auto-Incrementing the values stored in the psbuild file.

I have tried removing the .psbuild file and starting fresh, still with no luck
the build increments from the stored version e.g. if the psbuild file contains
FileVersion=1.2.1.0
ProductVersion=1.2.1.0

the output will be version 1.2.2.0
however subsequent builds do not increment as the psbuild file does not get updated.

I have even test with a fresh project.
QqRFk6gUFe.gif
QqRFk6gUFe.gif (1.29 MiB) Viewed 1147 times

User avatar
Nillth
Posts: 31
Joined: Thu Aug 01, 2013 6:14 pm
Location: Melbourne, Australia

Re: Auto-Increment file version does not work correctly

Post by Nillth »

Note: there is a bit of the a delay in the Gif, however I build the exe twice, and show the properties on the exe after each build.
The build process increments from the stored value in the PSbuild file 1.0.1.0 to 1.0.2.0
however the build process does not update the psbuild file. so subsequent builds are also 1.0.2.0

User avatar
brittneyr
Site Admin
Posts: 589
Joined: Thu Jun 01, 2017 7:20 am
Answers: 5
Been upvoted: 2 times

Re: Auto-Increment file version does not work correctly

Post by brittneyr »

I've been able to reproduce this issue and have informed the development team. It should be fixed in the next build of PowerShell Studio.
Brittney Ryn
SAPIEN Technologies, Inc.

User avatar
Nillth
Posts: 31
Joined: Thu Aug 01, 2013 6:14 pm
Location: Melbourne, Australia

Re: Auto-Increment file version does not work correctly

Post by Nillth »

brittneyr wrote:
Wed Apr 15, 2020 1:46 pm
It should be fixed in the next build of PowerShell Studio.
Thanks Brittney!

User avatar
brittneyr
Site Admin
Posts: 589
Joined: Thu Jun 01, 2017 7:20 am
Answers: 5
Been upvoted: 2 times

Re: Auto-Increment file version does not work correctly

Post by brittneyr »

Please try build 5.7.175 and let me know if this issue is resolved.
Brittney Ryn
SAPIEN Technologies, Inc.