Creating a single file executable from a directory in Windows?











up vote
0
down vote

favorite












There's an answer there, but it's two years old, and provides no information on how to do it.



Situation: I have a folder with an executable file, some required dlls and some images.
I want to package all this into a single executable file. If executed, it will run the executable file.



I've found this superuser post. However, it doesn't seem to offer a solution.



If you're familiar with Python, there's an application called PyInstaller. It creates single-file executables from python sourcecode.



I'm not sure about the exact inner-workings of it, but it generally does something like this:




  • Wrap the directory with executable into a new executable, ex app.exe

  • the new executable executes a program, which unpacks the hidden directory into a temporary folder, a folder called _MEIxxxxx, x's being numbers. For example: C:UsersMeAppDataLocalTemp_MEI188722

  • execute the program from that folder.


From what I've read, they use hackery dark-magic to make this work. I'm wondering if there is a program that does this kind of dark-magic for non-python files.










share|improve this question
























  • The post you linked doesn't talk about converting a directory into an executable. They talk about storing a directory into a ZIP file, then change its extension, and then they talk about an hypothetical application which is going to be associated to the new extension.
    – drk.com.ar
    May 4 '14 at 0:01










  • @drk.com.ar So that would mean, that for example app.newextension would be associated with an application that is already installed on the user's pc, and that would start the program inside the zip? It looks like there really is no way at all to make a self-contained application into an self-contained executable. Also, I've rewritten the post to be more clear about what I want to achieve.
    – Azeirah
    May 4 '14 at 0:14












  • Now, your question is different. I'm going to add an answer.
    – drk.com.ar
    May 4 '14 at 0:36










  • I suggest creating a MSI file instead. Windows will automatically install a msi file as well as an exe. An MSI file is much like an other compressed file (zip etc), but you can configure it to extract and install your app.
    – cybernard
    Jun 19 at 11:52















up vote
0
down vote

favorite












There's an answer there, but it's two years old, and provides no information on how to do it.



Situation: I have a folder with an executable file, some required dlls and some images.
I want to package all this into a single executable file. If executed, it will run the executable file.



I've found this superuser post. However, it doesn't seem to offer a solution.



If you're familiar with Python, there's an application called PyInstaller. It creates single-file executables from python sourcecode.



I'm not sure about the exact inner-workings of it, but it generally does something like this:




  • Wrap the directory with executable into a new executable, ex app.exe

  • the new executable executes a program, which unpacks the hidden directory into a temporary folder, a folder called _MEIxxxxx, x's being numbers. For example: C:UsersMeAppDataLocalTemp_MEI188722

  • execute the program from that folder.


From what I've read, they use hackery dark-magic to make this work. I'm wondering if there is a program that does this kind of dark-magic for non-python files.










share|improve this question
























  • The post you linked doesn't talk about converting a directory into an executable. They talk about storing a directory into a ZIP file, then change its extension, and then they talk about an hypothetical application which is going to be associated to the new extension.
    – drk.com.ar
    May 4 '14 at 0:01










  • @drk.com.ar So that would mean, that for example app.newextension would be associated with an application that is already installed on the user's pc, and that would start the program inside the zip? It looks like there really is no way at all to make a self-contained application into an self-contained executable. Also, I've rewritten the post to be more clear about what I want to achieve.
    – Azeirah
    May 4 '14 at 0:14












  • Now, your question is different. I'm going to add an answer.
    – drk.com.ar
    May 4 '14 at 0:36










  • I suggest creating a MSI file instead. Windows will automatically install a msi file as well as an exe. An MSI file is much like an other compressed file (zip etc), but you can configure it to extract and install your app.
    – cybernard
    Jun 19 at 11:52













up vote
0
down vote

favorite









up vote
0
down vote

favorite











There's an answer there, but it's two years old, and provides no information on how to do it.



Situation: I have a folder with an executable file, some required dlls and some images.
I want to package all this into a single executable file. If executed, it will run the executable file.



I've found this superuser post. However, it doesn't seem to offer a solution.



If you're familiar with Python, there's an application called PyInstaller. It creates single-file executables from python sourcecode.



