PDA

View Full Version : Uninstall doesn't work if installed silently..



krishnap
08-01-2011, 12:12 AM
I have built a simple installer that is created using InstallAnywhere's console template. Then I installed that Silently on Windows.
Now I try to uninstall that but it throws exception and can't uninstall it in any of three means like silent,console,GUI.

Exception is as follows(Product registry is already there):
ZeroGb0: Unable to load product from registry. Product ID: 2efcaa0f-1f02-11b2-84ed-b3af4aa549ef
at com.zerog.ia.installer.uninstall.DescriptorList.i(DashoA10*..)
at com.zerog.ia.installer.uninstall.DescriptorList.a(DashoA10*..)
at com.zerog.ia.installer.LifeCycleManager.o(DashoA10*..)
at com.zerog.ia.installer.LifeCycleManager.g(DashoA10*..)
at com.zerog.ia.installer.LifeCycleManager.b(DashoA10*..)
at com.zerog.ia.installer.LifeCycleManager.a(DashoA10*..)
at com.zerog.ia.installer.Main.main(DashoA10*..)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.zerog.lax.LAX.launch(DashoA10*..)
at com.zerog.lax.LAX.main(DashoA10*..)
The uninstallation could not complete due to an error.

Please advise any workaround.
This happens both in InstallAnywhere 2010 and InstallAnywhere 2011 SP1 on Windows.This doesn't happen on other platforms.

Thanks,
Krishna

madhavbantwal
08-01-2011, 05:07 AM
Hi Krishna,

Request you to either post a sample project replicating your configuration or mention your configuration.

We are not able to reproduce this.

Steps:

1. Create a Console project
2. Navigate to Project-->Log settings and enabled install and uninstall log
3. At install phase added some file as payload
4. Build the console project
5. Installed it silently <path_Install_to_exe>install.exe -i silent
6. Navigate Product installed location and tried uninstalling it silently

and uninstallation was successful.

Could you also mention which Version of windows operating system your facing this problem?

I Also request you to clean up your local temp as well as .com.zerog.registry.xml file from C:\Program Files\Zero G Registry\
prior to running your installer.



Thanks,
Madhav Pai
Installanywhere-Engineering
Flexera Software.

krishnap
09-16-2011, 06:37 AM
I am sorry for the late reply and thanks much for the reply.

I have tried romoving the file under the Program Files\Zero G Registry\ before installing and still uninstall couldn't be performed.


The installers that I am building are exe and jar.
Attached file conatins installer design file and installer properties file.
Installer are built on Windows 7 64 bit machine with InstallAnywhere 2011 SP1 with Java 1.6.

While installing I have invoked from command as >install.exe -i silent -f installer.properties

While trying to uninstall incase of EXE installer installed following is the error and inacse of JAR installer installed it simply hangs:

java.lang.IllegalArgumentException: No product for ID=79292e2c-1f03-11b2-a68e-b3af4aa549ef
at ZeroGgw.<init>(DashoA10*..)
at ZeroGf8.c(DashoA10*..)
at ZeroGf8.e(DashoA10*..)
at ZeroGf7.<init>(DashoA10*..)
at com.zerog.ia.installer.Installer.ad(DashoA10*..)
at com.zerog.ia.installer.Installer.setMetadata(DashoA10*..)
at com.zerog.ia.installer.InstallerMetaData.setInstaller(DashoA10*..)
at com.zerog.ia.installer.LifeCycleManager.o(DashoA10*..)
at com.zerog.ia.installer.LifeCycleManager.g(DashoA10*..)
at com.zerog.ia.installer.LifeCycleManager.b(DashoA10*..)
at com.zerog.ia.installer.LifeCycleManager.a(DashoA10*..)
at com.zerog.ia.installer.Main.main(DashoA10*..)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.zerog.lax.LAX.launch(DashoA10*..)
at com.zerog.lax.LAX.main(DashoA10*..)


This is blocker issue and looking forward for your help.

SunnyBoy
09-27-2011, 07:09 AM
When running an uninstaller of the installed product created by InstallAnywhere, a java exception similar to one shown above can potentially occur. One possible reason for this exception is if the installer is run from the command prompt that specifies a path to the USER_INSTALL_DIR directory as shown below:

install.exe -i console -DUSER_INSTALL_DIR=C:/test

where in the above command, test is a folder in the C drive in Windows where the product is to be installed.

In this case, running the uninstaller of the installed product as follows:

uninstaller.exe -i console

or

uninstaller.exe

will result in the above exception.

In Windows, the backward slash ‘\’ is used as a directory separator when specifying a path to a file/folder. In the above case, since USER_INSTALL_DIR is specified with the use of a forward slash ‘/’, it results in this exception. Using the forward slash in the path for the USER_INSTALL_DIR doesn’t fail the installation itself. However, using the forward slash will cause the above exception during the uninstall time.

Regards
SunnyBoy