PDA

View Full Version : after FTP the update.exe copy an extra file to the site



NewsArchive
10-08-2015, 05:44 AM
Hi,
To inform my customers that a new version of the program is available I put a
small file to the download directory on the website. My program fetches this
file (with the versionnumer) when the users starts the program. When u make
an update Setupbuilder offers to FTP this update.exe. Is it possible to
upload (at the same time) my own file with the versionnumber.

Piet Bouma

NewsArchive
10-08-2015, 05:46 AM
Hi Piet,

> To inform my customers that a new version of the program is available I
> put a small file to the download directory on the website. My program
> fetches this file (with the versionnumer) when the users starts the
> program. When u make an update Setupbuilder offers to FTP this update.exe.
> Is it possible to upload (at the same time) my own file with the
> versionnumber.

You can use the "#ftp upload..." compiler directive to upload a file.

Does this help?

Friedrich

NewsArchive
10-12-2015, 07:21 AM
> Hello, I've tried to ask this in Setupbuilder NG but do not see it there.

See screenshot.

Friedrich

NewsArchive
10-12-2015, 07:22 AM
> See screenshot.
>
> Friedrich

Thanks Friedrich for the screenshot. Otherwise I did not know what a
'compiler directive' is

Piet Bouma

NewsArchive
10-12-2015, 07:23 AM
Then you miss out on much of the power of SetupBuilder, Piet!
Compiler directives let you do many things while you're building your
installation (before, during, after).

From the help add-on called "Learning SetupBuilder":

Broadly speaking, there are two types of script items.
· Compiler Directives are processed while your script is being compiled.
They are prefixed with a pound sign (#).
· Runtime script items are processed while your customer is running your
installation program.


jf