electron-userland / electron-wix-msi

:dvd: Create traditional MSI installers for your Electron app
MIT License
319 stars 93 forks source link

Autolaunch / Shortcuts not working #161

Open monsterrave opened 1 year ago

monsterrave commented 1 year ago

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.

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.

lockiechen commented 3 weeks ago

same problem here? @monsterrave any suggestion?