Make the app Windows compatible #34

Closed
opened 2026-11-20 13:43:09 +01:00 by eliott · 0 comments
Owner

Rollscan should be a native Windows app: one .exe installer, double-clicked, and the scanner works. No WSL2, no usbipd, no passing USB devices through by hand.

Today Windows only works through WSL2 (install-windows.bat): it installs Ubuntu, then the .deb inside it, and usbipd has to hand the camera and the Arduino over to Linux every time. Tried on a real PC, it is a pain to set up and the app didn't work until the USB devices were passed through by hand.

What it should be

  • A Rollscan_X.Y.Z_x64-setup.exe on the releases page and the download page.
  • It installs the app with everything it needs: gphoto2 and its libraries come with it, nothing else to install.
  • The app opens in its own window, like on Linux, finds the Arduino on its COM port and the camera by itself.
  • The first time a camera is plugged in, the app sets it up for Rollscan (Windows asks for administrator rights once).

How

gphoto2 runs on Windows (MSYS2 builds it), but it can only open a camera that uses the WinUSB driver, not the one Windows gives it. So:

  1. The app's code runs on Windows: settings and log in %APPDATA% / %LOCALAPPDATA%, no console window flashing for each gphoto2 call, the folder picker on Windows paths and drives, the Arduino's COM port found by itself.
  2. The installer (Tauri, NSIS) carries gphoto2, its DLLs and camera drivers, and the tool that switches the camera to WinUSB.
  3. The WSL2 scripts and the WSL code in the app go away.
  4. Docs, README and the download page say how to install it, and how to give the camera back to Windows (Device Manager, roll back the driver) for other camera apps.

Caveat

While the camera uses WinUSB, Windows Explorer and Fujifilm's own apps (X Acquire, webcam) don't see it.

Rollscan should be a native Windows app: one `.exe` installer, double-clicked, and the scanner works. No WSL2, no usbipd, no passing USB devices through by hand. Today Windows only works through WSL2 (`install-windows.bat`): it installs Ubuntu, then the `.deb` inside it, and usbipd has to hand the camera and the Arduino over to Linux every time. Tried on a real PC, it is a pain to set up and the app didn't work until the USB devices were passed through by hand. ## What it should be - A `Rollscan_X.Y.Z_x64-setup.exe` on the releases page and the download page. - It installs the app with everything it needs: gphoto2 and its libraries come with it, nothing else to install. - The app opens in its own window, like on Linux, finds the Arduino on its COM port and the camera by itself. - The first time a camera is plugged in, the app sets it up for Rollscan (Windows asks for administrator rights once). ## How gphoto2 runs on Windows (MSYS2 builds it), but it can only open a camera that uses the WinUSB driver, not the one Windows gives it. So: 1. The app's code runs on Windows: settings and log in `%APPDATA%` / `%LOCALAPPDATA%`, no console window flashing for each gphoto2 call, the folder picker on Windows paths and drives, the Arduino's COM port found by itself. 2. The installer (Tauri, NSIS) carries gphoto2, its DLLs and camera drivers, and the tool that switches the camera to WinUSB. 3. The WSL2 scripts and the WSL code in the app go away. 4. Docs, README and the download page say how to install it, and how to give the camera back to Windows (Device Manager, roll back the driver) for other camera apps. ## Caveat While the camera uses WinUSB, Windows Explorer and Fujifilm's own apps (X Acquire, webcam) don't see it.
eliott self-assigned this 2026-11-20 13:43:09 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
RollNote/rollscan#34
No description provided.