This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: How to auto-name Setup.exe with version number?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 10, 2010
10:33 AM
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'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...
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 24, 2010
02:06 PM
Any luck, I'm trying to do the same and in WISE this is simple.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 24, 2010
02:55 PM
None so far, but I've stopped looking into the problem for a while...
I'll need to look into it again, I have to build a program to automate our build.
I'll need to look into it again, I have to build a program to automate our build.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 24, 2010
03:03 PM
It takes a little bit of doing, but if you're using the InstallShield automation interface, you could read the project's value of ISWiProject.ProductVersion, and then feed that back onto the end of ISWiProductConfig.SetupFileName before performing the build...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 24, 2010
03:10 PM
For example, something like this in a .vbs file:
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...
Set oISM = CreateObject("ISWiAuto16.ISWiProject")
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...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 24, 2010
04:18 PM
Thanks Robert!!
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! 😄 )
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! 😄 )
