PDA

View Full Version : unwanted 'rollback'



NewsArchive
05-13-2008, 01:58 AM
I am attempting a small upgrade using SB, over an existing installation.

I have this notification of some failures:
"He told me that during the upgrade, it started off well. Then there was an
error message pops up; which he can't remember. The system then asked him if
he wants to do a "Roll Back". Unfortunately he clicked "YES" and lost many
files in the SM directory."

Question: why is THIS upgrade rolling back a previous installation?
How can I prevent this?

Steve Bywaters

NewsArchive
05-13-2008, 01:59 AM
Steve,

General Information -> Advanced Settings -> Disable Rollback After Failed
Installation -> YES

Hope this helps.

Friedrich

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

"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
05-13-2008, 02:00 AM
But why does *this* upgrade rollback a PREVIOUS installation?

Surely each upgrade knows which files it added/changed, and doesn't go
looking for previous installations to undo?

Steve Bywaters

NewsArchive
05-13-2008, 02:00 AM
Steve,

> But why does *this* upgrade rollback a PREVIOUS installation?
>
> Surely each upgrade knows which files it added/changed, and doesn't go
> looking for previous installations to undo?

Because you have the same uninstall name for the previous version and the
update?

Friedrich

NewsArchive
05-13-2008, 02:01 AM
> Because you have the same uninstall name for the previous version and the
> update?

Naturally- that is what I would assume would be the correct way to go, thus
keeping a 'log' of all installations and further upgrades.
Of course, this would require separating each installation via a
boundary/phase/date.. let me guess - this isn't how SB works?
Hmm.. that would be a lot neater than many .LOG and Uninstall EXEs lying
around with different names... ($0.02)

Nevertheless - you've given me the reason for failure, I think... so thank
you

Steve

NewsArchive
05-13-2008, 05:19 AM
Steve,

I would suggest to wait for the next SetupBuilder 6 maintenance build before
you make permanent changes to your script.

We'll port some code back from SetupBuilder 7 to SetupBuilder 6 that handles
this "rollback" scenario. If an install (in your case an update with the
same uninstall .exe/.log) fails and the installer asks for a "rollback" then
it will not uninstall the complete version any longer.

Friedrich

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

"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
05-13-2008, 05:20 AM
Friedrich,

I believe I recall a user comenting posititively on the ability to do
incremental uninstalls with some earlier version of SB, so I made the same
assumption as Steve.

Can I implement this incremental uninstall and rollback simply by embeding
[PRODUCTVER] in [UNINSTALL] and [UNINSTALL_LOG]?

Will each version be displayed in the Add/Remove Programs dialog or must I take
some additional steps to properly display uninstalls? Ideally the user should
have the option of a full uninstall or of incrementally uninstalling, right?

Greg Fasolt

BTW, This strikes me as a highly desirable feature that would benefit many, if
not most, SB users. Please consider this a feature request as well as a request
for expert advice ;)

[X] Incremental Uninstall and Rollback

NewsArchive
05-13-2008, 05:21 AM
Greg,

> I believe I recall a user comenting posititively on the ability to do
> incremental uninstalls with some earlier version of SB, so I made the same
> assumption as Steve.
>
> Can I implement this incremental uninstall and rollback simply by embeding
> [PRODUCTVER] in [UNINSTALL] and [UNINSTALL_LOG]?
>
> Will each version be displayed in the Add/Remove Programs dialog or must I
> take some additional steps to properly display uninstalls? Ideally the
> user should have the option of a full uninstall or of incrementally
> uninstalling, right?
>
> Greg Fasolt
>
> BTW, This strikes me as a highly desirable feature that would benefit
> many, if not most, SB users. Please consider this a feature request as
> well as a request for expert advice ;)
>
> [X] Incremental Uninstall and Rollback

By default, SetupBuilder supports incremental uninstall. For example, you
install version 1.0, 1.1, 1.2, etc. and all versions make use of the same
uninstall .exe and .log. If uninstall is executed, 1.2, 1.1, 1.0 is
uninstalled. You can disable this by enabling the "Overwrite Existing
Uninstall Application" option in the "Set Installation Log Mode..."
function.

To support incremental rollback, you have to create a unique uninstall
..exe/.log for each new build (that's what the Clarion install is doing for
more than six or seven years now). For example, 1.0, 1.1, 1.2. All three
versions have a unique uninstall .exe and .log. You have to add your own
logic (if required) to make sure that 1.1 is not uninstalled before 1.2.

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

"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
05-14-2008, 02:21 AM
> I would suggest to wait for the next SetupBuilder 6 maintenance build
> before you make permanent changes to your script.

Too late, mate - I had a very vexed IT support guy (who was getting lots of
calls about my failing upgrade) ... had to do the fix quick-smart! <BG>

Sounds good tho'.

Steve Bywaters

NewsArchive
05-14-2008, 02:21 AM
> Too late, mate - I had a very vexed IT support guy (who was getting lots
> of calls about my failing upgrade) ... had to do the fix quick-smart!
> <BG>
>
> Sounds good tho'.

:)

We have ported the "smart rollback" code from SetupBuilder 7 to SetupBuilder
6 now. This will be part of the next build (scheduled to be released on
next Friday).

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

"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
05-15-2008, 01:35 AM
Thanks again, Friedrich!

Greg Fasolt