You are here

7-Zip: Issue when using USB flash memory

10 posts / 0 new
Last post
elton
Offline
Last seen: 17 years 10 months ago
Joined: 2006-08-29 23:42
7-Zip: Issue when using USB flash memory

whenever i execute 7-zip for at least 1 time, i have problem in removing the USB flash drive from my winxp.. it always says failure in removing and i can only do a hard boot of the machine to get it.. (yeah i know i can simply pull it out without much harm, but i want to be 100% sure of no data loss..)

in 7-zip options, i have selected to associate all file extensions with 7-zip and "integrate 7-zip to shell menu"..

any hint on what the problem is?

TIA..

Bahamut
Bahamut's picture
Offline
Last seen: 12 years 6 months ago
Joined: 2006-04-07 08:44
Try this: Start up/reboot

Try this:
Start up/reboot the computer without the drive in.
Log in and wait for the computer to be idle.
Insert your drive.
Run 7-zip Portable without even clicking on anything else.
Go ahead and associate extensions and integrate into context menu.
Close 7-zip Portable completely and close the explorer window you opened.
Try to remove your drive safely.
Post your results.

Most of the time, explorer keeps references to things (usually images) on your drive, so it is the process that locks your drive. Also, it's probably not a good idea to keep references to a non-existent application (Windows doesn't see 7-zip after your drive is gone), but I don't know exactly how Windows handles that.

Vintage!

John T. Haller
John T. Haller's picture
Offline
Last seen: 4 hours 51 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Not supported

You should not use the association or explorer integration features of 7-Zip when running portably. Those features, by definition, are NOT portable.

Sometimes, the impossible can become possible, if you're awesome!

elton
Offline
Last seen: 17 years 10 months ago
Joined: 2006-08-29 23:42
problem located

the problem is related to "7-zip.dll".. the file/process is being locked by windows after executing 7-zip..

not sure if the problem will disappear when i do not use the shell integration and file association features.. i really doubt it will since i had the experience of uninstalling installed version of 7-zip and it requires a reboot simply to unlock this 7-zip.dll file.. even if it does, what use will 7-zip have if i cannot do double-clicking on zip files?

therefore i reverted to use 7-zip installed in pc until this is resolved.. (yup i know this is
actually a 7-zip issue..)

John T. Haller
John T. Haller's picture
Offline
Last seen: 4 hours 51 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Just use it differently...

Just don't use the shell integration or file association features. Then 7-Zip Portable won't lock anything.

You can open 7-Zip and perform functions from there. There's a full file manager within it, so you can browse to any directory or zip file from there. You can also drag files onto the 7-ZipPortable.exe launcher and it will open them within 7-Zip directly.

Sometimes, the impossible can become possible, if you're awesome!

elton
Offline
Last seen: 17 years 10 months ago
Joined: 2006-08-29 23:42
new issue

thx for the reply.. i know the open file and drag-drop method of opening zips, just feel it a bit inconvenient.. anyway its still ok for a portable app..

i ran into a new issue.. when using the portable 7-zip in a pc which has 7-zip installed, changing the options of portable 7-zip seems to affect the settings of the installed version as well.. is portable 7-zip still using the registry?

John T. Haller
John T. Haller's picture
Offline
Last seen: 4 hours 51 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Same time

As long as you don't use them at the same time, you're fine. But they will step on each others toes if you launch em both at the same time (regardless of which you launch first).

Sometimes, the impossible can become possible, if you're awesome!

elton
Offline
Last seen: 17 years 10 months ago
Joined: 2006-08-29 23:42
in detail

i use "7-zip portable" at various pcs, and i had "7-zip" installed in office pc with shell integration and file association turned on..

in office pc, i did this:
1) start 7-zip portable, set to not use shell integration and file association as suggested, quit..
2) double-click in a zip file as usual, and found that file association was gone.. thus obviously 7-zip portable is still manipulating the registry..
3) i then start 7-zip installed, set to use shell integration and file association again, quit..
4) now when i start 7-zip portable, the options are on again, and i cannot safely remove the USB stick again..

so even though i didnt use them concurrently, start 7-zip portable with those options on (even if not set by itself) will still get me into trouble..

any workaround or fix for this?

John T. Haller
John T. Haller's picture
Offline
Last seen: 4 hours 51 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Can't reproduce

This doesn't happen on my XP box. The two don't collide at all and options are preserved. I'll double-check again on Monday and test Win2K as well. For now, just don't use the portable one on this box... afterall, you have both, why would you bother using the portable one when you have the local one at your finger tips?

Sometimes, the impossible can become possible, if you're awesome!

elton
Offline
Last seen: 17 years 10 months ago
Joined: 2006-08-29 23:42
more details

from now on i shall refer "shell integration and file association" as the "options"..

it seems whichever version updates the options then they will show up in the other version.. as long as i dont change the options, both versions follow the options last set.. and when one version updates the options, they show in the other version on next start.. so in a way both versions can co-exist, but may need some constant option updates to choose between the options being on and off..

the reason is that i use the usb flash drive on a number of pcs, some without zip facilities.. and it could be troublesome to manually check each pc's installation of 7-zip before i use my portable version as i dont want my settings to affect the installed version's settings.. thus the questions..

anyway thx for ur time in the help so far..

Topic locked