I haven't seen in the forum any mention of the question I have:
Is it possible to create conditional Build Events in the project Settings or do these dialogs only allow for calling commands? I'm asking this as I've been adding a couple of items do the Pre-Compress and Post-Compress events in which I realized I don't want the items to run if my program is still in developmental phase, only for Release.
It seems like I would have to write a custom script (powershell or bat) that accepts a conditional item passed through the miabuild command line. I was hoping to not have to write another script to work around things.
I guess that comes to the second question if the first is no, can the Pre-Compress and Post-Compress Events call powershell or bat scripts?
Conditional Build Events possible in the Project Options/Settings?
-
- Posts: 7
- Joined: Mon Mar 01, 2021 9:01 am
-
- Site Admin
- Posts: 5273
- Joined: Sun Aug 22, 2010 4:28 am
Re: Conditional Build Events possible in the Project Options/Settings?
From build events you can run custom applications, or scripts as an integral part of your build process.
In other words, anything that can be invoked via "command prompt", it can be executed via build events as well.
hope this helps you.
In other words, anything that can be invoked via "command prompt", it can be executed via build events as well.
hope this helps you.
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
-
- Posts: 7
- Joined: Mon Mar 01, 2021 9:01 am
Re: Conditional Build Events possible in the Project Options/Settings?
Thanks for the confirmation. It took a bit for me to get a powershell script command line call to work. There is definitely some funny business about spaces in arguments and also the way you have to quote things in the arguments for this to work. But I was finally able to get a script to run with the desired outcome.
Who is online
Users browsing this forum: No registered users and 8 guests