We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

enigma
Posts: 89
Joined: Fri Jun 08, 2007 10:12 am

Specify different names for exe and msi

Is it possible to specify different names for exe and msi via command line?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,


Yes, this can be done. You need to specify .exe extension for the <file_path> parameter of the SetPackageName command.

For example:
AdvancedInstaller.com /edit MyProject.aip /SetPackageName MyPackage.exe DefaultBuild (DefaultBuild is the build name from "Builds" page)

But note that you need to have the "Create EXE setup file." option checked in the "Builds" page before running this command line.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
enigma
Posts: 89
Joined: Fri Jun 08, 2007 10:12 am

gigi wrote:Hi,


Yes, this can be done. You need to specify .exe extension for the <file_path> parameter of the SetPackageName command.

For example:
AdvancedInstaller.com /edit MyProject.aip /SetPackageName MyPackage.exe DefaultBuild (DefaultBuild is the build name from "Builds" page)

But note that you need to have the "Create EXE setup file." option checked in the "Builds" page before running this command line.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Oops, I guess I didn't make myself clear.

What I meant was is it possible for AI command line to give different names to .msi and .exe file. For example, I want to set .msi file to "MyMsi.msi" whereas .exe file to "AnExe.exe"-- both of them via command line.

Why command line? Because I need to alter both the name for .msi and .exe files as I create my daily builds. To manually change these file names for every build is a bit tedious, don't you think so?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

The SetPackageName command is use to set the name for both EXE and MSI. The separation is done internally depending on the extension you specify. To specify the name for the EXE use:

Code: Select all

AdvancedInstaller.com /edit MyProject.aip /SetPackageName AnExe.exe DefaultBuild
To specify the name for the MSI use:

Code: Select all

AdvancedInstaller.com /edit MyProject.aip /SetPackageName MyMsi.msi DefaultBuild
Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
enigma
Posts: 89
Joined: Fri Jun 08, 2007 10:12 am

gigi wrote:Hi,

The SetPackageName command is use to set the name for both EXE and MSI. The separation is done internally depending on the extension you specify. To specify the name for the EXE use:

Code: Select all

AdvancedInstaller.com /edit MyProject.aip /SetPackageName AnExe.exe DefaultBuild
To specify the name for the MSI use:

Code: Select all

AdvancedInstaller.com /edit MyProject.aip /SetPackageName MyMsi.msi DefaultBuild
Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Great, this is exactly what I wanted.

Another thing, I want to have different icons for exe and msi file, is it doable?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

You can specify an icon only for the EXE ("Builds->Bootstrapper") but this cannot be done from command line.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”