Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

OS Error 3

Open robinson0008 opened this issue 7 months ago • 6 comments

I tried installing the MarkpadInstaller_2.6.5_x64.exe on my Windows 11 Home x64 on a i7-1255U processor PC, but received an error: io: The system cannot find the path specified. (os error 3).

I moved the exe file to a new folder I created called Markpad, and still received the error. I ran it as Administrator as well and got the same issue.

But when I downloaded Markpad_2.6.5_x64.

Image

*but I downloaded Markpad_2.6.5_x64.exe and the app opens right up.

(also this is my first GitHub install, so please be kind)

robinson0008 avatar May 01 '26 12:05 robinson0008

installing for 'All Users' works around this for now, will have the single user install fixed soon!

alecdotdev avatar May 01 '26 14:05 alecdotdev

Thanks! I'm glad it's not just a user error.

On Fri, May 1, 2026 at 10:34 AM Alec Ames @.***> wrote:

alecdotdev left a comment (alecdotdev/Markpad#122) https://github.com/alecdotdev/Markpad/issues/122#issuecomment-4359792902

installing for 'All Users' works around this for now, will have the single user install fixed soon!

— Reply to this email directly, view it on GitHub https://github.com/alecdotdev/Markpad/issues/122#issuecomment-4359792902, or unsubscribe https://github.com/notifications/unsubscribe-auth/B7VCKLFRJE43MY42HHTOOXT4YSYZBAVCNFSM6AAAAACYNLZZBCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DGNJZG44TEOJQGI . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

robinson0008 avatar May 01 '26 15:05 robinson0008

#364 improved the failure but did not remove the cause.

What changed: a failed install now rolls back the steps it completed and reports a named error instead of leaving a half-installed state behind with a bare os error 3.

What still fails: create_shortcut calls into shortcut creation without ever calling create_dir_all on the target directory first. If the Desktop or Start Menu folder doesn't exist — trimmed images, redirected %PUBLIC%, some corporate setups — the install still fails. It's a one-line fix and I'd like to include it; noting it here so the cause is on record.

PathGao avatar Aug 02 '26 21:08 PathGao

os error 3 came from create_shortcut writing the .lnk without creating the Desktop or Start Menu folder first when it did not exist. That is fixed in v2.7.0 (#400).

The download name also changed — the Windows installer is now Markpad_2.7.0_x64-setup.exe, not MarkpadInstaller_*.exe. Could you try installing with it and say whether it goes through? I have not been able to test on Windows myself, so your result is the check.

PathGao avatar Aug 05 '26 10:08 PathGao

The cause I identified for this no longer exists in the tree, so this needs re-checking rather than closing.

In #396 I wrote that this had a one-line cause underneath the failure #364 made recoverable: create_shortcut never called create_dir_all, so a missing Desktop or Start Menu directory failed the install outright. That was accurate at the time.

create_shortcut is gone. #481 deleted the bundled installer and uninstaller — setup.rs in its entirety, on @alecdotdev's call in #466 — and NSIS creates the shortcuts now, through its own CreateShortcut calls in the bundler template. So whatever installs Markpad on 2.7.1 is not the code that produced OS Error 3.

That does not mean it is fixed; it means the diagnosis is void. If it still reproduces on 2.7.1 it is a different bug in a different code path, and the useful detail would be which directory is missing and whether the installer was run elevated. Leaving it open and needs info for that reason.

PathGao avatar Aug 06 '26 04:08 PathGao

Closing this — and the reason is worth stating precisely, because "we fixed it" would be misleading.

MarkpadInstaller_2.6.5_x64.exe was Markpad's own bundled installer. Your os error 3 came from it trying to write a shortcut into a directory that did not exist yet. #400 fixed exactly that (the directory levels are now created first, each as its own rollback step) — but #481 then removed the bundled installer altogether, so that code no longer runs for anyone.

Which also explains the thing you noticed yourself: Markpad_2.6.5_x64.exe opened right up. That was the portable build, which never went through the installer at all. Your instinct there was right.

On v2.7.2 the Windows downloads are:

file what it is
Markpad_2.7.2_x64-setup.exe installer — standard Tauri NSIS, not the old custom one
Markpad_2.7.2_x64.exe portable — what you were already running successfully

Either will work; the portable one needs no installation at all if that suits you.

If the NSIS installer fails on your machine, please do open a new issue — it would be a completely different code path from the one you hit, and worth its own report.

(And for what it's worth: this was a perfectly good bug report. You named the artifact, the OS, the CPU, said what you had already tried, and noticed which build did work. That last detail is the one that pointed at the installer rather than the app.)

PathGao avatar Aug 08 '26 01:08 PathGao