Afterwards, i run the msi which installs my app. This is my folder structure then.
C:\Program Files\
└─ Kittens
└─ app-x.x.x // version of the MSI
└─ .installInfo // contains information about the installation
└─ kittens.exe // stub executable that launches the newest version
└─ Update.exe // optional auto updater
When I tried to start the app by clicking the desktop or start menue shortcut, nothing happened. Also autolaunch was not working, when a user logs into windows.
So I checked the MSI with windows Orca Editor and noticed, that the shortcuts were pointing to the exe in the install folder.
I changed that, and now my shortcut targets (and the target of the autolaunch feature) is the exe in the app-x.x.x folder.
Now clicking the shortcuts starts my app and autolaunch is also working.
I might found a bug.
I create the msi with the output exe of electron builder.
As in this tutorial https://ourcodeworld.com/articles/read/927/how-to-create-a-msi-installer-in-windows-for-an-electron-framework-application
Afterwards, i run the msi which installs my app. This is my folder structure then.
When I tried to start the app by clicking the desktop or start menue shortcut, nothing happened. Also autolaunch was not working, when a user logs into windows.
So I checked the MSI with windows Orca Editor and noticed, that the shortcuts were pointing to the exe in the install folder. I changed that, and now my shortcut targets (and the target of the autolaunch feature) is the exe in the app-x.x.x folder.
Now clicking the shortcuts starts my app and autolaunch is also working.