How to uninstall a product when you only have the original rar file?

I have the original rar file of a product, but now I want to uninstall that product.  Is there some kind of application out there that lets me specify a rar file, then it automatically removes all those files from the DAZ runtime folder?

Comments

  • Not that I'm aware off, but even if there was I wouldn't risk some random program to wreck havoc in your library. The best approach here, in my opinion, is to open the archive and check the used paths. Then re-trace those back in your library.

  • TaozTaoz Posts: 9,971
    vozolgant said:

    I have the original rar file of a product, but now I want to uninstall that product.  Is there some kind of application out there that lets me specify a rar file, then it automatically removes all those files from the DAZ runtime folder?

    I have one but currently it only works for zipped content.  But if you have WinRAR you can convert it to a zip, that should work under the following contitions:

    - you haven't moved any files after installation (otherwise these won't be removed)
    - none of the files in the package are shared with other installed products (you can however deselect such files so they don't get removed, if you know which they are, or reinstall them later with the program if necessary, as long as you have the zip). 

    Send me a PM if you want to try it.

  • TaozTaoz Posts: 9,971
    ShelLuser said:

    Not that I'm aware off, but even if there was I wouldn't risk some random program to wreck havoc in your library. The best approach here, in my opinion, is to open the archive and check the used paths. Then re-trace those back in your library.

    As long as the uninstallation is based on the paths in the original zip, you can't mess up anything, if you do it the right way. 

  • nonesuch00nonesuch00 Posts: 18,282

    What you need to do is extract that RAR file and then search on ShareCG for that utility program that creates DAZ Studio DIM format ZIP files. Arrange your unrarred product folders correctly (it shouldn't be much work as if that contents of that RAR are working in DAZ Studio they are arranged correctly relative at least to each other. If not working in DAZ than creating a DIM installer with the rar contents matching how the original rar was copied to DAZ Studio is enough to install & uninstall all the contents of that rar whether the contents are working or not in DAZ Studio).

    Anyway, make that DIM installed of your extracted RAR contents & copy the DIM format compatible ZIP archive to your DIM ZIP Archive folder & install with DIM via the Install tab; then, that being done, go to the uninstall tab in DIM & uninstall the product you just installed. 

  • fixmypcmikefixmypcmike Posts: 19,598

    What you need to do is extract that RAR file and then search on ShareCG for that utility program that creates DAZ Studio DIM format ZIP files. Arrange your unrarred product folders correctly (it shouldn't be much work as if that contents of that RAR are working in DAZ Studio they are arranged correctly relative at least to each other. If not working in DAZ than creating a DIM installer with the rar contents matching how the original rar was copied to DAZ Studio is enough to install & uninstall all the contents of that rar whether the contents are working or not in DAZ Studio).

    Anyway, make that DIM installed of your extracted RAR contents & copy the DIM format compatible ZIP archive to your DIM ZIP Archive folder & install with DIM via the Install tab; then, that being done, go to the uninstall tab in DIM & uninstall the product you just installed. 

    It needs to be done slightly differently:

    To uninstall a product using DIM that was manually installed:

    1)  Install the product again with DIM

    2)  In DIM, go to Settings > Advanced Settings > Installation; at the bottom is a list of your content folders and their paths.

    3)  Right-click on the content folder path you used and choose "Fix Installed File Registry".

    4)  Now uninstall the product with DIM,

    Notes:  The reason you need to do it this way is because if DIM finds a file that already exists when it tries to install it, DIM assumes it's from another product that uses the same file.  It creates a file named "InstallManagerFileRegister.json" in that content folder listing all the files that are installed by multiple products and the number of products that need each file, so when you uninstall one product it knows there are other products that need the file.  "Fix Installed File Registry" rewrites that .json file using only the information in the ManifestFiles .dsx files, so it won't count files that were installed manually as a separate product.  There will be a bunch of error messages in the log which you can ignore -- since it only applies to content, ,dsx files for software and plugins get written to the log as errors.

     

  • nonesuch00nonesuch00 Posts: 18,282
    edited November 2020

    What you need to do is extract that RAR file and then search on ShareCG for that utility program that creates DAZ Studio DIM format ZIP files. Arrange your unrarred product folders correctly (it shouldn't be much work as if that contents of that RAR are working in DAZ Studio they are arranged correctly relative at least to each other. If not working in DAZ than creating a DIM installer with the rar contents matching how the original rar was copied to DAZ Studio is enough to install & uninstall all the contents of that rar whether the contents are working or not in DAZ Studio).

    Anyway, make that DIM installed of your extracted RAR contents & copy the DIM format compatible ZIP archive to your DIM ZIP Archive folder & install with DIM via the Install tab; then, that being done, go to the uninstall tab in DIM & uninstall the product you just installed. 

    It needs to be done slightly differently:

    To uninstall a product using DIM that was manually installed:

    1)  Install the product again with DIM

    2)  In DIM, go to Settings > Advanced Settings > Installation; at the bottom is a list of your content folders and their paths.

    3)  Right-click on the content folder path you used and choose "Fix Installed File Registry".

    4)  Now uninstall the product with DIM,

    Notes:  The reason you need to do it this way is because if DIM finds a file that already exists when it tries to install it, DIM assumes it's from another product that uses the same file.  It creates a file named "InstallManagerFileRegister.json" in that content folder listing all the files that are installed by multiple products and the number of products that need each file, so when you uninstall one product it knows there are other products that need the file.  "Fix Installed File Registry" rewrites that .json file using only the information in the ManifestFiles .dsx files, so it won't count files that were installed manually as a separate product.  There will be a bunch of error messages in the log which you can ignore -- since it only applies to content, ,dsx files for software and plugins get written to the log as errors.

     

    Oh, OK, thanks for that. I had thought the OP had extract a non-DIM rar file contents by copying to DAZ Studio Content Library & now wanted to remove that content that was copied over using a program or script that looked at the original contents of the rar file and using the same relative path that it shares with the same files in the Content Library, has them removed.

    Here is the link to that DIM creator program freebie:

    https://sharecg.com/v/88851/gallery/10/Software-and-Tools/Install-Manager-Package-Maker-Version-2

    Post edited by nonesuch00 on
Sign In or Register to comment.