Problem: 7-Zip SFX extracted files disappearing?

Posted by Unknown Jumat, 27 Agustus 2010 0 komentar
I had a self-extracting archive made using 7-Zip SFX. I had many files inside the compressed file. There was one exe file, let's called it A.exe, it was the one run on extraction. In addition A.exe ran another file B.exe. The problem was that upon extraction the B.exe wasn't there! Why didn't it execute, why wasn't it there?

The reason was that my first file, A.exe was an AutoIt script. I used the Run() function to execute B.exe. This was a mistake because the 7-Zip SFX deletes the extracted files after A.exe had finished executing. This meant that B.exe wasn't there or associated files weren't there at execution time. This problem only surfaced when extracting to a SSD (Solid State Disk), maybe because the write times are slower to SSD?

The solution was to change the function to RunWait(). This function runs an external program and waits for it to finish executing before continuing. As long as your first exe (A.exe in my example) is still running, the 7-Zip SFX will not delete the temporary files - problem solved! 
TERIMA KASIH ATAS KUNJUNGAN SAUDARA
Judul: Problem: 7-Zip SFX extracted files disappearing?
Ditulis oleh Unknown
Rating Blog 5 dari 5
Semoga artikel ini bermanfaat bagi saudara. Jika ingin mengutip, baik itu sebagian atau keseluruhan dari isi artikel ini harap menyertakan link dofollow ke https://apk-zippy.blogspot.com/2010/08/problem-7-zip-sfx-extracted-files.html. Terima kasih sudah singgah membaca artikel ini.

0 komentar:

Posting Komentar

Trik SEO Terbaru support Online Shop Baju Wanita - Original design by Bamz | Copyright of apk zippy.