I'm not sure about the exact inner-workings of it, but it generally does something like this:




  • Wrap the directory with executable into a new executable, ex app.exe

  • the new executable executes a program, which unpacks the hidden directory into a temporary folder, a folder called _MEIxxxxx, x's being numbers. For example: C:UsersMeAppDataLocalTemp_MEI188722

  • execute the program from that folder.


From what I've read, they use hackery dark-magic to make this work. I'm wondering if there is a program that does this kind of dark-magic for non-python files.










share|improve this question















There's an answer there, but it's two years old, and provides no information on how to do it.



Situation: I have a folder with an executable file, some required dlls and some images.
I want to package all this into a single executable file. If executed, it will run the executable file.



I've found this superuser post. However, it doesn't seem to offer a solution.



If you're familiar with Python, there's an application called PyInstaller. It creates single-file executables from python sourcecode.



I'm not sure about the exact inner-workings of it, but it generally does something like this:




  • Wrap the directory with executable into a new executable, ex app.exe

  • the new executable executes a program, which unpacks the hidden directory into a temporary folder, a folder called _MEIxxxxx, x's being numbers. For example: C:UsersMeAppDataLocalTemp_MEI188722

  • execute the program from that folder.


From what I've read, they use hackery dark-magic to make this work. I'm wondering if there is a program that does this kind of dark-magic for non-python files.







windows packages






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 20 '17 at 10:04









Community

1




1










asked May 3 '14 at 23:52









Azeirah

10915




10915












  • The post you linked doesn't talk about converting a directory into an executable. They talk about storing a directory into a ZIP file, then change its extension, and then they talk about an hypothetical application which is going to be associated to the new extension.
    – drk.com.ar
    May 4 '14 at 0:01










  • @drk.com.ar So that would mean, that for example app.newextension would be associated with an application that is already installed on the user's pc, and that would start the program inside the zip? It looks like there really is no way at all to make a self-contained application into an self-contained executable. Also, I've rewritten the post to be more clear about what I want to achieve.
    – Azeirah
    May 4 '14 at 0:14












  • Now, your question is different. I'm going to add an answer.
    – drk.com.ar
    May 4 '14 at 0:36










  • I suggest creating a MSI file instead. Windows will automatically install a msi file as well as an exe. An MSI file is much like an other compressed file (zip etc), but you can configure it to extract and install your app.
    – cybernard
    Jun 19 at 11:52


















  • The post you linked doesn't talk about converting a directory into an executable. They talk about storing a directory into a ZIP file, then change its extension, and then they talk about an hypothetical application which is going to be associated to the new extension.
    – drk.com.ar
    May 4 '14 at 0:01










  • @drk.com.ar So that would mean, that for example app.newextension would be associated with an application that is already installed on the user's pc, and that would start the program inside the zip? It looks like there really is no way at all to make a self-contained application into an self-contained executable. Also, I've rewritten the post to be more clear about what I want to achieve.
    – Azeirah
    May 4 '14 at 0:14












  • Now, your question is different. I'm going to add an answer.
    – drk.com.ar
    May 4 '14 at 0:36










  • I suggest creating a MSI file instead. Windows will automatically install a msi file as well as an exe. An MSI file is much like an other compressed file (zip etc), but you can configure it to extract and install your app.
    – cybernard
    Jun 19 at 11:52
















The post you linked doesn't talk about converting a directory into an executable. They talk about storing a directory into a ZIP file, then change its extension, and then they talk about an hypothetical application which is going to be associated to the new extension.
– drk.com.ar
May 4 '14 at 0:01




The post you linked doesn't talk about converting a directory into an executable. They talk about storing a directory into a ZIP file, then change its extension, and then they talk about an hypothetical application which is going to be associated to the new extension.
– drk.com.ar
May 4 '14 at 0:01












@drk.com.ar So that would mean, that for example app.newextension would be associated with an application that is already installed on the user's pc, and that would start the program inside the zip? It looks like there really is no way at all to make a self-contained application into an self-contained executable. Also, I've rewritten the post to be more clear about what I want to achieve.
– Azeirah
May 4 '14 at 0:14






