-
Cancel install
Hi Friedrich,
Is there any way to take actions in the script if the install is cancelled?
In one of my installs I check/write to a file at the beginning of it that
under certain circumstances I need to undo if the install is cancelled. Any
ideas on how to accomplish that?
Best regards,
--
Arnór Baldvinsson - Icetips Alta LLC
Port Angeles, Washington
www.icetips.com - www.buildautomator.com - www.altawebworks.com
Icetips product subscriptions at http://www.icetips.com/subscribe.php
-
Re: Cancel install
Set a flag where the code would only get touched on the final dialog?
So if aborted, it never gets set?
Jeff Slarve
-
Re: Cancel install
Jeff,
> Set a flag where the code would only get touched on the final dialog?
> So if aborted, it never gets set?
I was going to suggest something similar but where in the script does
Arnor's undo get processed when the script is cancelled?<g>
--
Lee White
RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com
Enhanced Reporting: http://www.cpcs-inc.com
-
Re: Cancel install
> I was going to suggest something similar but where in the script does
> Arnor's undo get processed when the script is cancelled?<g>
That "other" product I used before, which will remain nameless<g>, had
an exit point where you could add script for cancelled processing.
--
Lee White
RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com
Enhanced Reporting: http://www.cpcs-inc.com
-
Re: Cancel install
Hi Jeff,
> Set a flag where the code would only get touched on the final dialog?
>
> So if aborted, it never gets set?
Sure, but the question is where the heck do you put that code to execute...
Best regards,
--
Arnór Baldvinsson - Icetips Alta LLC
Port Angeles, Washington
www.icetips.com - www.buildautomator.com - www.altawebworks.com
Icetips product subscriptions at http://www.icetips.com/subscribe.php
-
Re: Cancel install
Arnor,
> Sure, but the question is where the heck do you put that code to execute...
I guess you -could- call an install from inside another install and
use Exit Installation in the called script to determine if it was
cancelled, ie: if NOT cancelled return an exit value.
In the parent you could do your setup and depending on the returned
value from the child install undo it before exiting the parent.
--
Lee White
RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com
Enhanced Reporting: http://www.cpcs-inc.com
-
Re: Cancel install
Oh.
MySetup.Destruct<g>
Jeff Slarve
-
Re: Cancel install
-
Re: Cancel install
-
Re: Cancel install
> I guess you -could- call an install from inside another install and
I thought that was a viable workaround. Oh well.<g>
--
Lee White
RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com
Enhanced Reporting: http://www.cpcs-inc.com