{"id":1382,"date":"2017-12-04T08:05:17","date_gmt":"2017-12-04T08:05:17","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=1382"},"modified":"2020-01-09T09:37:04","modified_gmt":"2020-01-09T09:37:04","slug":"run-createinstall-from-the-command-line","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/run-createinstall-from-the-command-line\/","title":{"rendered":"Run CreateInstall from the command line"},"content":{"rendered":"<p><strong>created the topic: Run CreateInstall from the command line? Goto page 1, 2 Next<\/strong><br \/>\nHi,<\/p>\n<p>I am wondering if it is possible to use CreateInstall to create an installer package from the command line (according to a specific .ci file).<\/p>\n<p>This way I could create a package using a cmd file. Making the package could be done automatically &#8230;.. from a script of mine. Idea<\/p>\n<p><strong>applicationPackaging replied the topic: Re: Run CreateInstall from the command line? Goto page 1, 2 Next<\/strong><br \/>\nYes, you can.<\/p>\n<p>ci.exe <your .ci project><\/p>\n<p>For example<\/p>\n<p>ci.exe &#8220;c:\\my setups\\my.ci&#8221;<br \/>\nci-light.exe c:\\temp\\my.ci<br \/>\n_________________<\/p>\n<p><strong>replied the topic: Re: Run CreateInstall from the command line? Goto page 1, 2 Next<\/strong><br \/>\now I am wondering if there is a switch that would suppress the &#8220;Creating Installation&#8221; Dialog ?<\/p>\n<p>If not, maybe &#8220;we&#8221; could add this feature in the future? &#8212;- Wink<\/p>\n<p><strong>applicationPackaging replied the topic: Re: Run CreateInstall from the command line? Goto page 1, 2 Next<\/strong><br \/>\nThere is not such feature.<br \/>\nThe state of checkboxes is the same as in the previous execution.<\/p>\n<p><strong>replied the topic: Re: Run CreateInstall from the command line? Goto page 1, 2 Next<\/strong><br \/>\nHi,<\/p>\n<p>Before I was Running ci.exe from the command line according to a specific .ci file<\/p>\n<p>I ran from vbscript [ci.exe &#8220;File.ci&#8221;] it in a hidden window, I still saw the Build Dialog. But I did not see the ci.exe main window.<\/p>\n<p>In CI5 is there a way?<br \/>\nHow about cicmd.exe ?<\/p>\n<p>Does ci.exe have any undocumented switches?<\/p>\n<p>I would at the very least like to run from a .cmd file without the Main window and see just the Build Dialog like I can do using vbscript.<\/p>\n<p>I am trying to automate the Packaging operation. I would like it to be Totally quiet, and at the most see the Build Dialog.<\/p>\n<p>I would like to do this without using vbscript.<\/p>\n<p>Any hope for me? Rolling Eyes Rolling Eyes<\/p>\n<p>I noticed if I make an XP shortcut to ci.exe, and in the properties window choose Run Minimized.<\/p>\n<p>Then if you double click the shortcut, ci.exe does Not run minimized. So I cannot use this as a workaround.<\/p>\n<p><strong>applicationPackaging replied the topic: Re: Run CreateInstall from the command line? Goto page 1, 2 Next<\/strong><br \/>\nIf you want to run creating setups from the command line then use cicmd.exe<\/p>\n<p>cicmd.exe &#8220;path to your .ci project file&#8221;<br \/>\nAlso, see Project tab &#8211; > Setup Builder options of your project.<\/p>\n<p>About minimizing shotrcuts<br \/>\nOpen cmds\\cmds\\system\\shortcut.gt<br \/>\nChange Line 91 from<br \/>\n<min label = minimize>2<\/><br \/>\nto<br \/>\n<min label = minimize>7<\/><\/p>\n<p>Save it. It will fix the problem.<\/p>\n<p><strong>applicationPackaging replied the topic: Re: Run CreateInstall from the command line? Goto page 1, 2 Next<\/strong><br \/>\nGreat,<\/p>\n<p>cicmd.exe let me run the ci file with the main window minimized.<br \/>\nI only see the Build Dialog Box.<\/p>\n<p>That was a big help.<\/p>\n<p>Alexey I have a cmd script that is parsing and writing the *.ci file.<br \/>\nAt the end of the .cmd file, I run the file now using cicmd.exe.<\/p>\n<p>It would really be nice to be able to suppress the Build Dialog.<\/p>\n<p>In my .cmd file I want to parse and create the .ci file, then Build the CreateInstall.exe file.<\/p>\n<p>Then I would like to go on without stopping in my .cmd file, and parse a new *.ci file, and then create a new Installerexe file then perhaps repeat again more times!<\/p>\n<p>But I cannot do this as when I run cicmd.exe the first time, the Build Dialog Opens and I have to close it.<\/p>\n<p>Though I would MUCH prefer to be able to suppress the Build Dialog when using cicmd.exe , I could get by if the Dialog would open then close automatically.<\/p>\n<p>In CI5, checking the box in the Build Dialog for &#8220;Close Automatically On Completion&#8221; seems to do nothing (even for a re-build).<\/p>\n<p>Help! (a little bit more) Smile<\/p>\n<p><strong>replied the topic: Re: Run CreateInstall from the command line? Goto page 1, 2 Next<\/strong><br \/>\nFor example, you have a project myproject.ci.<br \/>\nOpen it with ci.exe<br \/>\nOpen Project Tab &#8211; Setup Builder.<br \/>\nCheck on &#8216;Close Automatically&#8217; checkbox there.<br \/>\nSave it.<br \/>\nNow if you run it as<br \/>\ncicmd.exe myproject.ci<br \/>\nthen Build Dialog will be closed automatically.<\/p>\n<p><strong>applicationPackaging replied the topic: Re: Run CreateInstall from the command line? Goto page 1, 2 Next<\/strong><br \/>\nThis may be true, but I never will use cicmd.exe on a .ci file that has been run by double clicking (thru the main window).<\/p>\n<p>So When I run a .ci file with cicmd.exe, a .ci file that has never been run &#8230;&#8230; when I check the box &#8220;Close Automatically&#8221; then hit the button &#8220;Close&#8221;&#8230;. (here there is no way to &#8220;save&#8221;) .<\/p>\n<p>For a new .ci file, the box is always unchecked by default.<\/p>\n<p>I need a preference setting to choose cicmd.exe to always close automatically (for the next time I run a new file with cicmd.exe)<\/p>\n<p>Always on a .ci file never Built, the box is unchecked.<br \/>\nAm I wrong?<\/p>\n<p><strong>replied the topic: Re: Run CreateInstall from the command line? Goto page 1, 2 Next<\/strong><br \/>\nYou can manage the state of checkboxes from the command line.<br \/>\n-r or -r1 &#8211; &#8216;Launch setup on close&#8217; is checked<br \/>\n-r0 &#8211; unchecked<br \/>\n-c or -c1 &#8211; &#8216;Close Automatically&#8217; is checked<br \/>\n-c0 &#8211; unchecked<\/p>\n<p>For example,<br \/>\ncicmd.exe -c -r &#8220;myproject.ci&#8221;<\/p>\n<p><strong>applicationPackaging replied the topic: Re: Run CreateInstall from the command line? Goto page 1, 2 Next<\/strong><br \/>\nJust what I needed !<\/p>\n<p>That -c1 switch is just &#8220;what the Doctor ordered&#8221; !<\/p>\n<p>That works and allows me to do what I wanted to do.<\/p>\n<p>Smile Smile Smile Very Happy Very Happy Very Happy Very Happy Very Happy<\/p>\n<p>Thanks for doing such a good job understanding what I wanted to do.<br \/>\nOnce again CreateInstall comes thru, and has the power to solve my problem to my perfect satisfaction.<\/p>\n<p>This is rare in the world of software, and I say these things because I am fussy: it seems like I am always wanting to do something the software cannot do.<\/p>\n<p>Also the time it takes to get answers in this forum is super short. Anyone reading this post Knows that real answers do not come quickly in the forums elsewhere on other subjects! I KNOW !!!!!!<\/p>\n<p>All of this represents a level of quality, I for one, only aspire to !<br \/>\n Report This<br \/>\nQuick Reply Action   Moderate Thank You<\/p>\n","protected":false},"excerpt":{"rendered":"<p>created the topic: Run CreateInstall from the command line? Goto page 1, 2 Next Hi, I am wondering if it is possible to use CreateInstall to create an installer package&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[49],"tags":[333],"class_list":["post-1382","post","type-post","status-publish","format-standard","hentry","category-general","tag-command"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1382","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=1382"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1382\/revisions"}],"predecessor-version":[{"id":1383,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1382\/revisions\/1383"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=1382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=1382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=1382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}