Shouldn't change the name of you Daz Library?
Kharma
Posts: 3,214
in The Commons
Just in case anyone decides to go and change the name of their directory...
When I originally set up studio i set my files to install on a separate drive called E:/ My Library then one day not so long ago I decided to change the name of that to My Daz Library, thinking it would update which directory everything was installed to, not so! Everything previously installed still says E:/My library and everything newly installed says E:/ My Daz Library which doesn't affect the way they work but does cause some confusion when installing updates to previously installed files. So now it looks as tho I will need to uninstall everything and reinstall, over 5000 products :(

Comments
You should check your settings
unlink the old library in the database manager. link the newly renamed library . close DS, boot up DS, reset database and re-import the meta data. close DS after the database is updated fully.
when you reboot DS, everything should now have the correct pathing links.
Ok checking my settings and I already did unlink the old library and relink the new library so now I just need to reset and reimport?
the manager may update itself, but forcing a reset and re-import will definitely update the database to use the new library.
also, if you use the DIM, you need to update that as well, by adding the new Library as the installation path( ie, pointing DIM to the library that you install new products to)
if you download ( via DIM) to a different drive, you need to set that path in the DIM options, also.
btw if you ever change your download folder, just copy the ENTIRE old folder contents to the new folder, DIM will then update its own database. the files will show in the 'Ready To Install' tab (DIM will think these items are not installed yet)
just select all the files and reinstall( might take a few mins, but everything will just get overwritten and afterwards your DIM will be happy and know where everything is :) )
If you keep the manifest files (or copy them over after an OS reinstall) for the installed products, will DIM then not register them as installed so you don't need to reinstall? The paths in the manifest files are relative and the library folder has "content" as alias, so I imagine this would work.
I moved to a new drive after copying the entire library, essentially the same as changing the name. Re-mapping the folder in the Content Directory Manager immediately made everything in the library available, no problem. I re-imported metadata just to make sure, but that made my custom categories Read-Only (very annoying, unless that has been fixed). To allow changes again, I had to copy the whole category tree and delete the imported one.
For Install Manager, the manifests it generates have the full path, including the drive letter. I read somewhere to make sure to "Fix Installed File Registry" by right-clicking on the Installation path under Settings. That didn't change all the manifest files, but it did generate (I think) a file called "installpaths.txt" which I only discovered much later (Edit: Actually, I now remember making it myself to verify that string in each .dsx file instead of editing each one manually). Not sure what was supposed to happen, but showing installed files (right click on product in DIM) still showed the old path (maybe you do that after?).
I knew I was close, so I did a batch replace of <UserInstallPath VALUE="OldDrive:/OldPath"/>" with <UserInstallPath VALUE="NewDrive:/NewPath"/> in every .dsx file with content in the old library in the default "C:\Users\Public\Documents\DAZ 3D\Install Manager\Manifests" folder. (It won't affect plugins and applications, as they use a different syntax). It took a few minutes, and everything showed as installed after restarting DIM. There might be another way, if someone knows for sure...
Yea, you're right, I had overloooked the UserInstallPath value. I think though that they could have skipped that value and then used the path set in DIM instead, then you would just have to change that and it would work (I guess).
I thought that, too, but you can have more than one path for installation, so how does it know which to use? (I use separate libraries for non-Daz products or mods and corrections that I make, DIM-ified for easy installation and removal)
I did update the location of files in DIM for downloads, installs and updates, awhile ago I moved all my downloads from my E: drive to a removable F drive and it still showed all my products as installed so that wasn't any problem. What happens in DIM is if I hover over the filenames that I installed prior to changing my library name the info screen for the product pops up and right at the bottom it says where the file is installed to and they all still say E:/ My Library doing the same with files I installed since changing the directory name they will say E:/ My Daz Library so now if there is an update to something I already have installed the update installs to My Daz Library and then DIM shows to of the same product under installed, one in each directory. I was hoping there was an easy way to update all files to show the correct install path now that I have changed the name of the instll folder.
i did try what you said about right click and click Fix installed File Registery but that didn't make a diference and if it did Idon't know what it did
Try changing the value of UserInstallPath in one of the manifest files in "C:\Users\Public\Documents\DAZ 3D\Install Manager\Manifests" and see if that one changes the displayed info on hover. I'm pretty sure that will do the trick. Then you will need to change them all, but use a text editor that can find and replace in files instead of manually editing them one at a time. Again, if someone knows a better way...
But then how does it keep track of the files if you install the same product in two different installation paths? Judging from the file names it looks like there can be only one manifest file for each product.
BTW, it is possible to change the path for the manifest files in this file: C:\Users\[user]\AppData\Roaming\DAZ 3D\InstallManager\UserAccounts\Account.ini
The path is stored in the "OverrideManifestDir=" key, by default it has no value but if you add a path DIM will put the files there instead of in the default location.
Note that you must use slash instead of backslash, and DIM must be closed when changing the path otherwise it will mess up the path when it it closes.
E.g.: OverrideManifestDir=H:/DAZ InstallManager/ManifestFiles
Yes, there can only be one manifest per product in the manifest folder (note that DS and Poser versions, for example, would be considered different products), but, as you say, you can override the folder path. However, that will apply globally for that account, unless you change it back, which is easy to forget. Creating a dummy account to use offline, with a different manifest folder, helps keep things in order.
Probably not a good idea to install the same product twice, anyway. Which instance gets used? Depends on the order of the libraries in the Content Directory Manager. If I am trying to fix something, I uninstall the undesired product from the main library and work on the test version in a different library. When I'm done, I create a new DIM archive with a new number (i.e., xxxxxxxxx-0n_productname.zip) where "0n" is a unique Package ID that does not conflict with existing parts of the original product (otherwise it gets deleted by Install Manager), and install that one in the main library.
So, you don't need a new manifest folder, but changing the UserInstallPath in the existing manifests will get everything in line for DIM so that any updates for products will go in the right place.
So now I have another question related I believe to changing the name of my Daz installed folder. I have attached a pictureso you see what I am talking about
I don't use Connect at all, and my Daz Connect folder is on my C: drive, all my DIM installed files are on my E: drive where some say ( in DIM) installed to My Library and newer ones say installed to My Daz Library I had just renamed the folder to My Daz LIbrary but now I see I have a new My Library folder (which I did not make) as you see in the picture with jpgs and json files. Where did these come from as they only started from sept 5 to sept 20? what are they for and are they a result of me changing the folder name and can I just delete them and that my library folder.
I should also mention my Daz connect folder is empty of files
Hm-m, don't have anything like that in my libraries. I don't use Connect either, but that looks like something Connect would do to migrate your library. If you changed your library on Sept 05, I would say that's no coincidence, but what to do about it, I don't know. I remember a one-time request to setup Connect with DS4.9 but I refused, and don't see any config options anywhere to set it up again if I want to.
can the manifest file be opened in notepad++? I d on't have that program, just reg notepad
The manifest files are in plain text and a manageable size (usually less than 30KB), so any text editor will do. I personally use notepad++, which does have the "Find in Files" function with option to replace. Very handy, but be carefull about the strings used. Replacing a short string could replace it where you don't want, and it doesn't ask for confirmation. Copy the entire folder somewhere safe before doing it.
thanks for the help everyone who commented on my predicament. I d/l Notepad++ and did the find and replace for the name of my library and it seems to have solved my issue so far. I really appreciate your help!!