Adding "Web" or "Single" to output filename

Got a problem you cannot solve? Try here.
tofutim
Posts: 176
Joined: Thu Mar 01, 2012 1:16 pm

Adding "Web" or "Single" to output filename

Postby tofutim » Mon Oct 19, 2015 6:10 pm

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.

FrancescoT
Site Admin
Posts: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: Adding "Web" or "Single" to output filename

Postby FrancescoT » Tue Oct 20, 2015 11:41 am

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

tofutim
Posts: 176
Joined: Thu Mar 01, 2012 1:16 pm

Re: Adding "Web" or "Single" to output filename

Postby tofutim » Wed Oct 21, 2015 1:41 am

Can you give more light to the second option? I'll try BUILDMODE in the meantime

tofutim
Posts: 176
Joined: Thu Mar 01, 2012 1:16 pm

Re: Adding "Web" or "Single" to output filename

Postby tofutim » Wed Oct 21, 2015 2:22 am

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?

FrancescoT
Site Admin
Posts: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: Adding "Web" or "Single" to output filename

Postby FrancescoT » Wed Oct 21, 2015 12:52 pm

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


Return to “Technical Support”

Who is online

Users browsing this forum: Google [Bot] and 44 guests