Skip to content
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

[bug] during the uninstallation of the application, Delete the application data exhibits abnormal behavior #9475

Closed
l1xnan opened this issue Apr 16, 2024 · 2 comments
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@l1xnan
Copy link

l1xnan commented Apr 16, 2024

Describe the bug

I mistakenly installed the program in the D:\Program Files directory. When I attempt to uninstall the program and select to Delete the application data, it results in the deletion of all files under the D:\Program Files, even those unrelated to the application data. See l1xnan/duckling#128
image

From the user's perspective, they mistakenly chose the D:\Program Files folder during installation. Later, when they wanted to uninstall and reinstall the program, they didn't realize, nor were they warned, that this would cause serious issues.

Such behavior can easily lead to loss of user data. Are there any methods to mitigate this problem?

Reproduction

No response

Expected behavior

No response

Full tauri info output

[✔] Environment
    - OS: Windows 10.0.22631 X64
    ✔ WebView2: 123.0.2420.97
    ✔ MSVC: Visual Studio Community 2022
    ✔ rustc: 1.77.0 (aedd173a2 2024-03-17)
    ✔ cargo: 1.77.0 (3fe68eabf 2024-02-29)
    ✔ rustup: 1.27.0 (bbb9276d2 2024-03-08)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 20.9.0
    - pnpm: 8.15.4
    - yarn: 1.22.19
    - npm: 10.2.0
    - bun: 1.1.0

[-] Packages
    - tauri [RUST]: 2.0.0-beta.14
    - tauri-build [RUST]: 2.0.0-beta.11
    - wry [RUST]: 0.39.0
    - tao [RUST]: 0.27.0
    - tauri-cli [RUST]: 2.0.0-alpha.17
    - @tauri-apps/api [NPM]: 2.0.0-beta.6
    - @tauri-apps/cli [NPM]: 2.0.0-beta.11

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:5173/
    - framework: React
    - bundler: Vite

Stack trace

No response

Additional context

No response

@l1xnan l1xnan added status: needs triage This issue needs to triage, applied to new issues type: bug labels Apr 16, 2024
@FabianLars
Copy link
Member

I fixed this for v1 here. I'll check if i can merge the v1 branch into the v2 one or if i have to port it over manually. Thanks for the report.

@FabianLars
Copy link
Member

#9479

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

2 participants