
0_FrancoisGaudet asked a question.
How to auto-name Setup.exe with version number?
Hi all,
I've searched, but haven't found, so I'll ask:
- In a basic MSI project with a 'setup.exe' bootstrapper, is there a way to 'auto-name' the setup.exe to something like 'OurProduct [ProductVersion].exe' ?
- Tried "OurProduct {ProductVersion}", but it just literally outputs "OurProduct {ProductVersion}.exe"
- Tried "OurProduct [ProductVersion]", again, just outputs OurProduct [ProductVersion].exe
- Tried "OurProduct [{ProductVersion}]", still no go, just got the same literal string...
I'll need to look into it again, I have to build a program to automate our build.
oISM.OpenProject("Sample App 3000.ism")
' get ProductVersion...
pv = oISM.ProductVersion
' ...add it to the setup.exe file name...
oISM.ISWiProductConfigs("v100").SetupFileName = "setup_" + pv
' ...and build the project
oISM.ISWiProductConfigs("v100").ISWiReleases("dvd").Build( )
oISM.SaveProject
oISM.CloseProject
Then run the script using cscript /nologo rename_and_build.vbs.
Ideally wouldn't use hard-coded product config and release names, but it's a start...
I don't have the time to try this out right now, but I'll keep a sticky on this and update when I try it: it looks like it should solve the problem nicely!
(and thanks to chrislynn5 for bumping the thread! :D )