UnstoppableDrew
Posts: 32
Joined: Tue Oct 16, 2007 4:04 pm
Location: Burlington, MA USA
Contact: Website Yahoo Messenger

Setversion -fromfile not working from commands file

I modified the Welcome dialog to show the product version being installed:

The [Wizard] will install [ProductName] version [ProductVersion] on your computer.

I then created a commands file, and included a SetVersion -fromfile line:

;aic
SetVersion -fromfile ..\..\dotNet\dist\bin\debug\Server\Bin\Common.dll
build -force

Common.dll currently has a version of 0.0.4496.0, but when I run the installer, the dialog reports 1.0.0.0. if I explicitly SetVersion to a fixed value that value is correctly reported in the dialog.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

I cannot reproduce this behavior on my test machine. Please make sure that the path of the "Common.dll" file is correct and that the commands file is executed.

You can check if the command works by opening the AIP and checking the "Product Version" field after you execute the file of commands.

http://www.advancedinstaller.com/user-g ... -line.html

Let me know if the problem persists.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
UnstoppableDrew
Posts: 32
Joined: Tue Oct 16, 2007 4:04 pm
Location: Burlington, MA USA
Contact: Website Yahoo Messenger

I found the problem. We set the AssemblyVersion, not the FileVersion attribute of the file. So it was correctly picking up the FileVersion which is 1.0.0.0.
The workaround I came up with is a couple lines of perl to generate a commands file with the correct static build number and that will get run by the build process.

Return to “Common Problems”