Cancelling the installation.

Got a problem you cannot solve? Try here.
Post Reply
armanDJ
Posts: 2
Joined: Fri Apr 20, 2007 3:40 am

Cancelling the installation.

Post by armanDJ »

Hello,

I'm trying to run a custom registration utility during my product installation. What I need to do is to Cancel the installation in case if registration utility fails, preferable prior files are unpacked into target directory. I tried using Run Program command and store the result into variable, if result is error then I do Terminate Installation command. My problem is that Run Program does not work prior Apply Install, so I have to run my registration utility after files are already deployed. When installation gets terminated all files remain on the user PC making the registration requirement pointless.

Can you suggest how can I run a registration utility prior files are deployed on the user PC or how can I reliably rollback the installation in case if registration fails?

WBR,
Arman
bokkie
Posts: 767
Joined: Sun Feb 08, 2009 6:30 am

Re: Cancelling the installation.

Post by bokkie »

I find that unusual. The Run Program... plug-ins run immediately. Did you try putting your utility in a File Bag? That way it's usable without it having to be installed first.
Peter. Smartly dressed, he still resembles an unmade bed.
InstallAware MVP
mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: Cancelling the installation.

Post by mills »

You may also want to wrap your actual program installer inside another setup that does the registration verification which calls the actual installer if registration is valid.
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.
Post Reply