Patch update cancel

Got a problem you cannot solve? Try here.
SITL
Posts: 116
Joined: Tue Sep 27, 2016 12:31 am

Patch update cancel

Postby SITL » Tue Aug 01, 2017 6:55 am

Dear Francesco,
Thanks for your help.
Issue:
If the patch update got cancelled (Because of insufficient space), user will not be able to update the patch afterwards.
Product assumes that the patch has been installed.

How do i update the installedupdates.dat file maintained by InstallAware ?

NOTE:
I'm getting couple of CANCEL related issues.
I feel some of the issues depends on at what stage (of Installation/UnInstallation ) they CANCELLED.
Question:What if the installation is cancelled when it is almost done ? what is the expected behavior ?

Please share your thoughts.
Regards
SITL

FrancescoT
Site Admin
Posts: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: Patch update cancel

Postby FrancescoT » Wed Aug 02, 2017 10:06 am

Dear SITL,

the "installedupdates.dat" file gets managed by the "update script". You can modify or customize it as you prefer. The InstallAware Web Update mechanism its entirety based on the "update script MSIcode", accessible directly in the script editor. So you can always custom tailor aspects of the system, minor or major, to suit your own needs - simply by editing the pre-built dialogs and scripts.

For example:

- from the setup served as update, you may store a value somewhere on the target system to keep track if this completed successfully. Then from the Update script, you may verify the stored value before updating "installedupdates.dat" file.

- alternatively, you may return error codes from your setups ("Terminate with Exit Code" command) and then you may handle these codes conditionally from the Update Script.

Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

SITL
Posts: 116
Joined: Tue Sep 27, 2016 12:31 am

Re: Patch update cancel

Postby SITL » Tue Aug 08, 2017 6:31 am

Dear Francesco,
Thanks for your help.
This is regarding Main Installer (NOT Patch).

Problem:
when the installation is almost over, after shortcuts are created,
just before the Apply install, if the user clicks CANCEL, we'll get into serious problems.

I understand, you have already given lot of solution.
Since it's our first live project with InstallAware, i need your advice on the following solution.

Can i have following code just before ApplyInstall.
(if cancel, set REMOVE=TRUE & call Apply UnInstall then terminate)

~InstallAware Clipboard Data~
~End~
~{BC8745ED-F141-4F06-B41B-9720F3BB2D7F}~
~Terminate Install~
~{D9139A75-8793-4D58-890A-91B4EA5FB6DC}~
~Apply Changes~
~{3BBF9AB0-123C-4B29-9647-DA3AEBB3EAD1}~
~progress~
~SUCCESS~
~FALSE~
~TRUE~
~Set Variable~
~{A2583A83-B94D-4DD2-B853-51BB51E3347A}~
~REMOVE$MYAH$MYAH$FALSE~
~TRUE~
~If~
~{794C930E-EB67-42C7-A59A-3DF6B29FBF9B}~
~WIZARD~
~0~
~CANCEL~
~FALSE~

Any other thoughts ? please share.
Even the above solution is not working.
Appreciate your idea.
Regards
SITL

FrancescoT
Site Admin
Posts: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: Patch update cancel

Postby FrancescoT » Tue Aug 08, 2017 9:44 am

Dear SITL,

honestly, I don't understand which are the serious problem you seem to have.

For sure you cannot use that portion of code before Apply Install statement. This because it's the Apply Install statement, that finalizes the MSI installation and due of this, it's not possible to UnInstall something that has not been installed yet.

Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

SITL
Posts: 116
Joined: Tue Sep 27, 2016 12:31 am

Re: Patch update cancel

Postby SITL » Wed Aug 09, 2017 1:26 am

Dear Francesco,
Thanks for your help.
We have released our product to selected customers.
Except CANCEL, Everything seems to be working fine.
CANCEL issue was found at a later stage,
we did not think that it's going to be so serious issue.

Serious problems, one of them is Machine are crashes.
Couple machines died in our QA team that we could not repair.
Two machines we got it formatted in our development group (including mine), and we are able to use them.
And other problems to put it in one line - we are seeing unpredictable behavior of our systems.
( I think, windows installer is getting corrupted, I'm NOT sure).

Solution part:
1. Can i have this line -
If cancel, terminate installation.
Just before Apply install.
2. Other than that, i have no idea !

3. I think it's easily reproducible, I hope you will get some resolution.

4.The moment user clicks on Install, How to disable CANCEL ?
( For the time being, if possible, please suggest how to do this... )

Appreciate your advice.

Regards
SITL

FrancescoT
Site Admin
Posts: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: Patch update cancel

Postby FrancescoT » Thu Aug 10, 2017 8:38 am

Dear SITL,

I am not able to reproduce any issue, honestly.

At any rate, if you want to disable a dialog control, just open the dialog resource into the Dialog Editor and then modify the control property (enable/disable ...or any other property) as you prefer.

Alternatively, you can also handle the state of control using a script variable. For an example, please have a look at the following link.
https://www.installaware.com/forums/viewtopic.php?f=2&t=9344&hilit=disable+button


Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

SITL
Posts: 116
Joined: Tue Sep 27, 2016 12:31 am

Re: Patch update cancel

Postby SITL » Wed Aug 16, 2017 4:52 am

Dear Francesco,
Thank you very much.
I disabled the CANCEL button.

Regards
SITL


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 48 guests