Combine multiple commands and executables into a single exe ¿©·¯ ¸í·É°ú °áÇÕÇÏ¿© ´ÜÀÏ exe¸¦ ½ÇÇà¿¡

Posted on November 21, 2008 at 5:13 am Áö³­´Þ 21 ÀÏ, 2008 °Ô½ÃµÊ ¿ÀÀü 5:13

What if you have multiple executable files that you want to distribute using a single executable file?  Traditionally you will need to create a .bat file but that will mean you know how to program a .bat file and you know your way to the intricacies of manually packing executable files. ½ÇÇà ÆÄÀÏÀÌ ¿©·¯ °³ÀÖ´Ù¸é ±× ÇϳªÀÇ ½ÇÇà ÆÄÀÏÀ» »ç¿ëÇÏ¿© ¹èÆ÷ÇÏ·Á´Â°¡? ÀüÅëÀûÀ¸·Î ÆÄÀÏ. ¹æ¸ÁÀ̸¦ ¸¸µé °ÍÀÔ´Ï´Ù ¹«¾ùÀÌ ÇÊ¿äÇÏÁö¸¸ ±× ¹æ¹ý. bat ÆÄÀÏÀ» ÇÁ·Î±×·¥À¸·Î ´ç½ÅÀÇ ´Ùä·Î¿òÀ» ±ÍÇÏÀÇ ¹æ¹ýÀ» ¾Ë°í ÀÇ¹Ì ½ÇÇà ÆÄÀÏÀ» ¼öµ¿ Æ÷Àå.

There is a free program called Wrapper that will help you complete that task of wrapping executables in no time.  With it¡¯s straightforward interface, all you have to is add executable files and press the Make button to generate a single executable file. °Å±â¿¡ ¹«·á ÇÁ·Î±×·¥ °ÑÀÙ ±× ½Ã°£¿¡ ½ÇÇà Æ÷ÀåÀÇ ÀÛ¾÷À» ¿Ï·áÇÏ´Â µ¥ µµ¿òÀ̵˴ϴÙÀ̶ó°íÇÕ´Ï´Ù. ±×°ÍÀÇ Á÷¼±Àû ÀÎÅÍÆäÀ̽º¿Í ÇÔ²², ¸ðµç ½ÇÇà ÆÄÀÏÀ» Ãß°¡ÇÏ°í ´ÜÀÏ ½ÇÇà ÆÄÀÏÀ» »ý¼ºÇϱâ À§ÇØ È®ÀÎ ¹öưÀ» ´©¸£½Ê½Ã¿À.

To get Wrapper you can download it from ·¡ÆÛ´Â ´ç½Å¿¡°Ô¼­ ±×°ÍÀ» ´Ù¿î·ÎµåÇÏ½Ç ¼öÀÖ½À´Ï´Ù ¾òÀ¸·Á¸é Download.com or go straight to it¡¯s website: ¶Ç´Â ±×°ÍÀÇ À¥»çÀÌÆ®·Î ¹Ù·Î À̵¿ : http://salarsoft.somee.com/ . ÀÖ´Ù.

The website is in Arabic but the software itself is in English.  Unzip the package and double click Wrapper.exe to start making your executable projects: ¾Æ¶ø¾î À¥»çÀÌÆ®ÇÏÁö¸¸ ¼ÒÇÁÆ®¿þ¾î ÀÚü¸¦ ¿µ¾î·Î. UnzipÀ»ÇÏ¿© »ç¾÷À» ½ÃÀÛÇÏ·Á¸é ½ÇÇà ÆÐŰÁö¸¦ µÎ ¹ø Ŭ¸¯ Wrapper.exeÀÔ´Ï´Ù :

À̹ÌÁö

Click Add File to begin adding executable files: ÆÄÀÏÀ» ´©¸£°í ½ÇÇà ÆÄÀÏÀ» Ãß°¡ ½ÃÀÛ¿¡ Ãß°¡ :

À̹ÌÁö

