Tuesday, February 17, 2009
« SQL Profiler in SQL Express | Main | Working through "The media is write prot... »

Years ago I created an InstallShield (InstallScript) installer for some software that I've maintained over the years.  While the installer has been run countless times (successfully, I might add), I recently witnessed the following error message:

An error (-5006 : 0x80070002) has occurred while running the setup.

Please make sure that you have finished any previous setup and closed other applications.

This usually happens after installing a related, but completely stand-alone and distinct product.  After a reboot (having supposed that the previous setup didn't completely finish) we get the same error message.  It turns out, that the error would occur whether or not the previous application had been installed.

Well, long story story short, I figured out that the reason this error message was cropping up was because the software was being installed on a Terminal Server.  In order to install some (not all) software on a Terminal Server, you must first put the server in Install mode, then run the installer (via the Control Panel), and then put the server back into its default Execute mode:

1. From the Command Prompt, type the following command:  change user /install.
2. Install the software via Add/Remove Programs in the Control Panel.
3. When complete, type change user /execute from the command prompt.

While I'm not a systems guy, this leads me to wonder why I had to do this for my installer (which I wrote with InstallScript) but I don't for other installers.  Perhaps there's a switch I can set or a script I can invoke that will do this automatically?  I must investigate.

Tuesday, February 17, 2009 9:47:23 AM (Mountain Standard Time, UTC-07:00)  #    Disclaimer  |  Comments [2]  |  Trackback Related posts:

Wednesday, April 22, 2009 3:24:31 PM (Mountain Standard Time, UTC-07:00)
You can also use the "Add New Programs" button (on the left in the add/remove programs dialog box). It does the same thing as the "change user" command.

Derek
Sunday, May 31, 2009 12:26:42 AM (Mountain Standard Time, UTC-07:00)
Give please. You never know till you try to reach them how accessible men are; but you must approach each man by the right door.
I am from Zaire and bad know English, give true I wrote the following sentence: "Listing of manufacturers,distributors,dealers,retailers,agents,importers and exporters of drugs."

Thank you very much :). Desmond.
Comments are closed.