PDA

View Full Version : Rollback Yes or No



NewsArchive
03-31-2010, 02:14 AM
Hi all,

My installation detects if the application has previously been installed and
if so it needs to move several files and folders to new locations. In some
cases I am moving files using wildcards and in other cases I am moving an
entire directory tree.

There are a couple of questions I need to ask in order to wrap my head
around what is going on.

When I create the installation log file I am a bit confused exactly what I
should expect to happen if I check the property "Overwrite Existing
Uninstall Application". Is the existing log file going to be overwritten or
updated? ( see screenshot)

If either the "Move Local File(s)" or the "Move Folder Tree" function fails
in any way is the installation automatically terminated and a rollback
initiated?

If midway through an installation I decide that, for whatever reason, I need
to terminate the installation. the only way out I have been able to find is
through the "Exit Installation" function. Does terminating the install using
this function invoke a rollback of everything previously logged in the
uninstall log file? The docs say:

<snip>
All standard runtime library procedures for application closedown are
performed (all open windows and files are closed and flushed and all
allocated memory is returned to the operating system) without executing any
further installer code in the application.
</snip>

Nothing is mentioned regarding a roll back.

Thanks.

--
Regards,

Lee
http://www.cya2day.com

NewsArchive
03-31-2010, 02:14 AM
Lee,

The "Overwrite Existing Uninstall Application" always creates a new
uninstall .exe ("application"). If this option is not checked, the old
uninstall .exe is not touched. An existing uninstall .log is always
updated, never overwritten.

This "Overwrite Existing Uninstall Application" option is important if you
have a custom uninstall and you updated the code.

If a rollback is initiated, the installer automatically performs a (smart)
rollback (only uninstalls the last logged changes). Only the "Install File"
function can initiate a rollback. Errors in "Move Local File(s)" or "Move
Folder Tree" never initiate a rollback.

BTW, we'll add this to the documentation.

HTH,
Friedrich

NewsArchive
03-31-2010, 02:15 AM
Hi Friedrich,

Thanks for the quick explanation.

More question then....

Are the results of Move Files and Move Folders recorded in the uninstall
log?

Does a "Smart Rollback" put them back in their original place?

Thanks

--
Regards,

Lee
http://www.cya2day.com

NewsArchive
03-31-2010, 02:15 AM
Hi Lee,

> Thanks for the quick explanation.
>
> More question then....
>
> Are the results of Move Files and Move Folders recorded in the uninstall
> log?
>
> Does a "Smart Rollback" put them back in their original place?

If you have the "Remove on Uninstall" option checked, then the smart
rollback feature will put the files back in their original place.

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder is Windows 7 installation -- "point. click. ship"

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
04-01-2010, 02:13 AM
BTW, if you do an "Exit Installation..." (e.g. after you detected an error
in one of your script functions), then the rollback is also initiated.

Friedrich

NewsArchive
04-01-2010, 02:14 AM
Hi Friedrich,

Thanks.....

This is the one I was really after. Perhaps that would be worth mentioning
in the docs, in addition to everything else that happens.

I just need to determine where/when I need to intervene with my own script
under certain conditions.

--
Regards,

Lee
http://www.cya2day.com