- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Rename Setup.exe
- 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
Is there a way to rename Setup.exe other than manually?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Thank you for your reply.
I tested and confirmed that you can set the setup.exe file name by specifying the Setup File Name at the Product Configuration level, see the two attached screenshots.
Please give this a try. Does it work for you?
Please let us know if you have any questions or concerns. Thanks!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @isherman,
Thank you for your post.
Could you please provide a screenshot of your Help > About InstallShield screen from your copy of InstallShield that you are using to configure the affected project? This allows me to match the InstallShield service pack level and edition.
Which project type are you using? Basic MSI? InstallScript? Or InstallScript MSI? The project type should be indicated in square brackets on the InstallShield title bar when your affected project is open: [<Project Type>]
By manually, do you mean right-clicking the already built setup.exe and manually renaming the file itself that way with the Rename option? Or does manually include specifying a project setting that causes the built setup.exe to have the specified name automatically? Or both?
Are you looking for a way to programmatically set the setup.exe file name in the project settings by programmatically updating the project file then building the project via an automation script?
Please let us know if you have any questions or concerns. Thanks!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Thank you for your reply.
I tested and confirmed that you can set the setup.exe file name by specifying the Setup File Name at the Product Configuration level, see the two attached screenshots.
Please give this a try. Does it work for you?
Please let us know if you have any questions or concerns. Thanks!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi Revenera_Ian,
How would you insert the ProductVersion in the name of the single file generated when building a InstallScript project.
I found this descript for InstallScript MSI Projects:
https://community.flexera.com/t5/InstallShield-Forum/How-to-rename-msi-file-during-build-time/m-p/38039
But I have still not found anything where you would be able to achieve the same for a InstallScript project.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @JVellabas,
Thank you for your post.
Open your InstallScript project in the InstallShield IDE.
In your InstallScript project, under Installation Information > General Information > General, for Product Version, specify the following:
<MyProductVersion>
<MyProductVersion> is a Path Variable.
Save the project in the InstallShield IDE.
Close the InstallShield IDE.
Then pass the path variable's value on the command line as a parameter for the InstallShield command-line builder, ISCmdBld.exe, with the following command syntax:
"C:\Program Files (x86)\InstallShield\2022\System\IsCmdBld.exe" -p "C:\InstallShield 2022 Projects\InstallScriptProductVersionTest\InstallScriptProductVersionTest.ism" -l MyProductVersion="1.2.3.4"
where "C:\InstallShield 2022 Projects\InstallScriptProductVersionTest\InstallScriptProductVersionTest.ism" is the full path to your InstallShield project .ism file and the -l parameter passes a value for a Path Variable.
I tested and confirmed that this works for me.
Please give these steps a try. Do they work for you?
Please let us know if you have any questions or concerns. Thanks!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
That worked, thank you very much!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Perfect, you are very welcome!