The add file window will appear.  Enter the location of the executable file and make sure to check or uncheck the ¡°Extract¡± box depending on your chosen file.  If your file is a self extracting file (ie installers), make sure to enter the ¡°extract directory¡± location.  Press OK to add the file.  In this case I entered ¡°putty.exe¡± and since it is not a zipped file I unchecked the ¡°Extract¡± box: ÀÌ ÆÄÀÏÀ» Ãß°¡ âÀÌ ³ªÅ¸³³´Ï´Ù.ÀÇ ½ÇÇà ÆÄÀÏÀÇ À§Ä¡¸¦ ÀÔ·ÂÇϰí È®ÀÎ ¶Ç´Â "¿¢±â½ºÀÇ ¼±ÅÃÀ» Ãë¼Ò"»óÀÚ¸¦ ¼±ÅÃÇϽŠÆÄÀÏ¿¡ µû¶ó ÀÖ´ÂÁö È®ÀÎÇÕ´Ï´Ù. °æ¿ì ÆÄÀÏ ÀÚü¸¦ ÀÔ·Â (¿¹ : ¼³Ä¡) ÆÄÀÏÀ» ¾ÐÃà, È®½ÇÇϰԵ˴ϴ٠""À§Ä¡·Î µð·ºÅ丮¸¦ ÃßÃâÇÕ´Ï´Ù.À» ´­·¯ ÆÄÀÏÀ» Ãß°¡·Î È®ÀÎÇß´Ù. ³­ ""±×¸®°í ±×°ÍÀÌ ³»°¡ putty.exe ÀÔ·ÂÇÑ ÈÄ "¿¢±â½º"»óÀÚ¸¦ ¼±ÅÃÇÏÁö ¾ÊÀº ÆÄÀÏÀÌ ¾Æ´Ñ ¾ÐÃàµÈÀÌ °æ¿ì :

À̹ÌÁö

Another thing that you can add are typed-in commands like ¡°firefox¡± that will open up a new firefox window or ¡°notepad¡± to open a new notepad process.  To start adding commands click the ¡°Add Cmd¡± button: ¶Ç ´Ù¸¥ ÇѰ¡Áö´Â ´ç½ÅÀ» Ãß°¡ÇÒ ¼öÀÖ½À´Ï´Ù ÀÔ·ÂµÈ - ±× »õ ¸Þ¸ðÀå ÇÁ·Î¼¼½º¸¦ ¿­°í »õ Firefox â ¶Ç´Â "¸Þ¸ðÀå"¹® ¿­¾î "ÆÄÀÌ¾î Æø½º"¿Í °°Àº ¸í·ÉÇß´Ù. "Cmd"¹öưÀ» Ãß°¡ ¸í·ÉÀ» ½ÃÀÛÇÏ·Á¸é Ãß°¡¸¦ Ŭ¸¯ÇϽʽÿÀ :

À̹ÌÁö

Choose the lower option labeled ¡°Run command¡± and then enter the command name and parameters of the command.  In the example below I entered ¡°firefox¡± and then entered ¡°www.google.com¡± as parameter.  Click OK to add the command to the list: ´ÙÀ½ ¸í·É À̸§°ú ¸í·ÉÀÇ ¸Å°³ º¯¼ö¸¦ ÀÔ·Â ³·Àº ¿É¼ÇÀ» ½ÇÇà "¸í·É"·¹À̺íÀ» ¼±ÅÃÇϽʽÿÀ. ¾Æ·¡ ¿¹Á¦ Äڵ忡¼­´Â ³­ ´ÙÀ½ "ÆÄÀÌ¾î Æø½º"¸¦ ÀÔ·Â ¸Å°³ º¯¼ö·ÎÀº "www.google.com"À» ÀÔ·ÂÇÕ´Ï´Ù. OK¸¦ Ŭ¸¯Çϵµ·Ï ¸í·ÉÀ» Ãß°¡ÇÏ·Á¸é ¸ñ·Ï :

À̹ÌÁö

