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

UAC prompts me to uninstall Composer #3237

Closed
2 of 8 tasks
arafattehsin opened this issue May 30, 2020 · 9 comments · Fixed by #3306
Closed
2 of 8 tasks

UAC prompts me to uninstall Composer #3237

arafattehsin opened this issue May 30, 2020 · 9 comments · Fixed by #3306
Assignees
Labels
R10 Release 10 - August 17th, 2020

Comments

@arafattehsin
Copy link
Contributor

After successfully exiting from Composer. A prompt appears on my screen asking me to give permission to old-uninstaller.exe to actually uninstall the Composer that too from an uknown source

Version

1.0

Browser

  • Chrome
  • Safari
  • Firefox
  • Edge
  • Electron app

OS

  • macOS
  • Windows
  • Ubuntu

To Reproduce

Steps to reproduce the behavior:

Exit the Composer client and the popup will appear.

Expected behavior

There shouldn't be such popup.

Screenshots

b4d2324a-356c-4b6c-8437-b7d2f3ef360b

@arafattehsin arafattehsin added Needs-triage A new issue that require triage Type: Bug Something isn't working labels May 30, 2020
@cwhitten
Copy link
Member

@arafattehsin could you have installed a pre-release version of the desktop application?

@tonyanziano does this look familiar to you?

@cwhitten cwhitten added Needs investigation and removed Needs-triage A new issue that require triage Type: Bug Something isn't working labels May 30, 2020
@arafattehsin
Copy link
Contributor Author

Hi @cwhitten - there may be a possibility but I remember it downloading after Build's announcement. I can download the fresh one and re-install this again tomorrow and update you folks here.

@arafattehsin
Copy link
Contributor Author

Hi folks! I re-installed from the link provided in the docs - the issue still persists. As soon as I close the Composer, it prompts me to uninstall.

@bartbilliet
Copy link
Contributor

bartbilliet commented Jun 1, 2020

I'm experiencing the same issue:

Enabling the Early Adopters feature does uninstall Composer, but doesn't succeed installing the new build. No error messages are shown, but Composer just gets uninstalled every time after the Electron app is closed. This issue produces in version 1.0.0.

Steps to reproduce the behavior:

  1. Activate in Settings the Auto update and Early Adopters features, such as in screenshots below.
  2. Click Check for Updates
  3. Watch how a new nightly build is downloaded to: C:\Users<username>\AppData\Local@bfc\electron-server\pending\BotFramework-Composer-1.0.0-nightly.134872.10c809a-windows-setup.exe
  4. Exit Composer.
  5. A prompt will be shown in UAC to uninstall the existing version of Composer (similar as shown by @arafattehsin ).
  6. Nothing happens after uninstall, Composer gets successfully uninstalled, but the nightly build does not get installed.

image

Workaround:

Disable the Early Adopters feature in Settings

@tonyanziano
Copy link
Contributor

Sounds like it's related to this issue:

electron-userland/electron-builder#2363

I'm looking into it.

@tonyanziano
Copy link
Contributor

@arafattehsin & @bartbilliet when you install the app can you try installing it for the current user only by selecting the following radio button in the installer:

image

Another alternative would be to make sure you are running Composer as an administrator if possible.

It seems like there might be some underlying issue when updating where Composer is running the old uninstaller script to get rid of the old version, and then fails to install the downloaded update due to not having sufficient permissions (when installing for all users on a machine).

@bartbilliet
Copy link
Contributor

@tonyanziano Your assumption seems correct. When running as "only for me" the UAC dialog does not appear, and installation seems to work (at least from what I can see in add/remove programs).
After installation, however, I can not open Composer. Clicking the start menu & desktop icons launches 3 processes in task manager, but no UI is loading. But that might be a different issue (maybe a problem with the current nightly build).
Same results when installed for 'all users' and running composer as admin

image

@arafattehsin
Copy link
Contributor Author

Yes, the Only for me option works well now.

@tonyanziano
Copy link
Contributor

Another Composer dev and myself looked into this issue and it seems that the following factors result in the UAC prompt (all 3 conditions must be true):

  • The user installed Composer "for all users"
  • The user did not run Composer as admin
  • The user enabled the auto updates (silent install) option

Some workarounds for this include:

  • Install Composer for "only current user"
  • Install Composer "for all users" but run as admin
  • Install Composer "for all users" but disable auto updates (silent installs) option. This will result in an update dialog being shown, which should guide you through the update process manually and will result in a successful install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R10 Release 10 - August 17th, 2020
Projects
None yet
5 participants