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

Windows installer does not detect existing install type (per-user/per-machine) #268

Open
tfiers opened this issue Jan 16, 2023 · 5 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@tfiers
Copy link

tfiers commented Jan 16, 2023

Description

Windows shortcuts to PWAs are not stable across reboots.

Steps to Reproduce

  1. Have Windows
  2. Pin a PWAFF window to the taskbar, or make a desktop shortcut
  3. Reboot your PC
  4. The shortcuts will not work anymore

Additional Information

Environment

  • Operating system: Win 11
  • System architecture: 64-bit
  • Installation method: MSI
  • PWAsForFirefox extension version: 2.3.0 (just auto-updated to 2.4.0; haven't rebooted with new native v yet)
  • PWAsForFirefox native version: 2.3.0
  • Firefox version: 108.0.2
@tfiers tfiers added the bug Something isn't working label Jan 16, 2023
@filips123
Copy link
Owner

Please check if there is anything in C:\Program Files\FirefoxPWA and %LOCALAPPDATA%\Programs\FirefoxPWA. Also, please check if PWAsForFirefox is still listed as installed in the Windows program list.

You can also try to (re)install the native program again.

@tfiers
Copy link
Author

tfiers commented Jan 16, 2023

Just installed the new version of the native program, 2.4.0.
%LOCALAPPDATA%\Programs\FirefoxPWA exists but is empty.1
C:\Program Files\FirefoxPWA seems to contain the correct files (firefoxpwa.exe etc)
PWAsForFirefox is correctly listed in Apps > Installed apps (the Win 11 name for "Add or remove programs")

The new shortcut I created correctly points to "C:\Program Files\FirefoxPWA\firefoxpwa.exe" site launch 01GKJAKZD0C7G31S5NQ2G88MHM
Will update when I reboot

Footnotes

  1. Might have installed previous MSIs for one user only, and the last one for all users, hence the two locations.
    (EDIT: To be clear, my shortcuts broke even before I did this)

@brammitch
Copy link

brammitch commented Jan 17, 2023

Might have installed previous MSIs for one user only, and the last one for all users, hence the two locations

This happened to me (also Windows 11). I updated to 2.4.0 with the msi and chose to install for all users, forgetting I had previously installed for just myself.

After updating from 2.2.0 to 2.4.0, the extension kept saying it was still on 2.2.0. I checked under Windows Control Panel where it showed both versions installed. Uninstalling 2.2.0 caused my shortcuts to break.

To resolve the issue, I uninstalled 2.4.0 and uninstalled the extension from Firefox. Then I reinstalled the extension and the 2.4.0 msi, but this time just for myself instead of all users.

My previous shortcuts work again and I didn't lose any of my apps from the extension, so that was a nice touch.

@filips123
Copy link
Owner

I updated to 2.4.0 with the msi and chose to install for all users, forgetting I had previously installed for just myself.

This is probably what caused this problem. I'll check if I can make the installer remember how the package was previously installed, but I'm not sure if it's possible.

@filips123 filips123 changed the title Desktop shortcut to PWA broken after reboot Windows installer does not detect existing install type (per-user/per-machine) Jan 23, 2023
@filips123 filips123 moved this to To Do in PWAsForFirefox Jan 23, 2023
@filips123 filips123 added the help wanted Extra attention is needed label Jan 23, 2023
@tfiers
Copy link
Author

tfiers commented Jan 23, 2023

Will update when I reboot

Yep, the shortcuts do work now after a reboot.
The new issue title seems accurate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
Status: On Hold
Development

No branches or pull requests

3 participants