I would transform the string returned by the @autoitversion macro in a progressive number like this: 3.3.8.1 --> 003003008001 any digit between dots should be formatted in 3 digits, so that any new version will return a number > of the previous version and could be easly compared numerically. the snippet below do the job, but maybe with regex or with another pattern in StringFormat could be done in just one line? could someone smarter than me give an help to shrink it in only one line