mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 05:34:51 +00:00
Default installation folder #423
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @OmiCron07 on GitHub (Dec 6, 2019).
Originally assigned to: @GregorBiswanger on GitHub.
.Net Core 3.1
My electron.manifest.json file :
When I build the app, I get the setup file
Restrooms Watcher Setup 0.9.0.exe, but when I'm using the setup to install the application, the destination folder is..\AppData\Local\Programs\electron.net.host. If I have two different setups, it will install in the same folder. Is it a bug or how can I change the destination folder for the application name? Is it a way too to specify another folder instead ofAppData?@GregorBiswanger commented on GitHub (Dec 6, 2019):
Hi @OmiCron07
please see the
electron-builderconfiguration documentation. In theelectron.manifest.jsonfile is the build-Part the 1:1 electron builder configuration-Part. Per default is NSIS as a setup ceation activated.https://www.electron.build/configuration/nsis
Please try here the
allowToChangeInstallationDirectorysetting.https://www.electron.build/configuration/nsis#NsisOptions-allowToChangeInstallationDirectory
@OmiCron07 commented on GitHub (Dec 6, 2019):
I don't see any mention of the destination folder in their documentations. I don't want an
assisted installer, just that the destination folder matches the product name and not the generic nameelectron.net.host.@OmiCron07 commented on GitHub (Dec 11, 2019):
I set up the AutoUpdate feature and there the notification :
Even there the name of the application is wrong.
@OmiCron07 commented on GitHub (Dec 11, 2019):
I have found the name
electron.net.hostin these files :So, the name is wrong but the version number is right :
@OmiCron07 commented on GitHub (Dec 11, 2019):
Just discovered that
Electron.App.GetNameAsync()returnselectron.net.hostinstead of myproductName.@OmiCron07 commented on GitHub (Dec 12, 2019):
Probably linked too :
The publisher's name is wrong. Instead of my company name, it displays
Gregor Biswanger.@jadhavrani123 commented on GitHub (Feb 29, 2020):
how can I change my installation folder name? folder name is electron.net.host replace to my project name
@jadhavrani123 commented on GitHub (Feb 29, 2020):
please give me a answer?I want to change folder name
@GregorBiswanger commented on GitHub (Feb 29, 2020):
I just tested that electron-builder doesn't just let the names and authors be configured externally. This would normally be done using the extraMetadata setting.
I will add this as a new feature for the upcoming Electron.NET version, which you can easily do in the
electron.manifest.jsonfile.Current workaround to the solution: While you are executing the following command, for example,
electronize build /target win- can you be active, before electron-builder becomes active at the end, quickly exchange thepackage.jsonwith your own data. You can find the current file underPROJECTFOLDER/obj/desktop/win/package.json- write your desired name for app name and your author name there.Please give me your feedback on whether it worked for you.
@jadhavrani123 commented on GitHub (Mar 2, 2020):
Thank you for responce,
I am also tried it yesterday using that solution but it not work
@jadhavrani123 commented on GitHub (Mar 2, 2020):
electronize build /target win I am use these command for exe folder but it is possible to create two ceperate folder for 32 bit OS & 64 bit OS
@jadhavrani123 commented on GitHub (Mar 2, 2020):
electronize build /target win I am use these command for exe folder but it is possible to create two ceperate folder for 32 bit OS & 64 bit OS
@jadhavrani123 commented on GitHub (Mar 4, 2020):
Hello sir,
It is possible at the time of PC restart how can I store my EletctronNet exe in tray
@OmiCron07 commented on GitHub (Mar 4, 2020):
To start your app automatically on Windows boot, use
Electron.App.SetLoginItemSettings(new LoginSettings { OpenAtLogin = true })@jadhavrani123 commented on GitHub (Mar 5, 2020):
Thank you it worked for me actually I want to store app in tray, not open directly at the time of PC restart
@jadhavrani123 commented on GitHub (Mar 5, 2020):
If you know answer then please help me.
Thanks in advance
@jadhavrani123 commented on GitHub (Mar 5, 2020):
` document.getElementById("close-btn").addEventListener("click", function (e) {
const window = remote.getCurrentWindow();
window.close();
these is the code on Close button but I want only on first time exe not close ,after second time exe will close
how I am code write for that??
@jadhavrani123 commented on GitHub (Mar 5, 2020):
To start your app automatically on Windows boot, use Electron.App.SetLoginItemSettings(new LoginSettings { OpenAtLogin = true });
it work for me thank you but one problem is here with application one elctron window is open how to remove it
@OmiCron07 commented on GitHub (Mar 5, 2020):
You probably have somewhere
Electron.WindowManager.CreateWindowAsync(options, loadUrl);, so you just have to remove that line.@jadhavrani123 commented on GitHub (Mar 6, 2020):
Thank you it work for me
@jadhavrani123 commented on GitHub (Mar 6, 2020):
how can I change my installation folder name? folder name is electron.net.host replace to my project name
installation path is : C:\Users\xyz\AppData\Local\Programs\electron.net.host
but i want electron.net.host replace to my project name
@jadhavrani123 commented on GitHub (Mar 6, 2020):
how to restore exe to its previous position from tray and do not open multiple windows of that exe and how to restart exe on button click.
@OmiCron07 commented on GitHub (Mar 6, 2020):
For the moment, you can't change the installation folder name, thus this issue.
To show the app, you have to call
Electron.WindowManager.CreateWindowAsync(options, loadUrl);and to restore the position, just set the properties of theoptionsparameter of theCreateWindowAsyncmethod. To avoid opening multiple times the window, I don't know a way but by tracking when you are opening or closing the window and thus, verify yourself the state of the window before opening a new one.@pooja6747 commented on GitHub (Mar 7, 2020):
Hello Sir,
Actually on click cntrl + shift + i open developer tool in my exe , but I want to close it ??
@pooja6747 commented on GitHub (Mar 7, 2020):
if you know answer give me response
@jadhavrani123 commented on GitHub (Mar 9, 2020):
var menu = new MenuItem[] {
},
On minimize my exe store it work properly but problem is here in tray icon right click open option exe open multiple items
how to remove it please help us
On open click I want exe open only one time
@jadhavrani123 commented on GitHub (Mar 11, 2020):
https://github.com/ElectronNET/Electron.NET/issues/348#issuecomment-592988286
@GregorBiswanger sir is worked for but one problem occur is here folder name is replace to project name but it shows only on my PC not on another user in another user PC is install with electron.net .host folder name
how I can change it??
@jadhavrani123 commented on GitHub (Mar 12, 2020):
My editor is Visual studio 2019 with Angular fronted
At the time exe package create 3 folder local , swiftshader , resources but in resources folder bin folder is create how to remove it??
@GregorBiswanger commented on GitHub (Apr 19, 2020):
You can set a name and author of the app in
electron.manifest.jsonwith the new Electron.NET Version 8.31.1As example:
@kristianklok commented on GitHub (Dec 18, 2020):
@OmiCron07 Sorry for necro'ing this thread. Did you ever find a solution to this? I have been looking into this all day and it appears that two ElectronNet applications using unassisted installers cannot co-exist on the same (Windows) system. Even if they are from different vendors?
@OmiCron07 commented on GitHub (Dec 18, 2020):
I didn't come back to the app I made with Electron.Net and I didn't test version 8.31.1 either for the new installation folder name. I suggest you open a new issue for your problem, sorry that I can't help much.
@HJST1979 commented on GitHub (Feb 4, 2021):
Example for "Default installation folder" write this in electron.manifest.json
"build": {
"appId": "com..app",
"productName": "",
"copyright": "Copyright © 2021",
"buildVersion": "1.0.0",
"compression": "maximum",
"win": {
"icon": "../../../.ico"
},
"nsis" : {
"oneClick" : false,
"multiLanguageInstaller" : true,
"allowToChangeInstallationDirectory" : true
},
.....
@gsobrinhodev commented on GitHub (Sep 18, 2023):
Friends,
It's possible we have the installation on default directory but with my App name? Instead electron.net.host ?