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!

ewanb
Posts: 28
Joined: Mon Jun 05, 2006 1:53 pm
Location: Glasgow

Command line /version | /setversion not working

We have been using the command line to update version numbers of merge modules using the following command line:

Code: Select all

AdvancedInstaller.com /edit project_name.aip /version "project_file.dll" -fromfile
Since updating to the latest version of Advanced Installer (4.1.2) this no longer works. Instead it sets the version number to be blank which causes the build to fail with an error.

Discovered from the online help that /version flag had been deprecated so tried new syntax:

Code: Select all

AdvancedInstaller.com /edit project_name.aip /setversion -fromfile "project_file.dll"
No improvement. Version number still ends up being blank. There is no problem with the versioned files because they are the same files that were being used previously without issue. Also the syntax would appear to be correct because AI does not complain when executing the command.

We urgently need to generate a new release but manually changing versions for all files is too much work so a quick suggestion as to what we can try would be gratefully received.

Cheers,
Ewan
ewanb
Posts: 28
Joined: Mon Jun 05, 2006 1:53 pm
Location: Glasgow

I have received an email from AI support indicating that this is a bug with the new version.

My advice is that if you use the command line then you should hold off upgrading your version until this and any other command line bugs have been ironed out.

I'm now off to manually change version numbers on a few hundred files :cry:
jbridges
Posts: 38
Joined: Fri Jun 09, 2006 12:36 am

Work around for problem

Rather than set the version directly from the file, you can first extract it with the filever.exe tool from Microsoft.

This is a free download, part of Windows XP Service Pack 2 Support Tools.

The version can be extracted in a batch file and then set the version using the /version on the command line to invoke AdvancedInstaller.com
ewanb
Posts: 28
Joined: Mon Jun 05, 2006 1:53 pm
Location: Glasgow

Thanks for the tip, filever.exe was just what I needed. For the benefit of others who may be having similar problems you can download the Windows XP SP2 Support Tools (including filever.exe) here:

http://www.microsoft.com/downloads/deta ... laylang=en

And the line I used in our batch scripts to pass version information onto AI is:

Code: Select all

for /F "usebackq tokens=4" %%i in (`filever /A /D "MyModule.dll"`) do AdvancedInstaller.com /edit MyModule.aip /SetVersion %%i
Hope this helps,
Cheers,
Ewan

Return to “Common Problems”