Can I compress a directory with a running executable?












0















I've given this a cursory google but most results reference creating executable zip files.



My question is basically:




  • I have a running .exe which:


    • Is, in this case, an installer

    • Other items in the directory are related binaries / config files

    • Only one item is written inside this directory during the .exe process, in this case a log file.

    • The .exe is of course writing to other directories on the system, but not in the .exe's sub-tree.

    • It is of course reading the other files in its directory / sub-directories while running.




So, can I compress this executable and all files in the directory while it's installing? Will the writing to the log file cause any issues?



My initial theory is that my deployer as a whole should be unaffected by the zip process, which is just reading the files into memory and running it's algorithm on them then writing it's output elsewhere. But the process might get, for want of a better word, confused by the log file currently being written inside the directory.



I've attempted this before without any visible issues, but I'd like the peace of mind of someone familiar with the workings of compression tools telling me my suspicions are correct before I implement this parallel execution into my build pipeline.



Edit: Another explanation for clarity.



C:Installer contains:




  • .Installer.exe


  • .Prerequisites* (binaries etc)


  • .installer_log.txt



I want to run the Installer.exe which is reading from C:InstallerPrerequisites
It is also writing to C:Installerinstaller_log.txt
It is also writing to another folder, something like C:Program FilesInstalledProgram - The final, installed program's destination.



While this process is running, I want to compress the folder C:Installer into C:Installer.zip



The output file format is irrelevant, in this case I'm using 7zip for compression.










share|improve this question

























  • Why? The reason you want to do this may help us present options you may not have considered that meet your needs. There are other compression methods besides zip, and they may have abilities better suited to your specific problem.

    – music2myear
    Jan 30 at 17:40











  • So are you asking if you can run an executable within a compress archived without uncompressing it? What you are trying to achieve is not clear.

    – Ramhound
    Jan 30 at 20:58













  • I'm building a CI/CD pipeline that is time critical, the deployer package is large and zipping it takes a significant amount of time - I want to compress this folder while I'm running the installer that's inside it.

    – Thomas Brew
    Jan 31 at 13:00











  • You cannot compress a file that’s being used or accessed by another application.

    – Ramhound
    Jan 31 at 13:19
















0















I've given this a cursory google but most results reference creating executable zip files.



My question is basically:




  • I have a running .exe which:


    • Is, in this case, an installer

    • Other items in the directory are related binaries / config files

    • Only one item is written inside this directory during the .exe process, in this case a log file.

    • The .exe is of course writing to other directories on the system, but not in the .exe's sub-tree.

    • It is of course reading the other files in its directory / sub-directories while running.




So, can I compress this executable and all files in the directory while it's installing? Will the writing to the log file cause any issues?



My initial theory is that my deployer as a whole should be unaffected by the zip process, which is just reading the files into memory and running it's algorithm on them then writing it's output elsewhere. But the process might get, for want of a better word, confused by the log file currently being written inside the directory.



I've attempted this before without any visible issues, but I'd like the peace of mind of someone familiar with the workings of compression tools telling me my suspicions are correct before I implement this parallel execution into my build pipeline.



Edit: Another explanation for clarity.



C:Installer contains:




  • .Installer.exe


  • .Prerequisites* (binaries etc)


  • .installer_log.txt



I want to run the Installer.exe which is reading from C:InstallerPrerequisites
It is also writing to C:Installerinstaller_log.txt
It is also writing to another folder, something like C:Program FilesInstalledProgram - The final, installed program's destination.



While this process is running, I want to compress the folder C:Installer into C:Installer.zip



The output file format is irrelevant, in this case I'm using 7zip for compression.










share|improve this question

























  • Why? The reason you want to do this may help us present options you may not have considered that meet your needs. There are other compression methods besides zip, and they may have abilities better suited to your specific problem.

    – music2myear
    Jan 30 at 17:40











  • So are you asking if you can run an executable within a compress archived without uncompressing it? What you are trying to achieve is not clear.

    – Ramhound
    Jan 30 at 20:58













  • I'm building a CI/CD pipeline that is time critical, the deployer package is large and zipping it takes a significant amount of time - I want to compress this folder while I'm running the installer that's inside it.

    – Thomas Brew
    Jan 31 at 13:00











  • You cannot compress a file that’s being used or accessed by another application.

    – Ramhound
    Jan 31 at 13:19














0












0








0








I've given this a cursory google but most results reference creating executable zip files.



My question is basically:




  • I have a running .exe which:


    • Is, in this case, an installer

    • Other items in the directory are related binaries / config files

    • Only one item is written inside this directory during the .exe process, in this case a log file.

    • The .exe is of course writing to other directories on the system, but not in the .exe's sub-tree.

    • It is of course reading the other files in its directory / sub-directories while running.




So, can I compress this executable and all files in the directory while it's installing? Will the writing to the log file cause any issues?



My initial theory is that my deployer as a whole should be unaffected by the zip process, which is just reading the files into memory and running it's algorithm on them then writing it's output elsewhere. But the process might get, for want of a better word, confused by the log file currently being written inside the directory.



I've attempted this before without any visible issues, but I'd like the peace of mind of someone familiar with the workings of compression tools telling me my suspicions are correct before I implement this parallel execution into my build pipeline.



