Is there an event on electron based app's uninstall, for Mac? Or a way to distinguish between an install and an update? - node.js

I see that there's options for windows with NSIS but nothing for mac.
I want to give users an option to cleanup app related files when they uninstall the app. But I haven't found an event on which I can trigger this on mac side.

I think there are no such events as you want for mac os. It's only provided for windows. uninstalling an app on macOS is you need to just drag it over to the trash. so, if you want to remove app-related files to be deleted then just remove app.getPath("home") data before autoUpdater.quitAndInstall().

Related

how to enable or switch existing flutter project (mobile only) to MacOS or WEB or Linux or Windows?

I have made a flutter app only for mobile (Android and IOS). now client requested that make it for web/macOS/windows app.
so now how can I enable the existing projects for all other platforms or wise wars? here is all case I want to know
Existing on the web and adding other (mobile, windows, mac)
Existing on the web and adding only (mobile)
Existing on the Mobile and adding other (web, windows, mac)
Existing on Mobile and adding only (windows, mac)
Existing on the Mac and adding other (mobile, windows, web)
Existing on Windows and adding other (mobile, web)
many many thanks in advance. Questions and answers will be useful for many flutter developers in the future so if possible then a details answer will be appreciated!
flutter create --platforms=windows,macos,linux .
Is the one command that you need to run in terminal of your root project directory. You can specify platforms in the comma seperated list.
Like mentioned in the doc https://docs.flutter.dev/development/platform-integration/desktop#add-desktop-support-to-an-existing-flutter-app
List of platforms:https://docs.flutter.dev/development/platform-integration/desktop#add-desktop-support-to-an-existing-flutter-app
To enable disable platforms let say we want to disable ios altogether you can use and create a project later. Now you wont have ios as it is not available.
Well you can toggle the config and simply run the above mentioned command to go for ios
flutter config --no-enable-ios
You can follow this link for the config commands.
https://docs.flutter.dev/development/platform-integration/desktop#set-up
So lets say you have a case where you need to add only windows and mac you can disable other platforms and use the create command.
Now for the existing project if you want to enable or add a platform you can use the above create with platforms flag
NOTE:
CONFIG SETTINGS ARE USUALLY GLOBAL
There are many ways we can counter it. we can make use isolated development too complicated for simple usecase.
We can use FVM https://fvm.app/ for the configs so that it doesnot affect our core sdk.

Disabling VSCode autoupdate on linux machines

