PDA

View Full Version : Newbie questions



NewsArchive
10-07-2011, 01:02 AM
First let me say I'm so very happy I bought this last week - I got a
working install within an hour, and modifying my install to add files
is far easer than the previous installer I used.

I jumped into BETA testing an app, and I'm in a rush to improve the
install I have. I'm going to be creating new versions of the app many
time over the next few weeks.

Where do I look for:

1.Preventing an older install running after a newer one and falling
back to old files.

2. Having the app detect a newer version is available on my website
and warning the user

Bob R

NewsArchive
10-08-2011, 02:08 AM
Hi Bob,

> First let me say I'm so very happy I bought this last week - I got a
> working install within an hour, and modifying my install to add files
> is far easer than the previous installer I used.

Thanks so much for your kind words.

> I jumped into BETA testing an app, and I'm in a rush to improve the
> install I have. I'm going to be creating new versions of the app many
> time over the next few weeks.
>
> Where do I look for:
>
> 1.Preventing an older install running after a newer one and falling
> back to old files.

I think a demo says more than a thousand words. I'll develop and post an
example project to demonstrate this.

> 2. Having the app detect a newer version is available on my website
> and warning the user

Would you like to "warn" the user or offer (and apply) an update?

Friedrich

NewsArchive
10-08-2011, 02:09 AM
To clarify I'm talking about the version of the install not the
version of the EXE being installed (that I can do with a date check)

If the person uses an older install version I want it to give a
warning message and always fail before it copies files or does
anything else.

>> 2. Having the app detect a newer version is available on my website
>> and warning the user
>
>Would you like to "warn" the user or offer (and apply) an update?
>
>Friedrich
>
>
Bob R

NewsArchive
10-10-2011, 12:33 AM
Hi Bob,

> To clarify I'm talking about the version of the install not the
> version of the EXE being installed (that I can do with a date check)
>
> If the person uses an older install version I want it to give a
> warning message and always fail before it copies files or does
> anything else.

I have uploaded a simple demo:

http://www.lindersoft.com/projects/Installer_Version_Check.zip

There are two dummy projects:

Installer Version Check V20.sb7
Installer Version Check V21.sb7

The V20 setup installs version 2.00 and the V21 setup installs version 2.10.

If V2.1 is already installed, V2.0 can't be installed. If V2.0 is installed
then V2.1 can continue.

See attached screenshot with the relevant code-snippet.

Of course, you can fine-tune it. You can offer an automatic uninstall
before doing a complete reinstall, you can offer a repair, you can offer an
update, etc. Whatever you would like to do, you can do it in the script.

Hope this helps.

Friedrich