Edit: Another explanation for clarity.



C:Installer contains:




  • .Installer.exe


  • .Prerequisites* (binaries etc)


  • .installer_log.txt



I want to run the Installer.exe which is reading from C:InstallerPrerequisites
It is also writing to C:Installerinstaller_log.txt
It is also writing to another folder, something like C:Program FilesInstalledProgram - The final, installed program's destination.



While this process is running, I want to compress the folder C:Installer into C:Installer.zip



The output file format is irrelevant, in this case I'm using 7zip for compression.










share|improve this question
















I've given this a cursory google but most results reference creating executable zip files.



My question is basically:




  • I have a running .exe which:


    • Is, in this case, an installer

    • Other items in the directory are related binaries / config files

    • Only one item is written inside this directory during the .exe process, in this case a log file.

    • The .exe is of course writing to other directories on the system, but not in the .exe's sub-tree.

    • It is of course reading the other files in its directory / sub-directories while running.




So, can I compress this executable and all files in the directory while it's installing? Will the writing to the log file cause any issues?



My initial theory is that my deployer as a whole should be unaffected by the zip process, which is just reading the files into memory and running it's algorithm on them then writing it's output elsewhere. But the process might get, for want of a better word, confused by the log file currently being written inside the directory.



I've attempted this before without any visible issues, but I'd like the peace of mind of someone familiar with the workings of compression tools telling me my suspicions are correct before I implement this parallel execution into my build pipeline.



Edit: Another explanation for clarity.



C:Installer contains:




  • .Installer.exe


  • .Prerequisites* (binaries etc)


  • .installer_log.txt



I want to run the Installer.exe which is reading from C:InstallerPrerequisites
It is also writing to C:Installerinstaller_log.txt
It is also writing to another folder, something like C:Program FilesInstalledProgram - The final, installed program's destination.



While this process is running, I want to compress the folder C:Installer into C:Installer.zip



The output file format is irrelevant, in this case I'm using 7zip for compression.







windows compression zip 7-zip winzip






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 31 at 13:09







Thomas Brew

















asked Jan 30 at 17:15









Thomas BrewThomas Brew

12




12













  • Why? The reason you want to do this may help us present options you may not have considered that meet your needs. There are other compression methods besides zip, and they may have abilities better suited to your specific problem.

    – music2myear
    Jan 30 at 17:40











  • So are you asking if you can run an executable within a compress archived without uncompressing it? What you are trying to achieve is not clear.

    – Ramhound
    Jan 30 at 20:58













  • I'm building a CI/CD pipeline that is time critical, the deployer package is large and zipping it takes a significant amount of time - I want to compress this folder while I'm running the installer that's inside it.

    – Thomas Brew
    Jan 31 at 13:00











  • You cannot compress a file that’s being used or accessed by another application.

    – Ramhound
    Jan 31 at 13:19



















  • Why? The reason you want to do this may help us present options you may not have considered that meet your needs. There are other compression methods besides zip, and they may have abilities better suited to your specific problem.

    – music2myear
    Jan 30 at 17:40











  • So are you asking if you can run an executable within a compress archived without uncompressing it? What you are trying to achieve is not clear.

    – Ramhound
    Jan 30 at 20:58













  • I'm building a CI/CD pipeline that is time critical, the deployer package is large and zipping it takes a significant amount of time - I want to compress this folder while I'm running the installer that's inside it.

    – Thomas Brew
    Jan 31 at 13:00











  • You cannot compress a file that’s being used or accessed by another application.

    – Ramhound
    Jan 31 at 13:19

















Why? The reason you want to do this may help us present options you may not have considered that meet your needs. There are other compression methods besides zip, and they may have abilities better suited to your specific problem.

– music2myear
Jan 30 at 17:40





Why? The reason you want to do this may help us present options you may not have considered that meet your needs. There are other compression methods besides zip, and they may have abilities better suited to your specific problem.

– music2myear
Jan 30 at 17:40













So are you asking if you can run an executable within a compress archived without uncompressing it? What you are trying to achieve is not clear.

– Ramhound
Jan 30 at 20:58







So are you asking if you can run an executable within a compress archived without uncompressing it? What you are trying to achieve is not clear.

– Ramhound
Jan 30 at 20:58















I'm building a CI/CD pipeline that is time critical, the deployer package is large and zipping it takes a significant amount of time - I want to compress this folder while I'm running the installer that's inside it.

– Thomas Brew
Jan 31 at 13:00





I'm building a CI/CD pipeline that is time critical, the deployer package is large and zipping it takes a significant amount of time - I want to compress this folder while I'm running the installer that's inside it.

– Thomas Brew
Jan 31 at 13:00













You cannot compress a file that’s being used or accessed by another application.

– Ramhound
Jan 31 at 13:19





You cannot compress a file that’s being used or accessed by another application.

– Ramhound
Jan 31 at 13:19










0






active

oldest

votes











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',
autoActivateHeartbeat: false,
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%2f1400182%2fcan-i-compress-a-directory-with-a-running-executable%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1400182%2fcan-i-compress-a-directory-with-a-running-executable%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

flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

Mangá

 ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