@drk.com.ar So that would mean, that for example app.newextension would be associated with an application that is already installed on the user's pc, and that would start the program inside the zip? It looks like there really is no way at all to make a self-contained application into an self-contained executable. Also, I've rewritten the post to be more clear about what I want to achieve.
– Azeirah
May 4 '14 at 0:14














Now, your question is different. I'm going to add an answer.
– drk.com.ar
May 4 '14 at 0:36




Now, your question is different. I'm going to add an answer.
– drk.com.ar
May 4 '14 at 0:36












I suggest creating a MSI file instead. Windows will automatically install a msi file as well as an exe. An MSI file is much like an other compressed file (zip etc), but you can configure it to extract and install your app.
– cybernard
Jun 19 at 11:52




I suggest creating a MSI file instead. Windows will automatically install a msi file as well as an exe. An MSI file is much like an other compressed file (zip etc), but you can configure it to extract and install your app.
– cybernard
Jun 19 at 11:52










2 Answers
2






active

oldest

votes

















up vote
0
down vote













Windows doesn't allow an application to be launched from inside a container (like a zip file) in native way. That's why PyInstaller unpacks to a temporary directory for running the actual application.



Compressors like ZIP and 7Zip offer you the ability to create a self-extracting executable. Which is the regular compressed file plus the executable code needed for decompressing. Packed into a single file. 7zip offers the option to create self-extracting archives for installers. Maybe you can use this option to run a standard program instead of an installer anyway: http://7zip.bugaco.com/7zip/MANUAL/switches/sfx.htm



You can configure it to run any file you want after extracting. I'm not sure if you are going to be able to remove the prompt.






share|improve this answer





















  • 7zip or izarc has the option to automatically run an exe after it extracts the files. they don't delete the files though when they are done. so at best you are leaving behind a bunch of files in the tmp folder and at worst have just showed the user where to find your app and files so they can muck with it.
    – Kendrick
    May 4 '14 at 1:47










  • According to the link I passed, 7Zip removes temporary folder after execution.
    – drk.com.ar
    May 4 '14 at 2:24










  • not if the program is currently running locking a file. I am 90% sure I tried using the sfx with auto delete several years agao for our wrapper and it never properly deleted files. I ended up making a batch file to delete the files we didn't want the users to know about. If they got better at that I can't say since I use nsis for every thing now.
    – Kendrick
    May 4 '14 at 2:28










  • "Windows doesn't allow an application to be launched from inside a container" - this is false. It has nothing to do with allowing, its that the program is not executable code until is decompressed.
    – Keltari
    Dec 12 '17 at 1:49


















up vote
0
down vote













nsis http://en.wikipedia.org/wiki/Nullsoft_Scriptable_Install_System would be the best option I have seen. I have made several wrappers for work apps that we don't want users poking around the files used to repair their pc etc. I just built a virus scanner front end this week that auto downloads msert/mcafee stinger/mcafee rootkit using the corp proxy and then runs all 3 apps for the tech's.



you could do what your asking with a standard template/example, in the main section set the out dir [ $OUTDIR %temp%_MEI188722 ] and add a [ file yourapp.exe ] line for each file in the original directory that the program needs. next use a execwait line to run the application in question. a command for sleep 20ms and then delete %temp%_MEI188722 so that the files get removed after they are not being used.



