This is the Windows shell extension and Windows installer for stl-thumb.
- Rust
- Visual Studio 2017
- WiX Toolset
- WiX Toolset Visual Studio 2017 Extension
- In the stl-thumb folder, run
cargo build --release
. This is necessary since Visual Studio does not (yet) support Rust projects. - Open STLThumbWindows.sln in Visual Studio and build the solution. The shell extension .dll will be in the x64 folder. The installer package will be in STLThumbSetupBundle\bin.
- In the stl-thumb folder, run
cargo build --release
. - In Visual Studio, build the solution in Debug configuration.
- Copy
STLThumbWindows\stl-thumb\target\release\stl-thumb.exe
toSTLThumbWindows\x64\Debug\
.
- Uninstall stl-thumb if it is installed.
- Open a command prompt as administrator and navigate to
STLThumbWindows\x64\Debug\
. - Run
regsvr32.exe STLThumbWinShellExtension.dll
. - Use Regedit to add this registry key:
Computer\HKEY_CLASSES_ROOT\CLSID\{AF07F051-9D08-44A7-8C63-9296ADFEDDD7}\DisableProcessIsolation=REG_DWORD:1
. This forces the extension to run in-process in explorer.exe instead of in it's own process.
- In Visual Studio, go to Debug > Attach to Process... and choose
explorer.exe
. - Create or edit an STL file, causing a new thumbnail to be generated.
The output of stl-thumb.exe
will be logged to the file out.log
. Be aware that when you hit a breakpoint the Windows shell will freeze, making the desktop and taskbar unresponsive.