Suggestions provided here to disable autoupdate of VSCode apply only to MacOS and Windows. I have a linux machine on which VSCode updated itself today to Version 1.60.0
Although it does not apply, I nonetheless had
"update.mode": "none"
in the user settings.json file.
This question has been asked before on SO. See How do I disable VS Code of updating itself?, but it does not appear to work on linux.
This documentation from VSCode specifically for linux states:
If the VS Code repository was installed correctly, then your system
package manager should handle auto-updating in the same way as other
packages on the system.
How exactly should one go about disabling auto updates for linux? Does the above quote mean that on linux either all packages are auto updated or none of them are? I am on Ubuntu 20.10
Okay Google suggests:
Open the Unity Dash (16.04) or App Launcher (18.04+)
Search for 'Software & Updates'
Select the 'Updates' tab.
Change 'Automatically check for updates' from 'Daily' to 'Never'.
I don't have ubuntu at my office or i would test. I'll make sure when I get home if you haven't tried by then.
The reason VS Code in Linux still updates despite the settings is because the app is not handling the updating. In Linux, the package manager handles it. In Linux Mint (and Debian, Ubuntu) at least, the update is being done with apt. Other Linux distros have different package mangers, like Yum for RedHat based systems.
The way to disable the updating of VS Code is to remove the repository check that's created when VS Code is installed. In Linux Mint the location is:
/etc/apt/sources.list.d/vscode.list
This file has one repo listed:
deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main
To stop updating, simply comment out the line by adding a hash (#) in front of 'deb'
The proper way to do this would [probably] be to remove the repo using apt, but I prefer to keep the list file and repo available to make it simple to replace should I wish to enable auto-updating in the future. To start updating again, simply remove the hash and save the file.
Updating can still be done from VS Code after it's disabled in the package manager. To update VS Code manually, from the About menu select "check for updates" and then download and install if updates are available.
If you have set updates to "none" in settings, Check for updates does not show in the menu. You can get this menu item back by changing the setting for updates to "Manual".

MongoDB error as setup Wizard ended prematurely, while installing it on windows 10

I have downloaded MongoDB from the official site as an .msi file and during installation it stops and freezes and after half an hour, and gives an error as the setup wizard ended prematurely.
I have a fresh installation of Windows 10 Pro (64-bit) installed just today, and there are no other applications which should be interfering with MongoDB.
I have NodeJS (v8.10.0), npm(5.6.0) installed properly
Windows firewall is turned off and there is no antivirus running.
Is this problem of any missing drivers or any change in BIOS settings?
For me unchecking Install Compass helped ...
I disabled installing the router (mongos) and bundeled software client (MongoDB Compass) and installer ran fine after that. Hope this helps.
I had this problem too and solve it in this way:
Remove the older version of MongoDB if you have installed it before.
Disable your antivirus if you have any of them
Go to C:>users>"UserName">AppData>Local>Temp
Right Click on Temp and go to Properties
Select Security Tab
Select the User and check the permission and controll give the user full control by Checking Full Control on permission
Go Ahead and Install MongoDB.
Note that if you want to install MongoDB compass too, you should have internet connection.
I hope this will work for you.

Atom installation error on Windows 10

I was getting this error when trying to install Atom using the installer.
I tried to run as Administrator but ever having the same error.
So I opened the Setup Log and found this line in many places of the log:
Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\david\AppData\Local\slack\packages\RELEASES'.
To resolve this problem, I simply tried to change the AppData folder properties, unchecking the Attribute "Read-Only" and applying to subfolders.
After that, I could install the application and everything is working well.
I don't know whether what I did was the best solution, but it fixed my problem :)
Hope this help someone
If you have anti-virus installed on your system. Please disable it and try it once. Hope this will work for you because this worked for me like a charm.
One more thing you can check that your windows update service is also running. You check it out in Task Manager ->
So do this thing and check it out.
This is a permission related issue. Could be you don't have permission to write, in that case run as Administrator.
Right Click on the installer and select Run As Administrator.
If you still have the issue, disable your antivirus, defender or whatever you have to protect your PC from threats. Once Installed Enable it BACK
if you have Dropbox opened, close it.
You can try this:
open control panel
Windows firewall
click allow an app or feature through windows firewall
In that at right bottom click allow another app
Browse the downloaded atom.exe file and click open and click ok
first uninstall or disable the antivirus. In my case Guardian net secure was handling all the things of windows firewall. so i was not able to allow the app through windows firewall. therefore, it is necessary to uninstall these. then restart your laptop.
after restarting open control panel. go to windows firewall. on left top you will see
allow an app or feature through windows firewall . click on it. dialog box appears. click on change settings. at bottom click allow another app. then browse the downloaded file atom.exe. then install it
What worked for me was closing Slack and terminating any of it's processes in Task Manager.
This was what worked for me (Windows 11):
Go to properties>compatability on the installation file. Run the troubleshooter for compatibility, and it shoul provide a solution, wait, and if it works, select that it did so, and you’re all done.
To resolve this problem, I simply tried to change the AppData folder properties, unchecking the Attribute "Read-Only" and applying to subfolders.
After that, I could install the application and everything is working well.
This worked for me on Windows 11 home version.
Hope this helps
I managed to install by finding an older version.

5.2 and Windows 10 compatibility release

I know this isnt a dev question per se, but is there a timeline on a 5.2 build that can be installed on Win 10?
I think the issue i am seeing is just with the installer so an in place upgrade to Win 10 might work fine, but a clean install fails as it doesnt acknowledge IIS 10 or whatever version comes with Win 10.
Thanks!
Official answer - Windows 10 is not yet supported by the currently available Acumatica ERP installers, however the issue has already been fixed internally (AC-56069 - fixed in 4.20.2262, 5.10.0785, 5.20.1012 and newer). Following workaround can be used in the meantime:
Download the Orca tool to edit the MSI file: http://adriank.org/wp-content/uploads/2015/01/Orca.zip
Open the
MSI file using this tool (might be able to right click on MSI and
open with Orca)
Go to the LaunchCondition table
Drop/delete the IIS version condition (inside MSI, the LaunchCondition entry is IISVERSION >="#7"; system does a string comparison and "10" is
smaller than "7")
Save and close Orca
Run the setup
I can't give you an "official" answer but I can give you a work around.
If you download a utility called LessMSI you can extract the installation files. They will come out in a folder called "SourceDir". Simply take these and replace the files in your default installation folder or run them from another location.
Then you can proceed as normal.
The installer only checks if pre-reqs are installed and then copy's the files to the output location. If you have IIS already setup with dotnet support then the rest will be fine.
I do this frequently if I have to install a site with a specific version in order to upgrade or test a client's snapshot.
I have 4.1,4.2,5.1,5.2 running on my Windows 10 workstation as I type

Resources