Hi there! Today I’m going to show you how to extend your InstallAware setup packages to support custom command line switches. A frequent question we get is “why don’t standard MSI command line switches work?” The answer is really simple – InstallAware has its own bootstrapper and the command line parameters it accepts are well documented under the help topic “Setup Command Line Parameters“. In a nutshell, /s makes setup run silently, /l=<full path to log file> turns on logging, and you can pass variable values using the form “TARGETDIR=<path value>” (including the quotes, if you are specifying values with spaces in them).
Now that we’ve gotten the basics out of the way, let’s talk about how to extend this behavior. For instance, you might have some real difficult customers who have this irrational insistence on sticking to standard MSI command line parameters. Or, more legitimately, you might be wanting to define your own custom command line parameters to do whatever you feel like doing with.
The $CMDLINE$ pre-defined script variable contains the exact command line passed to your installer. You can investigate what this variable contains using the If script command together with the Contains expression. This will make it very easy for you to test for the presence of custom command line switches. For instance, take a look at the following code snippet:
if Variable CMDLINE Contains /quiet
Set Variable SILENT to TRUE
end
This snippet uses the pre-defined script variable $SILENT$ to turn on silent installation mode when /quiet, a standard MSI command line parameter, has been passed to your installer. Easy enough!
For more complex evaluations, you can assign the $CMDLINE$ pre-defined script variable to a custom variable and then use the Parse String command to extract exactly whatever you need without destroying the contents of the original command line variable.
Talk to you soon!
Michael Nesmith
your friendly support engineer
Hey Michael,
We use the cmd line options in InstallAware for silent mode installs. However, we now want to support this to be pushed in Active Directory Software Distribution policies, using assignment to computers, and we can’t provide cmd line switches to the MSI directly in AD.
Do you have any recommendations on what to do?
Your line, “you might have some real difficult customers who have this irrational insistence on sticking to standard MSI command line parameters”, is completely ridiculous. Standardized command parameters are really important and useful.
I agree wholeheartedly with Software Package Guy. Standardized command parameters are indeed important and useful.
The naming of $CMDLINE$ is misleading. It is NOT the command line, it is the arguments. The command line would include the path to the installer file. It so happens, that is the piece of information I am trying to obtain.
I can get you off in 10 minutes if you’re willing to pay $100 per minute 🙂
Harika paylaşım devamını beklerim
Teşekkürler faydalı bir içerik paylaşmışsın
Sitenizi çok beğendim konularınızın devamını beklerim teşekkürler
Yazıyı beğendim çok teşekkürler
Sitenizi çok beğendim konularınızın devamını beklerim teşekkürler
Sayfanızı çok beğendim konularınızın devamını beklerim kolay gelsin
Konuyu beğendim çok teşekkür ederim
Merhabalar google da gezinirken yazınız gözüme çarptı çok beğendim teşekkür ederim.
Merhabalar nette gezinirken konunuz gözüme çarptı çok beğendim teşekkür ederim.
Araştırdığım bir çok konuda sitenizi buluyorum teşekkür ederim
Uzun süredir aradığım bilgiydi teşekkürlerimi sunarım
Güzel bir makale çok teşekkür ederim
Google’da arama yaparken sitenizi buldum siteniz ilgimi çekti çok teşekkür ederim
İyi bir içerik teşekkür ederim
Wow, amazing weblog format! How lengthy have you
been running a blog for? you made running a blog look easy.
The total look of your site is great, let alone the content!
Hi there I am so thrilled I found your blog page, I really
found you by accident, while I was researching on Aol for something else,
Nonetheless I am here now and would just like to say thanks a lot for a remarkable post and a all round enjoyable
blog (I also love the theme/design), I don’t have time
to browse it all at the minute but I have bookmarked it
and also added in your RSS feeds, so when I have
time I will be back to read a lot more, Please do keep up
the fantastic work.
{
Mercado livre lançou proximamente Mercado Shops, instrumento gratuitya integrada ao Mercado Pago que possibilita encqvalgar uma
página com e também-commerce com identidade visual e domínio próprios, controle de vendas, cadastro desde compradores e outras facilidades
administrativas.
Many thanks, this site is very useful.|
Valuable info. Lucky me I found your website unintentionally, and I’m surprised why this
twist of fate did not happened earlier! I bookmarked it.
Faça uma sátira construtiva tanto quanto em direção a você, uma
vez que líder e zelador, no que se refere à lhe negócio.
You can Learn How To Redeem this NBA 2K16 DLC Game Code On Xbox And PlayStation – Just Download The Full PDF Guide under.
Definitely, what a great site and illuminating posts, I will bookmark your site.Best Regards!
Great looking site. Think you did a great deal of your very own coding.|
Undeniably believe that that you stated. Your favorite reason seemed to be at the web the simplest factor to have in mind of. I say to you, I definitely get irked at the same time as people think about worries that they just don’t know about. You controlled to hit the nail upon the top and also outlined out the entire thing with no need side effect , other folks could take a signal. Will likely be back to get more. Thanks
I’ve recently started a blog, the information you offer on this website has helped me greatly. Thanks for all of your time & work.
I used to be suggested this blog by my cousin. I am now not sure whether or not this put up is written via him as no one else recognize such specified about my difficulty. You are amazing! Thanks!
Great V I should definitely pronounce, impressed with your website. I had no trouble navigating through all the tabs and related info ended up being truly easy to do to access. I recently found what I hoped for before you know it at all. Quite unusual. Is likely to appreciate it for those who add forums or anything, website theme . a tones way for your client to communicate. Nice task..
I was looking through some of your blog posts on this site and I conceive this website is very instructive! Keep putting up.
Good ?V I should definitely pronounce, impressed with your web site. I had no trouble navigating through all tabs and related info ended up being truly simple to do to access. I recently found what I hoped for before you know it at all. Quite unusual. Is likely to appreciate it for those who add forums or something, site theme . a tones way for your client to communicate. Excellent task..
You are my inhalation, I possess few blogs and sometimes run out from to post .
Absolutely indited articles, appreciate it for entropy. “The bravest thing you can do when you are not brave is to profess courage and act accordingly.” by Corra Harris.
My brother recommended I may like this web site. He used to be totally right.
This publish actually made my day. You can not consider just how a lot time I had spent for this info!
Thank you!
I got what you mean , thankyou for putting up.Woh I am happy sex find this porn through google. “Those who corrupt the public mind are just as evil as those who steal from the public.” by Theodor Wiesengrund Adorno.
Gostei do conteudo!muito objetivo, se incomoda se eu compartilhar?
thanks so much!
What’s up to every body, it’s my first pay a
visit of this blog; this website carries remarkable
and in fact good stuff for visitors.
You are an amazing writer! I just bookmarked your webpage.
Amazing blog thanks!
Thank you a bunch for sharing this with all folks you actually realize what you’re talking about!
Bookmarked. Please also visit my website =). We
could have a hyperlink change agreement among us
Their affiliate partners make money, too. They provide commissions for any sale that stemmed on their affiliate partner’s website. Once they have securely delivered the product, they impart a percentage of its sale to affiliate partners. The commissions they provide to affiliate partners differ from 2 to 75, depending upon the affiliate-marketing program they have registered with.
Teşekkürler
Great information. Lucky me I found your site by chance (stumbleupon).
I’ve book marked it for later!
I have read so many content about the blogger lovers
but this article is genuinely a pleasant article, keep it up.