I want to make an updater for my app so that people don't have to download the entire new version when one is released.
There is only one file which has to be replaced to update the app.
If the app is currently installed in c:\Program Files\MyApp\, I want to replace a file named main.exe inside that folder with a new one.
But I want to check first whether the app is registered. If yes, to replace main.exe with some file, and if not, to replace it with another file.
What I don't know is how to embed the files which should replace the old file(main.exe) in a single vb executable.
To be more precise, I want to embed in a single vb .exe 2 files, like 1.exe and 2.exe
When the vb exe is started, it will check whether the app is registered - if yes, it will replace main.exe with 1.exe. If not, it will replace it with 2.exe.
But I don't want users of the unregistered version to be able to get 1.exe
I hope I explained what i need clearly, thanks