Renaming a sub-folder within a zipped file

Page 1 of 2 12 LastLast

  1. Posts : 169
    Windows 7 Home Premium x64
       #1

    Renaming a sub-folder within a zipped file


    I compressed a .crx file. The file structure of the compressed file is

    Compressed CRX
    1Sub-Folder
    2Sub-Folder
    >2file
    >3file
    3Sub-Folder
    >4file

    I am attempting to rename 3Sub-Folder. Using 7-Zip, When I attempt to rename it I get the Error message “Not Implemented”. When I attempt to rename it using WinRAR I get the message that “the archive is corrupt. Lastly, when I open the .zip file using Windows Explorer it displays the Compressed CRX but I am unable to display 3Sub-Folder.

    Any suggestions on renaming a sub-folder within a zipped file?
      My Computer


  2. Posts : 1,519
    Windows 7 Ultimate 64-bit, Windows 8.1 64-bit, Mac OS X 10.10, Linux Mint 17, Windows 10 Pro TP
       #2

    Best I've found is simply to decompress the file into an empty Folder, make the change to necessary files then recompress them, maybe with a slightly different name.
      My Computer


  3. Posts : 2,497
    Windows 7 Pro 64 bit
       #3

    Most zip utilities do not directly support renaming a file in the archive. Best is to do as Berton has suggested.
    Winzip I believe will do this directly. But be aware that it is a commercial program, not free.
      My Computer


  4. Posts : 169
    Windows 7 Home Premium x64
    Thread Starter
       #4

    Thanks or your replies. Not sure if you're familiar with .crx files, but uncompressed it is an extension file used by Chrome, Chromium and other browser using the Chromium source code. It provides additional functionality to the browser. When uncompressed, when you click on the file the 'Windows can't open this file window opens.' It is not possible to view the contents (subfolder and files) of the file when uncompressed so changing their names when uncompressed is not possible. It is only when the file is compressed that you are ale to view its contents.
    The pick below is of the Compressed extension called Improved YouTube.crx. When opened with 7-Zip it appears like this:

    When compressed file within 7-Zip is double-clicked (opened) its contents are displayed like this:

    The subfolder called "_metadata" is the folder that I want to change its name by getting rid of the "_" at the beginning.

    I know what you're suggesting, I just don't see how it can be done when the file is uncompressed.
      My Computer


  5. Posts : 169
    Windows 7 Home Premium x64
    Thread Starter
       #5

    I installed WinZip and don't see how to open the CRX within Winzip to display the contents of the file. When the compressed file is double clicked the "Windows cannot open this file type" window opens asking to search the web or use another program.

    And boy you weren't wrong about it being a commercial program. So much garbage associated with it.
      My Computer


  6. Posts : 169
    Windows 7 Home Premium x64
    Thread Starter
       #6

    I take it this is a lost cause?
      My Computer


  7. Posts : 1,519
    Windows 7 Ultimate 64-bit, Windows 8.1 64-bit, Mac OS X 10.10, Linux Mint 17, Windows 10 Pro TP
       #7

    markaz said:
    I take it this is a lost cause?
    Probably. Keep in mind that renaming files and/or Folders can cause failure of the program/application. I still haven't seen mention of the need/desire for the renaming.
      My Computer


  8. Posts : 169
    Windows 7 Home Premium x64
    Thread Starter
       #8

    Berton said:
    markaz said:
    I take it this is a lost cause?
    Probably. Keep in mind that renaming files and/or Folders can cause failure of the program/application. I still haven't seen mention of the need/desire for the renaming.
    Good question and thanks for the response. Some background that you are probably aware of. Iron is a Chromium-based browser and the one I highly prefer. Chrome is the big dog and is based upon Chromium as well. When Chromium (open source) updates the source Chrome and Iron follow suit. What's different is that over the years Chrome users have created extensions to improve functionality of the browsers for users. These extensions (.crx files) have been and are installed into Chrome from the Chrome Web Store. Until recently Iron users could access the Chrome Web Store and install the same extensions. Chrome closed that gap and made it such that only the chrome browser could access their Web Store. Not to be deterred programmers created websites that could copy the file (.crx) from the Web Store and download it to your computer, but not installed. Once downloaded the .crx could be installed into Iron.

    Not only could Iron users no longer access extensions directly from Chrome, Chrome required developers of extensions to change the file structure of the .crx to make them compatible with Chrome only. The one thing that precluded (and still does) Iron users from installing .crx files was/is the newly created _metadata subfolder that Chrome requires for installation into their browser. Within it contains the "verified_contents.json". Prior to the creation of the "_metadata" subfolder the contents of the .crx file looked like this:


    So now in answer to your question when Iron users attempt to install downloaded .crx files containing the "_metadata" they receive the following message:

    It was found that renaming the _metadata subfolder by getting rid of the "_" would make it such that the .json could be installed.

    Could developers of Iron solve this problem by making files (subfolders) within a .crx file starting with "_" compatible with Iron? I think so!! But they haven't and there's no indication that they will in the foreseeable future. At the end of the day renaming this subfolder is a work around to make .crx files created for the Chrome browser usable by Iron users.
      My Computer


  9. Posts : 1,992
    10 Pro x64
       #9

    I would think you could just rename your crx as. Zip extract it with winter to another directory then rename you json to not have the _ then rezip and change it back to a .Crx. Iron won't care if it's signed I believe.
      My Computer


  10. Posts : 169
    Windows 7 Home Premium x64
    Thread Starter
       #10

    You kind of lost me on that one. I'm attaching a zipped .crx file that won't install in Iron. Can't upload the .crx directly because the forum says it's an invalid file. So if you can extract it and do what you're describing, please do and let me know.
    Renaming a sub-folder within a zipped file Attached Files
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:33.
Find Us