#Electron app runs without installing

8 messages · Page 1 of 1 (latest)

viscid bluff
#

I just build and install my elections app. I zipped the install file and unzipped on another pc and saw it was running lol. Why is this working? XD

frozen totem
#

what do u even mean? ofc it will run bcz its an èxe with all other required stuff, electronjs doesnt need an installer until u want it to...

its portable zip it use it on any pc

viscid bluff
# frozen totem what do u even mean? ofc it will run bcz its an èxe with all other required stuf...

After building my Electron app, it generates a .exe installer inside the dist folder, which I normally share with others so they can install the app on their PCs.

However, I recently discovered something unexpected. If I install the app once, then zip the installed folder and move it to another PC, the app still runs without needing installation. I find this behavior unusual and would like to prevent it.

In other words, I want to ensure the app can only run after a proper installation via the .exe installer, not by simply copying the installed files.
@frozen totem

frozen totem
#

well theres isnt a workaround for that but can be thought of something, let say a key, if a person has it they can jse it without the key the app cant run..

#

u can think of tons of stuff, another way can be like a dependncy if a pc jas some specific file or folder or a build version of wi dows then it should run otherwise not

#

or many other ideas.. example user isntalls it on his pc and u get the user data on ur webpage from there u enable only his pc to run electron app otherwise disabled pc cant run it

#

like wise could be other ways as well

#

u can even make the electron app look for a file in pc like some dll or exe or txt of anything if thats there in a pc run it otherwise not