Setting the installer to silent mode would keep any standard installer dialog boxes from showing up and your app would just load after a moment. or you could create custom dialog pages if you needed the user to select any options first or wanted the app to return a message if it had some kind of error. The tutorials and community are quite active and help full so once you get used to how nsis does things it should be straight forward. http://hmne.sourceforge.net/ this is a handy program to allow you to more easily edit the script file to allow you to make the exe.






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f749447%2fcreating-a-single-file-executable-from-a-directory-in-windows%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    Windows doesn't allow an application to be launched from inside a container (like a zip file) in native way. That's why PyInstaller unpacks to a temporary directory for running the actual application.



    Compressors like ZIP and 7Zip offer you the ability to create a self-extracting executable. Which is the regular compressed file plus the executable code needed for decompressing. Packed into a single file. 7zip offers the option to create self-extracting archives for installers. Maybe you can use this option to run a standard program instead of an installer anyway: http://7zip.bugaco.com/7zip/MANUAL/switches/sfx.htm



    You can configure it to run any file you want after extracting. I'm not sure if you are going to be able to remove the prompt.






    share|improve this answer





















    • 7zip or izarc has the option to automatically run an exe after it extracts the files. they don't delete the files though when they are done. so at best you are leaving behind a bunch of files in the tmp folder and at worst have just showed the user where to find your app and files so they can muck with it.
      – Kendrick
      May 4 '14 at 1:47










    • According to the link I passed, 7Zip removes temporary folder after execution.
      – drk.com.ar
      May 4 '14 at 2:24










    • not if the program is currently running locking a file. I am 90% sure I tried using the sfx with auto delete several years agao for our wrapper and it never properly deleted files. I ended up making a batch file to delete the files we didn't want the users to know about. If they got better at that I can't say since I use nsis for every thing now.
      – Kendrick
      May 4 '14 at 2:28










    • "Windows doesn't allow an application to be launched from inside a container" - this is false. It has nothing to do with allowing, its that the program is not executable code until is decompressed.
      – Keltari
      Dec 12 '17 at 1:49















    up vote
    0
    down vote













    Windows doesn't allow an application to be launched from inside a container (like a zip file) in native way. That's why PyInstaller unpacks to a temporary directory for running the actual application.



    Compressors like ZIP and 7Zip offer you the ability to create a self-extracting executable. Which is the regular compressed file plus the executable code needed for decompressing. Packed into a single file. 7zip offers the option to create self-extracting archives for installers. Maybe you can use this option to run a standard program instead of an installer anyway: http://7zip.bugaco.com/7zip/MANUAL/switches/sfx.htm



    You can configure it to run any file you want after extracting. I'm not sure if you are going to be able to remove the prompt.






    share|improve this answer





















    • 7zip or izarc has the option to automatically run an exe after it extracts the files. they don't delete the files though when they are done. so at best you are leaving behind a bunch of files in the tmp folder and at worst have just showed the user where to find your app and files so they can muck with it.
      – Kendrick
      May 4 '14 at 1:47










    • According to the link I passed, 7Zip removes temporary folder after execution.
      – drk.com.ar
      May 4 '14 at 2:24










    • not if the program is currently running locking a file. I am 90% sure I tried using the sfx with auto delete several years agao for our wrapper and it never properly deleted files. I ended up making a batch file to delete the files we didn't want the users to know about. If they got better at that I can't say since I use nsis for every thing now.
      – Kendrick
      May 4 '14 at 2:28










    • "Windows doesn't allow an application to be launched from inside a container" - this is false. It has nothing to do with allowing, its that the program is not executable code until is decompressed.
      – Keltari
      Dec 12 '17 at 1:49













    up vote
    0
    down vote










    up vote
    0
    down vote









    Windows doesn't allow an application to be launched from inside a container (like a zip file) in native way. That's why PyInstaller unpacks to a temporary directory for running the actual application.



    Compressors like ZIP and 7Zip offer you the ability to create a self-extracting executable. Which is the regular compressed file plus the executable code needed for decompressing. Packed into a single file. 7zip offers the option to create self-extracting archives for installers. Maybe you can use this option to run a standard program instead of an installer anyway: http://7zip.bugaco.com/7zip/MANUAL/switches/sfx.htm



    You can configure it to run any file you want after extracting. I'm not sure if you are going to be able to remove the prompt.






    share|improve this answer












    Windows doesn't allow an application to be launched from inside a container (like a zip file) in native way. That's why PyInstaller unpacks to a temporary directory for running the actual application.



    Compressors like ZIP and 7Zip offer you the ability to create a self-extracting executable. Which is the regular compressed file plus the executable code needed for decompressing. Packed into a single file. 7zip offers the option to create self-extracting archives for installers. Maybe you can use this option to run a standard program instead of an installer anyway: http://7zip.bugaco.com/7zip/MANUAL/switches/sfx.htm



    You can configure it to run any file you want after extracting. I'm not sure if you are going to be able to remove the prompt.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered May 4 '14 at 1:04









    drk.com.ar

    2,097912




    2,097912












    • 7zip or izarc has the option to automatically run an exe after it extracts the files. they don't delete the files though when they are done. so at best you are leaving behind a bunch of files in the tmp folder and at worst have just showed the user where to find your app and files so they can muck with it.
      – Kendrick
      May 4 '14 at 1:47










    • According to the link I passed, 7Zip removes temporary folder after execution.
      – drk.com.ar
      May 4 '14 at 2:24










    • not if the program is currently running locking a file. I am 90% sure I tried using the sfx with auto delete several years agao for our wrapper and it never properly deleted files. I ended up making a batch file to delete the files we didn't want the users to know about. If they got better at that I can't say since I use nsis for every thing now.
      – Kendrick
      May 4 '14 at 2:28










    • "Windows doesn't allow an application to be launched from inside a container" - this is false. It has nothing to do with allowing, its that the program is not executable code until is decompressed.
      – Keltari
      Dec 12 '17 at 1:49


















    • 7zip or izarc has the option to automatically run an exe after it extracts the files. they don't delete the files though when they are done. so at best you are leaving behind a bunch of files in the tmp folder and at worst have just showed the user where to find your app and files so they can muck with it.
      – Kendrick
      May 4 '14 at 1:47










    • According to the link I passed, 7Zip removes temporary folder after execution.
      – drk.com.ar
      May 4 '14 at 2:24










    • not if the program is currently running locking a file. I am 90% sure I tried using the sfx with auto delete several years agao for our wrapper and it never properly deleted files. I ended up making a batch file to delete the files we didn't want the users to know about. If they got better at that I can't say since I use nsis for every thing now.
      – Kendrick
      May 4 '14 at 2:28










    • "Windows doesn't allow an application to be launched from inside a container" - this is false. It has nothing to do with allowing, its that the program is not executable code until is decompressed.
      – Keltari
      Dec 12 '17 at 1:49
















    7zip or izarc has the option to automatically run an exe after it extracts the files. they don't delete the files though when they are done. so at best you are leaving behind a bunch of files in the tmp folder and at worst have just showed the user where to find your app and files so they can muck with it.
    – Kendrick
    May 4 '14 at 1:47




    7zip or izarc has the option to automatically run an exe after it extracts the files. they don't delete the files though when they are done. so at best you are leaving behind a bunch of files in the tmp folder and at worst have just showed the user where to find your app and files so they can muck with it.
    – Kendrick
    May 4 '14 at 1:47












    According to the link I passed, 7Zip removes temporary folder after execution.
    – drk.com.ar
    May 4 '14 at 2:24




    According to the link I passed, 7Zip removes temporary folder after execution.
    – drk.com.ar
    May 4 '14 at 2:24












    not if the program is currently running locking a file. I am 90% sure I tried using the sfx with auto delete several years agao for our wrapper and it never properly deleted files. I ended up making a batch file to delete the files we didn't want the users to know about. If they got better at that I can't say since I use nsis for every thing now.
    – Kendrick
    May 4 '14 at 2:28




    not if the program is currently running locking a file. I am 90% sure I tried using the sfx with auto delete several years agao for our wrapper and it never properly deleted files. I ended up making a batch file to delete the files we didn't want the users to know about. If they got better at that I can't say since I use nsis for every thing now.
    – Kendrick
    May 4 '14 at 2:28












    "Windows doesn't allow an application to be launched from inside a container" - this is false. It has nothing to do with allowing, its that the program is not executable code until is decompressed.
    – Keltari
    Dec 12 '17 at 1:49




    "Windows doesn't allow an application to be launched from inside a container" - this is false. It has nothing to do with allowing, its that the program is not executable code until is decompressed.
    – Keltari
    Dec 12 '17 at 1:49












    up vote
    0
    down vote













    nsis http://en.wikipedia.org/wiki/Nullsoft_Scriptable_Install_System would be the best option I have seen. I have made several wrappers for work apps that we don't want users poking around the files used to repair their pc etc. I just built a virus scanner front end this week that auto downloads msert/mcafee stinger/mcafee rootkit using the corp proxy and then runs all 3 apps for the tech's.



    you could do what your asking with a standard template/example, in the main section set the out dir [ $OUTDIR %temp%_MEI188722 ] and add a [ file yourapp.exe ] line for each file in the original directory that the program needs. next use a execwait line to run the application in question. a command for sleep 20ms and then delete %temp%_MEI188722 so that the files get removed after they are not being used.



    Setting the installer to silent mode would keep any standard installer dialog boxes from showing up and your app would just load after a moment. or you could create custom dialog pages if you needed the user to select any options first or wanted the app to return a message if it had some kind of error. The tutorials and community are quite active and help full so once you get used to how nsis does things it should be straight forward. http://hmne.sourceforge.net/ this is a handy program to allow you to more easily edit the script file to allow you to make the exe.






    share|improve this answer

























      up vote
      0
      down vote













      nsis http://en.wikipedia.org/wiki/Nullsoft_Scriptable_Install_System would be the best option I have seen. I have made several wrappers for work apps that we don't want users poking around the files used to repair their pc etc. I just built a virus scanner front end this week that auto downloads msert/mcafee stinger/mcafee rootkit using the corp proxy and then runs all 3 apps for the tech's.



      you could do what your asking with a standard template/example, in the main section set the out dir [ $OUTDIR %temp%_MEI188722 ] and add a [ file yourapp.exe ] line for each file in the original directory that the program needs. next use a execwait line to run the application in question. a command for sleep 20ms and then delete %temp%_MEI188722 so that the files get removed after they are not being used.



      Setting the installer to silent mode would keep any standard installer dialog boxes from showing up and your app would just load after a moment. or you could create custom dialog pages if you needed the user to select any options first or wanted the app to return a message if it had some kind of error. The tutorials and community are quite active and help full so once you get used to how nsis does things it should be straight forward. http://hmne.sourceforge.net/ this is a handy program to allow you to more easily edit the script file to allow you to make the exe.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        nsis http://en.wikipedia.org/wiki/Nullsoft_Scriptable_Install_System would be the best option I have seen. I have made several wrappers for work apps that we don't want users poking around the files used to repair their pc etc. I just built a virus scanner front end this week that auto downloads msert/mcafee stinger/mcafee rootkit using the corp proxy and then runs all 3 apps for the tech's.



        you could do what your asking with a standard template/example, in the main section set the out dir [ $OUTDIR %temp%_MEI188722 ] and add a [ file yourapp.exe ] line for each file in the original directory that the program needs. next use a execwait line to run the application in question. a command for sleep 20ms and then delete %temp%_MEI188722 so that the files get removed after they are not being used.



        Setting the installer to silent mode would keep any standard installer dialog boxes from showing up and your app would just load after a moment. or you could create custom dialog pages if you needed the user to select any options first or wanted the app to return a message if it had some kind of error. The tutorials and community are quite active and help full so once you get used to how nsis does things it should be straight forward. http://hmne.sourceforge.net/ this is a handy program to allow you to more easily edit the script file to allow you to make the exe.






        share|improve this answer












        nsis http://en.wikipedia.org/wiki/Nullsoft_Scriptable_Install_System would be the best option I have seen. I have made several wrappers for work apps that we don't want users poking around the files used to repair their pc etc. I just built a virus scanner front end this week that auto downloads msert/mcafee stinger/mcafee rootkit using the corp proxy and then runs all 3 apps for the tech's.



        you could do what your asking with a standard template/example, in the main section set the out dir [ $OUTDIR %temp%_MEI188722 ] and add a [ file yourapp.exe ] line for each file in the original directory that the program needs. next use a execwait line to run the application in question. a command for sleep 20ms and then delete %temp%_MEI188722 so that the files get removed after they are not being used.



        Setting the installer to silent mode would keep any standard installer dialog boxes from showing up and your app would just load after a moment. or you could create custom dialog pages if you needed the user to select any options first or wanted the app to return a message if it had some kind of error. The tutorials and community are quite active and help full so once you get used to how nsis does things it should be straight forward. http://hmne.sourceforge.net/ this is a handy program to allow you to more easily edit the script file to allow you to make the exe.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 4 '14 at 1:44









        Kendrick

        5141516




        5141516






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f749447%2fcreating-a-single-file-executable-from-a-directory-in-windows%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Mouse cursor on multiple screens with different PPI

            Agildo Ribeiro

            Sometime when accessing a menu: “Ubuntu 16.04 has experienced an internal error”