You should see all of your added commands and executable files on the list of items.  You may change the order of execution by using the ¡°Up¡± and ¡°Down¡± arrows to the left: Ç׸ñÀÇ ¸ñ·Ï¿¡ Ãß°¡µÈ ¸ðµç ¸í·É°ú ½ÇÇà ÆÄÀÏÀÌ ³ªÅ¸³³´Ï´Ù. ³Í ¿ÞÂÊÀ¸·Î È­»ìÇ¥¸¦ »ç¿ëÇÏ¿© ""¹× "¾Æ·¡·Î"ÃÖ´ë »çÇü ÁýÇàÀÇ ¼ø¼­¸¦ º¯°æÇÒ ¼öÀÖ½À´Ï´Ù :

À̹ÌÁö

After you are done adding executable files and commands you can generate the wrapped exe by entering the filename of the exe file you want.  In the example below I entered ¡°test.exe¡± as the output file. ÈÄ¿¡ ´ç½ÅÀº ´ç½ÅÀÌ ¿øÇÏ´Â ÆÄÀÏÀ» exe¸¦ ½ÇÇà ÆÄÀÏÀÇ ÆÄÀϸíÀ» ÀÔ·ÂÇÏ¿© Æ÷Àå exe¸¦ »ý¼ºÇÒ ¼öÀÖ´Â ¸í·ÉÀ» Ãß°¡ ÇÒ ¼öÀÖ½À´Ï´Ù. ¾Æ·¡ ¿¹Á¦ Äڵ忡¼­´Â ³»°¡ ÀÔ·ÂÇÑ "Àº Test.exe"Ãâ·Â ÆÄÀÏ.

À̹ÌÁö

Click ¡°Make¡± to generate the output file: "¸¦ Ŭ¸¯ÇϽʽÿÀ"Ãâ·Â ÆÄÀÏÀ» »ý¼ºÇÕ´Ï´Ù :

À̹ÌÁö

You should be able to see the final output using Windows Explorer: ´ç½ÅÀº ÃÖÁ¾ Ãâ·ÂÀ» »ç¿ëÇÏ¿© Windows Ž»ö±â¿¡¼­ º¼ ¼öÀÖÀ» °ÍÀÔ´Ï´Ù :

À̹ÌÁö

Running this file will execute the executables and files that we wrapped above.  The size of the generated exe file will depend on the size of the exe files you add.  The typed-in commands like ¡°firefox¡± will not eat so much space since it only is a command to call Firefox (ie it will not contain the executable file itself). ÀÌ ÆÄÀÏÀ» ½ÇÇà ÆÄÀÏÀ» ½ÇÇàÇÏ°í ¿ì¸®´Â À§ÀÇ Æ÷ÀåÀÌ ½ÇÇàµË´Ï´Ù. »ý¼ºµÈ exe ÆÄÀÏÀÇ Å©±â Ãß°¡ exe ÆÄÀÏÀÇ Å©±â¿¡ µû¶ó ´Þ¶óÁý´Ï´Ù. ÀÔ·ÂµÈ - "ÆÄÀÌ¾î Æø½º"¿Í °°Àº ¸í·É¿¡ ³Ê¹« ¸¹Àº °ø°£À» ¸ÔÁö ¾ÊÀ» ÀÌÈÄ (Áï, À̰ÍÀº ½ÇÇà ÆÄÀÏ ÀÚü´Â Æ÷ÇÔµÇÁö ¾Ê½À´Ï´Ù) Firefox¸¦ È£ÃâÇÏ´Â ¸í·ÉÀÔ´Ï´Ù.

Wrapper is a great tool for generating your own package of executables.  Instead of sending separate executables and then instructing end users to execute separate commands, wrapped executables and commands will handle them all in one executable. ·¡ÆÛ´Â ÀڽŸ¸ÀÇ ÆÐŰÁö¸¦ »ý¼ºÇÏ´Â ½ÇÇà ÆÄÀÏÀÇ ÈǸ¢ÇÑ µµ±¸ÀÔ´Ï´Ù. ´ë½Å¿¡ º°µµÀÇ ½ÇÇà ÆÄÀÏÀ» º¸³»´Â ±×¸®°í ÃÖÁ¾ »ç¿ëÀÚ¿¡°Ô º°µµÀÇ ¸í·ÉÀ» ½ÇÇàÇϵµ·Ï Áö½Ã, ¸ðµÎ ÇϳªÀÇ ½ÇÇà ¹× ¸í·ÉÀÇ ½ÇÇà¿¡ ¾ÆÀ̵éÀ» ´Ù·ê °ÍÀÔ ¸¶¹«¸®µÆ´Ù.

