Syno DSM Extractor GUI for Windows

DaveR

Benutzer
Sehr erfahren
Registriert
30. März 2022
Beiträge
595
Reaktionspunkte
1.044
Punkte
184
Windows GUI for extracting Synology DSM 7 pat files and spk package files.

You can drag and drop a .pat file or .spk file onto the window, or click the Select File button to browse for the .pat or .spk file. I'll add Windows right-click context menu later.

A week ago @TN-Notebooks asked for a Windows GUI app like WinRAR to unpack Synology .spk files. Without source code available for Synology's libraries a pure Windows app is not possible. So my Windows SDE.exe makes use of the default Ubuntu distro available in Windows System for Linux (which is extremely easy to install).

https://github.com/007revad/Syno_DSM_Extractor_GUI

If anyone wants to try it and provide feedback you can download:

1736491318844.png

Ready to extract the selected DSM 7 .pat file
1736491356141.png

Also supports DSM 7 .spk package files
1736491448859.png

1736491421926.png

1736491476529.png

Once you click the Extract button a shell window appears where you have to type your Ubuntu password.
1736493543057.png

I am working on an updated version that won't need to show the WSL shell window at all.
 
Zuletzt bearbeitet:
Updated to v1.1.0.21
Code:
- Added an installer.
  - Added Windows context menu shortcuts (when installed with the installer).
  - Added .pat and .spk file association (when installed with the installer).
- Added 'Check for Updates' menu option.
- Added check that Windows System for Linux is installed.
  - Shows how to install WSL if it's not installed.
- Now automatically detects the WSL Ubuntu drive letter.
  - You can still change it in Settings.
- Changed so you don't need to copy wsl.exe to the same folder as SDE.exe.
- Changed so only 1 instance can run at a time.
  - Changed to send right-clicked or double-clicked file to the open SDE-GUI window if SDE-GUI is already open.

https://github.com/007revad/Syno_DSM_Extractor_GUI

It now has an installer
1737187731034.png

Windows start menu shortcuts
1737187763185.png

File Association
1737187788042.png
Context Menu
1737187843968.png
 
I got error "Failed to cd to /!"
Tried with both versions, installer and no_installer.
After pressing "Extract", the Ubuntu Terminal pops up and about one second later the Error-Message.
No extraction, the script obviously exits at this point.
.py and .sh are executable.

1738877068961.png
 
Zuletzt bearbeitet:
Is D:\ a mounted network path? I get the "Failed to cd to /!" error when trying to extract files that are on a network share.

1738881826804.png

I haven't solved the problem yet because out of 41 downloads you're the first person to notice the issue.

For now, the solution is to copy the .pat file or .spk file to a folder on one of your PC's HDDs and extract it from there.
 
I had the same bug and wanted to post it tomorow. My pat files are on a network path too.
But I first wanted to check the lines of your screen shoot with the change of the path rights.... I am not shure if I have to insert that.
1738885392251.png

And second question
Will it be possible to select a different destination path ?
1738885466852.png

If I deselect extract to same... There is no selection for a destination path
 
In the screen shot, all the text in white gets typed automatically. All you have to do is type your Ubuntu password and press Enter. When you type your password you won't see the password on the screen.

If you deselect "extract to same..." the .spk or .pat file gets extracted to the Ubuntu <drive-letter>:\home\<username>\sde\out
1738886530288.png

I can change the program to ask where you want to download it to if "extract to same..." is unticked. Or add a "Extract to..." context menu.
 
Is D:\ a mounted network path?
No, D:\ is a local physical drive.
I moved the .pat file to Bootdrive C:\ , Same error. Then onto an USB-Stick, same error.
Then I completly removed the Linux subsystem by unregistering Ubuntu and uninstall VM support and the subsystem itself. Then I reinstalled, again user/password, install scripts and libraries from no_install version (I uninstalled the install version).
Same error.
I saw lots of files/folders owned by root:root, so I tested with stef:root and stef:stef, same error.
Have to wait for a new version ;)
 
Zuletzt bearbeitet:
I have run the program as administrator.
 
This is really strange because the only difference between the 2 exe files is
1739035783804.png

When I run it as myself I don't get the error. But I am getting the same type of error when I run it as admin.
1739035189131.png

It looks like Windows admin cannot access a user's home folder in the mapped WSL Ubuntu drive.

I only have one user on this PC and the same user in Ubuntu. Dave and dave.

I had the same issue yesterday. I solved by renaming the exe file from SDE-GUI_1.1.2.23_test.exe to SDE-GUI.exe
 
Yesterday I started rewriting Syno DSM Extractor GUI in PureBasic because the current programming language (Visual Dialog Script - aka VDS) is a 32bit language that was last updated in 2008 to support Windows 7. There's things I want Syno DSM Extractor GUI to do but can't because it's written in VDS.

Rewriting it in PureBasic (a language I've never used before) is quite the learning experience, but I have done about 25% so far. :)

With PureBasic I could also release Mac and Linux versions.
 
  • Like
Reaktionen: vater und maxblank
I tested it. The error comes up when you use different username/password.
Also the "normal" version is working if username/password are the same

EDIT:
just read your post above.
1. It was not a timing problem with the error. The wls windows comes up immediately, the error about 3 seconds later.
2. Dave is not dave in Linux. If you rename your Windows account into dave, its working.

EDIT 2:
I tried both versions, the "normal" and the new test-version. both are working.

EDIT 3: (maybe I should first read all new posts before answering...)
If you get the question: "Do you want to create the folder xyz" you must answer yes.
This is normal on the first time the program is running. You get the same question at first start when you copy the scripts and libraries.
 
Zuletzt bearbeitet:
Is one hundred percent identical for me with Windows and WSL with Ubuntu. And it don´t work.
 
Is one hundred percent identical for me with Windows and WSL with Ubuntu. And it don´t work.

windows user name without capitals? Like I wrote, Dave is not dave.

Did you map the Ubuntu subsystem in windows explorer like this? 1739044233907.png

The two errors you posted "Failed to install sh-file and py-file" comes up if you don't answer yes for creating the folders.

I tried this in three different machines, two physical and with one VM, its working.
 
I forgot to mention:
The easiest way to solve this in Windows is to create a new user and use this new user to do the job.
So no need to change existing username.
 

Additional post fields

 

Kaffeautomat

Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.

Als Dankeschön schalten wir deinen Account werbefrei.

:coffee:

Hier gehts zum Kaffeeautomat