{"id":2564,"date":"2018-04-13T10:27:16","date_gmt":"2018-04-13T10:27:16","guid":{"rendered":"https:\/\/puvox.software\/blog\/?p=2564"},"modified":"2021-11-14T13:45:48","modified_gmt":"2021-11-14T13:45:48","slug":"creating-portable-exe-or-self","status":"publish","type":"post","link":"https:\/\/puvox.software\/blog\/creating-portable-exe-or-self\/","title":{"rendered":"Creating portable .EXE or self-extracting installer (using 7zip)"},"content":{"rendered":"<div class=\"default-content-clss content_2564 type_post \"><p><img fetchpriority=\"high\" decoding=\"async\" class=\"wp-image-2566 size-medium aligncenter\" src=\"https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2018\/04\/7-zip-package-installer-300x184.png\" alt=\"\" width=\"300\" height=\"184\" srcset=\"https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2018\/04\/7-zip-package-installer-300x184.png 300w, https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2018\/04\/7-zip-package-installer-400x246.png 400w, https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2018\/04\/7-zip-package-installer.png 682w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<h1 style=\"text-align: center;\">Creating Self-Extracting (portable) .EXE packages<\/h1>\n<p>To create portable .exe files, in the past I tried &#8220;<strong>7-zip SFX Maker<\/strong>&#8221; (but it didn&#8217;t always worked on customer&#8217;s computer), also tried many installer-creators (like Inno-Setup) and etc&#8230; Frankly speaking, I had rarely found a simple program, that could do the simplest task &#8211; <strong>just put the files<\/strong> in package and run the containing <strong>exe<\/strong> file. For that reason, we created another simple <strong>SFX-Packager <\/strong>(idea comes from this\u00a0<span style=\"color: #333399;\"><a style=\"color: #333399; text-decoration: underline;\" href=\"http:\/\/ntsblog.homedev.com.au\/index.php\/2015\/05\/14\/self-extracting-archive-runs-setup-exe-7zip-sfx-switch\/\">blog post<\/a>\u00a0).<\/span><\/p>\n<p>1)\u00a0Download\u00a0\u00a0<a href=\"https:\/\/puvox.software\/tools\/SFX-packager.zip\"><strong>SFX-Packager.zip<\/strong><\/a>\u00a0and unpack anywhere (you need to have <strong><a href=\"https:\/\/www.7-zip.org\/\">7-zip<\/a><\/strong> already installed on PC).<\/p>\n<p>2) Ready all your files inside a <strong>yourfolder<\/strong> (inside it, there should be your primary executable file, either <code>.exe<\/code>\u00a0or whatever)<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-medium wp-image-4239\" src=\"https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2018\/04\/exe-folder-300x132.png\" alt=\"\" width=\"300\" height=\"132\" srcset=\"https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2018\/04\/exe-folder-300x132.png 300w, https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2018\/04\/exe-folder-400x175.png 400w, https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2018\/04\/exe-folder.png 479w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>3) Drag <strong>yourFolder<\/strong> onto the the unpacked\u00a0<strong>SFX_Packager_installer.bat\u00a0<\/strong><\/p>\n<p>That&#8217;s all, you will get the file named <code>_portable_<strong>myApplication.exe<\/strong><\/code>\u00a0 aside the <strong>yourFolder.\u00a0<\/strong> (The only drawback is that as it&#8217;s not officially signed by windows, on first run Windows-Defender Virus Scanner will check it for few seconds) and then the program will run well.\u00a0 <em>(p.s. If you need, you can see available <span style=\"color: #333399;\"><a style=\"color: #333399;\" href=\"https:\/\/sevenzip.osdn.jp\/chm\/cmdline\/switches\/sfx.htm\">SFX commands-list<\/a><\/span>).<\/em><\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<div class=\"default-content-clss excerpt_2564 type_post \"><p>Creating Self-Extracting (portable) .EXE packages To create portable .exe files, in the past I tried &#8220;7-zip SFX Maker&#8221; (but it didn&#8217;t always worked on customer&#8217;s computer), also tried many installer-creators<a class=\"excerpt-read-more\" href=\"https:\/\/puvox.software\/blog\/creating-portable-exe-or-self\/\">(Continue Reading)<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":2566,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[11],"tags":[],"class_list":["post-2564","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows-software"],"_links":{"self":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts\/2564","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/comments?post=2564"}],"version-history":[{"count":0,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts\/2564\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/media\/2566"}],"wp:attachment":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/media?parent=2564"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/categories?post=2564"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/tags?post=2564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}