diff --git a/README.md b/README.md index 69a1dfd..93cfb50 100644 --- a/README.md +++ b/README.md @@ -61,29 +61,15 @@ LIBS=-L/home/k/Downloads/src/lib3mf/Lib mingw64-make Now copy the resulting `3mfthumb.exe` along with `lib3mf.dll` to the Windows machine. -Thumbnailers can be configured on Windows using the registry editor, `regedit`. +In theory, we can use `regedit` to designate 3mfthumb.exe as the preferred handler to generate image previews for .3mf files. ChatGPT suggested something similar to the following. If it doesn't work, you can ask ChatGPT or Bing to fix it up. -Yes, you can set your thumbnail image extractor to be the default thumbnail image generator for .3mf files in Windows by creating a registry entry that associates your program with the .3mf file extension. +1. Open the Registry Editor by typing "regedit" in the Windows search bar and selecting "Registry Editor". +2. Navigate to HKEY_CLASSES_ROOT\.3mf. +3. Right-click on something like "ThumbnailHandler" and select "Modify". +4. Set the value data to the full path of 3mfthumb.exe (e.g. "C:\path\to\3mfthumb.exe") and click "OK". +5. Close the Registry Editor. -Here are the steps you can follow to create this registry entry: - -1. Open the Windows Registry Editor by typing "regedit" in the Start menu search box and pressing Enter. - -2. Navigate to the following registry key: HKEY_CLASSES_ROOT\.3mf - -3. If there is no "Default" value in this key, create one by right-clicking on the right-hand pane, selecting "New > String Value", and naming the value "Default". - -4. Set the value of the "Default" key to a unique name for your thumbnail generator, such as "3mfthumb.exe". - -5. Navigate to the following registry key: `HKEY_CLASSES_ROOT\MyThumbnailGenerator\shell\open\command` - -6. Create a new "String Value" named "Default" in the right-hand pane and set its value to the path to `3mfthumb.exe`, followed by the "%1" parameter to pass the filename of the .3mf file being opened. For example: - -7. "C:\3mfthumb.exe" "%1" - -8. Save and close the Registry Editor. - -After making these changes, Windows should use `3mfthumb.exe` to generate thumbnails for `.3mf` files when they are viewed in Explorer or other file managers on Windows. +If it works, when you navigate to a folder containing a .3mf file, Windows should generate a thumbnail using 3mfthumb.exe. ## Issues