-
-
Notifications
You must be signed in to change notification settings - Fork 284
Check whether an ISO is a Windows ISO #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Hi, this is a cool idea but ideally don't involve a fifth programming language, would it be possible to do this in vanilla JS with or without some dependency? |
Hello, I have tried solving it using the node-gtk library, but it seems like it doesn't really integrate well with Electron. We could call the |
|
I think I solved it. We can extract the Volume ID from the ISO file, and then match it against the regexes that I have extracted out of the database generated by We can also check whether the ISO is bootable by extracting the boot indicator. |
Hey, thanks for the changes, can you confirm this fully works? Ideally a little demo video where you select a few Windows ISO-s and show how it detects them, also selecting some Linux ISO-s to show how it rejects them. I believe the user shouldn't be allowed to continue if a non-Windows ISO is selected or if said ISO is not bootable, and prompts should be added somewhere explaining why. (Without a scrollbar preferably, we wanna fit everything in one screen) Let me know how you think we should proceed from a UI/UX standpoint. 😄 |
Hello, so regarding non Windows ISO files (bootable ones), I don't know what would be the most practical solution. We could export all non Windows ISO volume IDs from osinfo db but it would have to be constantly updated, and osinfo itself does not contain every volume ID. The other option is manually checking ISO files whether they contain a certain file (e.g. for Linux the vmlinuz file), but I don't know how reliable would it be. Or we could keep it as is and just warn the user that they have selected an unknown OS. recording-winboat.mp4 |
I think that's a great idea! I think it should be merged to main |
Using libosinfo we can check whether an ISO belongs to the WinNT OS family.
This is not perfect since some ISOs won't be recognized (e.g. Tiny10), but we can prompt the user telling them it is an Unknown OS and that they should proceed with caution.