Adding "Web" or "Single" to output filename
Adding "Web" or "Single" to output filename
Hi, is there a way to detect what mode that we are building in? Ideally I would like to add _complete.exe to the Single output and _web to the Web output. For example, for myinstaller.exe - I would get myinstaller_complete.exe and myinstaller_web.exe.
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Adding "Web" or "Single" to output filename
Dear Tofutim,
you may check the "BUILDMODE" pre-defined compiler variable.
In IA X3 you may use a Build Event to execute an external process that sets your file name.
Regards
you may check the "BUILDMODE" pre-defined compiler variable.
In IA X3 you may use a Build Event to execute an external process that sets your file name.
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Adding "Web" or "Single" to output filename
Can you give more light to the second option? I'll try BUILDMODE in the meantime
Re: Adding "Web" or "Single" to output filename
Ok, it looks like BUILDMODE: CD if the deployment type is Uncompressed Directory Layout, SFX if the deployment type is Compressed Single Self-Installing EXE, WEB if the deployment type is Compressed Web-Based EXE, PATCH if a patch is being built. In all CAPS.
I have X3, but am still running X2 for this last series of installers. Is there a way to get Single or Web at the end of the name like the directories? Is the Build name evaluated before the MSI?
I have X3, but am still running X2 for this last series of installers. Is there a way to get Single or Web at the end of the name like the directories? Is the Build name evaluated before the MSI?
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Adding "Web" or "Single" to output filename
Dear Tofutim,
you can use a CUSTOM compiler variable to assign the output file name, but you cannot conditionally assign a compiler variable to the file name.
That said and exclusively with IA X3, you can define a Post Build event where an external process gets called.
The simplest approach is to create a BAT file that accepts at least a command line parameter. In this way you can pass the value of the BUILDMODE pre-defined compiler variable (#BUILDMODE#) as BAT file parameter and then to use it from the BAT file, to conditionally "Rename" the output package.
Hope this helps you.
Regards
you can use a CUSTOM compiler variable to assign the output file name, but you cannot conditionally assign a compiler variable to the file name.
That said and exclusively with IA X3, you can define a Post Build event where an external process gets called.
The simplest approach is to create a BAT file that accepts at least a command line parameter. In this way you can pass the value of the BUILDMODE pre-defined compiler variable (#BUILDMODE#) as BAT file parameter and then to use it from the BAT file, to conditionally "Rename" the output package.
Hope this helps you.
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Who is online
Users browsing this forum: No registered users and 117 guests