문제

Is there a way to use the product version number as a variable when building an path for where the exe gets dumped or for other scenarios, etc.

That way I can set the variable once and just have it automatically be updated everywhere. (eventually, I want to pass in the version number, but thats down the road.)

Thanks

도움이 되었습니까?

해결책

I tried lots of things but there seems to be no way to use a variable product version string (there's a number of threads on the net as well that come to this conclusion). Moreover in our project we also use the version string in the shortcut names, the setup file name etc and found no way to store this in a single place. We found a very manageable solution though via automation. Here's a sample that updates version number and filename using VBScript, but you can also use C# for instance.

Set ISWIProject = CreateObject("IswiAuto19.ISWiProject")
ISWIProject.OpenProject "Our.ism"
ISWIProject.ProductVersion = "4.0.2.0"
ISWIProject.ISWiProductConfigs.Item("Release").SetupFileName = "App_4.0.2.0_Setup"

다른 팁

When building with IsCmdBld.exe you can specify the build location with the -b option. The bummer of this is that it will actually change the ism. It always annoys me that a build will change a source controlled file.

It's also trivial to pass in the product version on the commandline with -y (oddly - this doesn't change the .ism file)

I don't think you can specify a property such as [ProductVersion] in the release location, nor was I able to create a path variable and use that as the release location.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top