D4koon / WhatsappTray

Minimize Whatsapp Desktop-Client to Tray
GNU General Public License v3.0
387 stars 32 forks source link

not working with windows 11 after downloading whatsapp from microsoft store #99

Closed mazenxxelgayar closed 2 years ago

mazenxxelgayar commented 3 years ago

not working with windows 11 after downloading whatsapp from microsoft store Log_2021-07-16_18#10#46.txt

jonyrh commented 2 years ago

Create link in path: C:\Users\ %userprofile% \AppData\Roaming\Microsoft\Windows\Start Menu\Programs\WhatsApp\WhatsApp.lnk with source: "C:\Program Files\WindowsApps\5319275A.WhatsAppDesktop_2.2134.10.0_x64__cv1g1gvanyjgm\app\WhatsApp.exe" then launch WhatsappTray.exe and be happy)

mortenanakin commented 2 years ago

Create link in path: C:\Users\ %userprofile% \AppData\Roaming\Microsoft\Windows\Start Menu\Programs\WhatsApp\WhatsApp.lnk with source: "C:\Program Files\WindowsApps\5319275A.WhatsAppDesktop_2.2134.10.0_x64__cv1g1gvanyjgm\app\WhatsApp.exe" then launch WhatsappTray.exe and be happy)

How do I do that? Please explain :)

JCAguilera commented 2 years ago

Just go to the second folder and right click WhatsApp.exe, click Show more options > Send To > Desktop (Create shortcut). Then copy the shorcut to the first folder.

mortenanakin commented 2 years ago

image

JCAguilera commented 2 years ago

Hola amigo, al parecer hablas español. Quizás no entendiste las instrucciones que escribí, pero tienes que ir a la segunda carpeta (C:\Program Files\WindowsApps\5319275A.WhatsAppDesktop_2.2134.10.0_x64__cv1g1gvanyjgm\app), hacer click derecho en el archivo WhatsApp.exe, hacer click en Mostrar más opciones > Enviar a > Escritorio (crear acceso directo). Después copia el acceso directo a la primera carpeta (C:\Users\ %userprofile% \AppData\Roaming\Microsoft\Windows\Start Menu\Programs\WhatsApp).

Puedes llegar a la segunda carpeta escribiendo %appdata% en el buscador de Windows y luego entrando a Microsoft > Windows > Menú Inicio > Programas > Whatsapp y copias el acceso directo ahí.

mortenanakin commented 2 years ago

Gracias!! Ahora si funcionó! Gracias por el español tambien jaja! Saludos!

JCAguilera commented 2 years ago

It seems that the folder name changes for every update. I made this node.js script to create the shorcut automatically:

import { create } from "windows-shortcuts";
import { readdirSync } from "fs";

const dir = "C:/Program Files/WindowsApps";
const files = readdirSync(dir);
const wsFolder = files.find((name) => name.includes("WhatsApp"));
const wsDir = `${dir}/${wsFolder}/app/WhatsApp.exe`;

create(
  "%APPDATA%/Microsoft/Windows/Start Menu/Programs/WhatsApp/WhatsApp.lnk",
  wsDir
);

You need fs and windows-shortcuts libraries to run the srcript. Hope it helps!


(En Español) Al parecer el nombre de la carpeta se cambia por cada actualización. Hice este script en node.js para hacer el acceso directo automáticamente.

Necesita las librerías fs y windows-shortcuts para funcionar. ¡Espero que ayude!

mortenanakin commented 2 years ago

Podrias explicarme que es eso de las librerias y como las consigo?

mortenanakin commented 2 years ago

Ahi instale Node.js, tengo que pastear ahi el script que hiciste? Soy nulo jajaja

jonyrh commented 2 years ago

@mortenanakin, do it:

  1. launch WhatsApp,
  2. open process manager
  3. find whatsapp, then open process folder in submenu
  4. copy folder path, then paste path to properties WhatsApp.lnk %APPDATA%/Microsoft/Windows/Start Menu/Programs/WhatsApp/WhatsApp.lnk
JCAguilera commented 2 years ago

Ahi instale Node.js, tengo que pastear ahi el script que hiciste? Soy nulo jajaja

Subí el script a mi Github para que te sea más facil instalarlo y ejecutarlo, en el Readme están las instrucciones en inglés y español: https://github.com/JCAguilera/WhatsappTray-Shortcut-Fix

I uploaded the script to Github so is easier to install and run. The Readme file has instructions in english and spanish: https://github.com/JCAguilera/WhatsappTray-Shortcut-Fix

mortenanakin commented 2 years ago

Thanks! I've installed Node and NPM, and your fix then. Next update, i will try it! :)

jonyrh commented 2 years ago

use my tool for fix WhatsApp.lnk

project here, release maked: https://github.com/jonyrh/WhatsAppLinkFix

D4koon commented 2 years ago

I guess this is should be done then, if there is still an problem please open a new issue.

ghost commented 2 years ago

hey still doesnot work with windows 11 store version, i think whatsapp sometimes changes its location!