{"id":113,"date":"2008-12-30T14:12:01","date_gmt":"2008-12-30T21:12:01","guid":{"rendered":"http:\/\/cknotes.com\/?p=113"},"modified":"2008-12-30T14:12:01","modified_gmt":"2008-12-30T21:12:01","slug":"ui-less-self-extracting-exe","status":"publish","type":"post","link":"https:\/\/cknotes.com\/ui-less-self-extracting-exe\/","title":{"rendered":"UI-less Self-Extracting EXE"},"content":{"rendered":"<p>The most common question regarding Chilkat self-extracting EXE&#8217;s is:  How do I create a silent extractor that runs a &#8220;setup&#8221; program after extracting?<\/p>\n<p><strong>Answer:<\/strong><br \/>\nHere is a sample command line that creates a silent self-extracting EXE:<\/p>\n<pre>\r\nChilkatZipSE -u unlockCode -a -sm -sp -nowait -r setup.exe -exe a.exe a.zip\r\n<\/pre>\n<ol>\n<li>The &#8220;-r&#8221; option is used to specify the name of a setup program found within the .zip that is being converted to a self-extracting EXE.<\/li>\n<li>The &#8220;-a&#8221; option is for creating a self-extracting EXE that will automatically extract to an automatically-chosen temp directory.  If &#8220;-a&#8221; is used but &#8220;-r&#8221; is NOT USED, then the resulting EXE *will* display a dialog.  The reason is that it makes no sense to extract to some unknown temp directory unless there is a setup program that can do something with the extracted files.<\/li>\n<li>The &#8220;-sm&#8221; option is for creating a self-extracting EXE that suppresses the main dialog.<\/li>\n<li>The &#8220;-sp&#8221; option  is for creating a self-extracting EXE that suppresses the progress dialog.<\/li>\n<li>The &#8220;-nowait&#8221; option allows the self-extracting process to exit before the setup.exe program completes.<\/li>\n<li>The &#8220;-exe&#8221; option specifies the name of the self-extracting EXE to be created.  If omitted, the EXE produced has the same name as the .zip but with a .exe extension.<\/li>\n<\/ol>\n<p><strong>Some Important Notes:<\/strong>  If the embedded setup EXE does not run, try running the self-extracting EXE with a &#8220;-log&#8221; runtime option to see what happened.  For example:<\/p>\n<pre>\r\na.exe -log whatHappened.log\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The most common question regarding Chilkat self-extracting EXE&#8217;s is: How do I create a silent extractor that runs a &#8220;setup&#8221; program after extracting? Answer: Here is a sample command line that creates a silent self-extracting EXE: ChilkatZipSE -u unlockCode -a -sm -sp -nowait -r setup.exe -exe a.exe a.zip The &#8220;-r&#8221; option is used to specify [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[489],"class_list":["post-113","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-self-extracting-exe"],"_links":{"self":[{"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/posts\/113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/comments?post=113"}],"version-history":[{"count":0,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/posts\/113\/revisions"}],"wp:attachment":[{"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/media?parent=113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/categories?post=113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/tags?post=113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}