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
- :
- How to rename msi file during build time
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Feb 07, 2018
09:53 AM
How to rename msi file during build time
Hi
I would like to rename my msi file during build. Say msi file name should be PproductName Vx.0.0.BuildNumber.
I created a path variable for above string and assigned to MSI file name in releases - MSI Package file name. But it does not work. Name of my path variable is PATH1. I tried to set the field with PATH1 or
and i get name of the msi file as PATH1 in first case and second case error.
I would also like to know consequences of renaming the msi file for patching / major upgrade.
Thanks in advance.
Amarjeet
I would like to rename my msi file during build. Say msi file name should be PproductName Vx.0.0.BuildNumber.
I created a path variable for above string and assigned to MSI file name in releases - MSI Package file name. But it does not work. Name of my path variable is PATH1. I tried to set the field with PATH1 or
and i get name of the msi file as PATH1 in first case and second case error.
I would also like to know consequences of renaming the msi file for patching / major upgrade.
Thanks in advance.
Amarjeet
(5) Replies
‎Feb 08, 2018
01:53 PM
From the InstallShield 2018 Release Notes:
In InstallShield 2018, you can now include the value of a property from the Property Table in product release configuration setup and package file names.
For example, you could enter any of the following properties in the Setup File Name or MSI Package File Name field on the General tab of the Releases > Product Configuration view:
If you entered setup[ProductVersion] in the Setup File Name field, it would result in a setup named setup14.10.1234.exe, for example.
In InstallShield 2018, you can now include the value of a property from the Property Table in product release configuration setup and package file names.
For example, you could enter any of the following properties in the Setup File Name or MSI Package File Name field on the General tab of the Releases > Product Configuration view:
- setup[ProductVersion]
- setup[CustomVersion]
- setup[ProductCode]
- setup[ProductCode][ProductVersion]
If you entered setup[ProductVersion] in the Setup File Name field, it would result in a setup named setup14.10.1234.exe, for example.
‎Oct 25, 2018
01:19 AM
Add an invoke process to call a batch file that will do rename
so the contents of the bat file is something like
or create a custom activity to do the same thing
you could make it generic by adding an argument value that contains your environment name and then set the value in the build definition screen, you could then pass the environment name as an argument to batch / custom activity so you would end up with
mobdro[/HR]
so the contents of the bat file is something like
rename xyz.msi xyz.QA.msi
or create a custom activity to do the same thing
you could make it generic by adding an argument value that contains your environment name and then set the value in the build definition screen, you could then pass the environment name as an argument to batch / custom activity so you would end up with
SET ENV=%1
rename xyz.msi xyz.%ENV%.msi
mobdro[/HR]
‎Oct 30, 2018
01:54 AM
DanGalender wrote:
From the InstallShield 2018 Release Notes:
In InstallShield 2018, you can now include the value of a property from the Property Table in product release configuration setup and package file names.
For example, you could enter any of the following properties in the Setup File Name or MSI Package File Name field on the General tab of the Releases > Product Configuration view:
- setup[ProductVersion]
- setup[CustomVersion]
- setup[ProductCode]
- setup[ProductCode][ProductVersion]
If you entered setup[ProductVersion] in the Setup File Name field, it would result in a setup named setup14.10.1234.exe, for example.
I agree with DanGalender,you can set property which you want to set may be BuildNumber\Version via IDE or via automation interfaces which can be any script.You can use those properties for setting MSI Package File Name.
Thanks,
Jenifer