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

Autolaunch / Shortcuts not working #161

Open
monsterrave opened this issue Feb 2, 2023 · 1 comment
Open

Autolaunch / Shortcuts not working #161

monsterrave opened this issue Feb 2, 2023 · 1 comment

Comments

@monsterrave
Copy link

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
Copy link

same problem here? @monsterrave any suggestion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants