"Deanna Earley" <
dee.e...@icode.co.uk> escribi� en el mensaje
news:kmqe9m$k3o$1...@speranza.aioe.org...
> On 11/05/2013 04:03, Eduardo wrote:
>> "CoderX" <
co...@x.com> escribi� en el mensaje
>> news:kmkanq$c9r$1...@dont-email.me...
>>>
>>> "Eduardo" <
m...@mm.com> wrote in message
>>> news:kmj0cr$7te$1...@speranza.aioe.org...
>>>> Is there any reason to keep running the setup.exe after it launched the
>>>> setup1.exe?
>>>
>>> Or, and I'm just throwing this out there...get rid of the crappy PDW and
>>> use Inno like everyone else. For the features and the price, nothing
>>> else
>>> comes close.
>>
>> It is a possibility, but I don't have much time now to learn how to use a
>> new installer.
>>
>> In my version of setup1, I added several features:
>>
>> 1) To upgrade a previous version if the same program is already
>> installed.
>
> Inno does this out the box with no effort.
I already have it made, so I do it also "out the box" with no effort.
But my installer have a better looking GUI (and more personality) that the
serially used Inno.
>
>> 2) To reinstall if the version installed of the program is the same (more
>> or
>> less the same as 1), but changing the caption of a button from "Upgrade"
>> to
>> "Reinstall")
>
> Reinstall is fine, changing the caption is a single line of code.
Yes, you are right, I don't understand how you have figured it.
Also another line of code for a label to tell the user that if he/she
intended to run the program, he/she must exit the installer and look for it
in the programs shortcuts.
(I guess that Inno, as a serious installer must do that also)
>
>> 1 and 2 uninstall a previous version silently before installing the
>> program
>> again.
>
> There is no need for this in the vast majority of cases.
> Any orphaned/old files can be deleted on install, or just left until
> uninstall time.
For me it was easier to do that in that way, and works just fine.
>
>> 3) Set permissions to folders that will or can be used for data storage.
>
> Easy, Permissions: everyone-all
May be it's easy with and installer (like Inno, Mayayana's one or mine), but
it's not so easy if you don't know hw to do it or don't have a class with
all the code to do that.
>
>> 4) Prompt to close the program before uninstalling if it's running
>
> Done as part of the Restart Manager support, or a simple mutex check.
Do you have an own installer that does that????
>
>> (also switching to the main window of the program).
>
> Easy enough with a few lines of code.
All are lines of code, of course.
And of course everything is easy... if you know.
But, in fact, I have to say that's not so easy to do it properly, do you
want me to explain what could be the problems if you don't take case of some
situations?
>
>> 5) Prompt to close other programs if they have a file in use that need to
>> be
>> updated by the installer (for example a .doc opened in Word), and switch
>> to
>> the main window of that program.
>
> Again, part of the restart manager support/mutex check.
I'm not sure what are you talking about.
My code works with programs that are not services, and in Windows before
Vista.
>
>> 6) Terminating the process if the program to reinstall is running but not
>> responding.
>
> Never a good idea to do automatically, Inno leaves it to the user or
> recommends a reboot.
Yes, I prompt the user to click a button.
>
>> 7) New and better looking uninstaller that wraps the older one and hide
>> its
>> ugly windows.
>> 8) Better looking GUI, not covering all the screen.
>
> No need, Inno looks hotter than all others :p
> And full screen setups went out of fashion with PDW :p
I see it very standard (may be there is a new version that I don't know).
Also, every installer looks more or less the same, they are clones.
>
>> 9) Tell the user if the files to be updated are opened by other users
>> sessions on the machine.
>
> Again, same as 4 and 5.
>
> Oh, and the font installation works.
Mine too now.
>
> Just give it a go :)
I don't need to spend time on it at this time (and I prefer mine).
Mine has also another advantage: I create the package with VB PDW, and the
only change is to change the setup1.exe, that if it's copied in the VB
folder, it's automatic.