There are other features of Wrapper that you can use like adding a new registry entries, killing processes and deleting process files.  With these features, we can tell that this is one powerful tool so be careful when using it. ÀÌ¹Ì °ÑÀÙÀÇ ´Ù¸¥ ±â´É, ÇÁ·Î¼¼½º¸¦ Á×ÀÌ´Â ¹× ÇÁ·Î¼¼½º ÆÄÀÏÀ» »èÁ¦ÇÏ´Â »õ·Î¿î ·¹Áö½ºÆ®¸® Ç׸ñÀ» Ãß°¡Ã³·³ »ç¿ëÇÒ ¼öÀÖ´Ù. ÀÌ·¯ÇÑ ±â´É°ú ÇÔ²², ¿ì¸®´Â ±×°ÍÀÌ ÇϳªÀÇ °­·ÂÇÑ µµ±¸°¡ µÉ ¼ö ÀÖÀ¸´ÏÁÖÀǰ¡ ¸»ÇÒ ¶§ »ç¿ëÇÏ½Ç ¼öÀÖ½À´Ï´Ù.

Ben Carigtan writes about computers, websites, technology and how to get the best out of them. º¥ Carigtan ÄÄÇ»ÅÍ, À¥»çÀÌÆ®¿¡ ´ëÇÑ ±â¼ú°ú ±×µé Áß¿¡ °¡Àå ÁÁÀº Ä¡·á¸¦ ¹Þ°ÔÇÏ´Â ¹æ¹ýÀ» ¾¹´Ï´Ù.

Enjoyed this post? ÀÌ °Ô½Ã¹°À» ÀßÇß³ª? Subscribe to Online Tech Tips via ¿Â¶óÀÎ Å×Å© ÆÁÀ» ÅëÇØ ±¸µ¶ ½Åû RSS Feed RSS Çǵå or via ¶Ç´Â¸¦ ÅëÇØ Email À̸ÞÀÏ and receive free daily productivity tips. ¹«·á ÀÏÀÏ »ý»ê¼º ÆÁÀ»¹ÞÀ» ¼öÀÖ´Ù.

» Filed Under »Ãâ¿ø¿¡¼­ Cool Websites À¥»çÀÌÆ® Äð

¸ÀÀִ¿¡ Ãß°¡ Save this page ÀÌ ÆäÀÌÁö¸¦ ÀúÀå ±×°Í Mixx Stir it up on Mixx Mixx¿¡ ¿Ã·Á ÆÄ¹®
reddit Add to Reddit reddit¿¡ Ãß°¡ StumbleUpon Stumble this page ÀÌ ÆäÀÌÁö¸¦ ´õµë´Ù

Related Posts °ü·Ã °Ô½Ã¹°

One Response to ¡°Combine multiple commands and executables into a single exe¡± ÇÑ ¹ÝÀÀ "´ÜÀÏ exe¸¦·Î"¿©·¯ ¸í·É°ú ½ÇÇàÀ» °áÇÕ

  1. Anonymous said on : À͸íÀ» ¹àÇû´Ù :

    Correction: the website is in Farsi, not Arabic. Á¤Á¤ : À¥»çÀÌÆ® Æä¸£½Ã¾Æ¾î¿¡¼­ ¾Æ¶ø¾î·ÎÇÏÁö ¾Ê½À´Ï´Ù.


    Please post your comments/suggestions! ±ÍÇÏÀÇ ÀǰßÀ» °Ô½ÃÇϽñ⠹ٶø´Ï´Ù / Á¦¾È!