hallolu
Posts: 22
Joined: Mon Dec 06, 2010 8:03 am

Uninstall Oracle AND install new installation

Hello,

I have 2 problems...
at first:
I want to uninstall oracle silent. So i created a "New attached Custom Action" with the OracleXEUniv.exe (the setup of oracle) and in the Command Line I put the following: "/s /f1"c:\xe_temp\response\OracleXE-Remove.iss" /f2"c:\xe_temp\setup.log""
Everytime i launch it, there comes that there is an error with the programm (also in the verbose log). Why? If i lauch it from the windows commandline (cmd) it works.


The second problem:
How can i start a new installation over the (same) existing one in the Maintenance? Is this the "repair"?
Executes the "repair" also the SQL-Scripts?
I want to replace my existing installation with the same one.

all the best, hallolu :wink:
hallolu
Posts: 22
Joined: Mon Dec 06, 2010 8:03 am

Re: Uninstall Oracle AND install new installation

Hello,

the first problem with the oracle-installation:
How does a Custom-Action launch an executable?
Because: Whenn i launch oracle without parameters there is an error with the "InstallShield Scripting Runtime".
It's only if i launch it from the AdvancedInstaller.

Does the AdvancedInstaller uses the "InstallShield scripting Runtime"? (Maybe the Runtime can not used by 2 installations)
all the best, hallolu :wink:
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Uninstall Oracle AND install new installation

Hello,
Everytime i launch it, there comes that there is an error with the programm (also in the verbose log). Why?
This can happen if you are trying to run two MSI based installer processes at the same time( you scheduled the custom action somewhere in the InstallExecuteSequence ). A solution in this case would be to schedule it somewhere in the InstallUISequence or after the InstallFinalize standard action.
How can i start a new installation over the (same) existing one in the Maintenance? Is this the "repair"? Executes the "repair" also the SQL-Scripts? I want to replace my existing installation with the same one.
If the scripts don't have any conditions then they will be executed on all install modes, including the Repair. Can you please be more specific about how and why are you trying to run the repair? The Repair mode is automatically triggered by running a package in silent mode when the same package is already installed on the target machine.
How does a Custom-Action launch an executable?
You can do this with a "Launch File or Open URL" predefined custom action or by adding the .EXE as an "Attached Custom Action".
Does the AdvancedInstaller uses the "InstallShield scripting Runtime"? (Maybe the Runtime can not used by 2 installations)
Not it does not. Windows Installer doesn't support two install processes running at the same time. The error is shown by the Oracle package which is probably built using InstallShield, most likely for the same reason I described in my first answer.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hallolu
Posts: 22
Joined: Mon Dec 06, 2010 8:03 am

Re: Uninstall Oracle AND install new installation

A solution in this case would be to schedule it somewhere in the InstallUISequence or after the InstallFinalize standard action.
If i scheudle it after the InstallFinalize standard action it doesn't work because i get the same error.
The InstallFinalize is the last action in the InstallExecuteSequence so i scheudle my action under it. Is this okay?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Uninstall Oracle AND install new installation

Hello,
"/s /f1"c:\xe_temp\response\OracleXE-Remove.iss" /f2"c:\xe_temp\setup.log""
Can you please remove the first and last quote from the arguments above and see the result? The entire line of arguments from the command line field should not be included in quotes.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hallolu
Posts: 22
Joined: Mon Dec 06, 2010 8:03 am

Re: Uninstall Oracle AND install new installation

Can you please remove the first and last quote from the arguments above and see the result? The entire line of arguments from the command line field should not be included in quotes.
The result is the same.
I tried it also without parameters and it's the same problem. <-- The program starts but when it ends because the AI-installation is already running.(If i execute the oracle-setup without AI it works)
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Uninstall Oracle AND install new installation

Hi,

What is the exact error you are receiving? Also, does the custom action need Administrator privileges? If it does, please set it as "Deferred with no impersonation" in Custom Action Properties pane. This option can be set only for custom actions scheduled between InstallInitialize and InstallFinalize.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hallolu
Posts: 22
Joined: Mon Dec 06, 2010 8:03 am

Re: Uninstall Oracle AND install new installation

Hello,

the excat error:

Code: Select all

1607:Unable to install InstallShield Scripting Runtime
I scheudle my custom action there:
Image

Ant this are the Execution Properties:
Image
If i set it on "Asynchronous execution, do not wait for return" it works, but i want to wait until the installation ends.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Uninstall Oracle AND install new installation

Hi,

So it's a conflict with the MSI installation.

Unfortunately there's not much you can do from the MSI to wait for the install to finish. However, if you want to perform some actions after the custom action is finished, you can try this approach:
- create a custom EXE which launches the Oracle setup file and waits for it to finish
- this custom EXE can also perform the actions you need because it waits for the setup
- use this EXE as a custom action instead of the Oracle setup

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”