PDA

View Full Version : How to rename msi file during build time



Amarjeet
02-07-2018, 10:53 AM
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 <PATH1>
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

Christoph
02-08-2018, 08:34 AM
You can write a script that modifies the productname in the ism (not the msi) BEFORE buildtime.

Have a look at the ISWiProperty object of the automation interface.

DanGalender
02-08-2018, 02: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:


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.

Christoph
02-09-2018, 01:33 AM
@DanGalender

Then he still needs a script to set the correct productversion on buildtime :)

Declan145
10-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


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 (https://mobdro.ooo/)

Jenifer
10-30-2018, 01:54 AM
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