General question concerning the single 'Apply Install'.
Posted: Sun Jul 05, 2009 7:56 am
Hi,
I have a question relating to install procedures. I guess it is a general question concerning whether the 'Apply Install' statement has to be treated in an all-or-nothing way, or can an install happen in steps.
First the description of an example installer for discussion.
The installer installs files to a subdirectory, installs an NT service that uses one of those files, and modifies a config file so the service works correctly. The first two parts depend on a single 'Apply Install' statement. The trouble is that if something goes wrong with installation of the service, which is the more error-prone action, the whole install fails, no files are copied either. The LastError variable has only "Installation failed" in it. This installer is doing only 2 things so it is possible to work around the rather weak error message and deduce where the problem lies, but in a more complicated installer containing many install-level statements a single Apply Install could be a mystery if one thing doesn't install right. In the example above is it possible to do these two install actions separately, or in stages in the same installation, yet when everything goes well, they are both undone at the same time when uninstalling the product?
Thanks in advance.
I have a question relating to install procedures. I guess it is a general question concerning whether the 'Apply Install' statement has to be treated in an all-or-nothing way, or can an install happen in steps.
First the description of an example installer for discussion.
The installer installs files to a subdirectory, installs an NT service that uses one of those files, and modifies a config file so the service works correctly. The first two parts depend on a single 'Apply Install' statement. The trouble is that if something goes wrong with installation of the service, which is the more error-prone action, the whole install fails, no files are copied either. The LastError variable has only "Installation failed" in it. This installer is doing only 2 things so it is possible to work around the rather weak error message and deduce where the problem lies, but in a more complicated installer containing many install-level statements a single Apply Install could be a mystery if one thing doesn't install right. In the example above is it possible to do these two install actions separately, or in stages in the same installation, yet when everything goes well, they are both undone at the same time when uninstalling the product?
Thanks in advance.