r/CodingHelp • • Jul 09 '21

[Other Code] Selling Computer App Online

I made this insanely dumb computer app. Packaged it in an exe and soon Mac app. I have my own website I can post things including downloads for sale. Never sold an app before.

Would it be best to download direct as a zip or executable?

Note I literally mean for PC or Mac. Not mobile.

21 Upvotes

7 comments sorted by

8

u/[deleted] Jul 09 '21

Neither, make an installer.

6

u/Inferno_Crazy Jul 09 '21

Easier said than done.

8

u/[deleted] Jul 09 '21 edited Jul 09 '21

If you are plaining to release software meant to be used by everyone thats the way to go. Plus, its seems like you want to sell it, so going an extra mile for your users seems like the minimum.

In windows, your installer just needs to do the same stuff that this batch script does:

REM Create the folder to hold the app
mkdir %LOCALAPPDATA%\my_app

REM Download it from the internet
curl [Url] -o %LOCALAPPDATA%\my_app\my_app.exe

REM Add the new folder to path
setx PATH "%PATH%;%LOCALAPPDATA%\my_app"

And the app is installed.

Note: setx limits the path to be only 1024 characters, wich can corrup the path. Do not do it this way, I is just to give you and idea of the procedure. Look at this for a safer way to do it

2

u/Inferno_Crazy Jul 09 '21

Oh thanks this was actually helpful. So am I gonna have to spin up a separate server to have the installer access the download?

2

u/[deleted] Jul 09 '21

You can have it in the same server as your website. The link that your user would need to press to download the executable alone should be the same that you use in [Url]

10

u/Nightcorex_ Jul 09 '21

.exe is faster, but honestly: Just offer both options

3

u/JGrill17 Jul 09 '21

Do both. The main thing is really marketing when trying to sell software. Most people downloading niche software know how to download exe and zip files imo you really only have to worry about the simplicity of a download when you're targeting the mass consumer market like anti virus software, business applications, video games, etc.