MD 17.0.4 silent uninstallation automatic reboot

Discussions about Java virtual machine, installation, and running

Moderator: Moderators

MD 17.0.4 silent uninstallation automatic reboot

Postby silotia.laurent » Fri Mar 25, 2016 4:00 am

Hi,

Currently, I use MD 17.0.4 (on W7 64bits) and I do a silent install of MD to limit UI interactions
Surprisingly, when I do the MD uninstall, I don't have any GUI, because of my installation way (= no GUI)

I search into the "uninstall.jar" include in MD directory, I saw the file "uninstaller.properties" and it content

Code: Select all
#InstallAnywhere Uninstaller Properties. DO NOT EDIT
#Fri Mar 25 09:34:32 CET 2016
jrePath=D:/plateforme_MDx_R/jre
userInstallDir=D:/plateforme_MDx_R
InstallerTitle=MagicDraw Reader 17.0.4 SP2
uninstallerComponentId=90beaee9-1ec0-11b2-957e-98de19e4bef3
ProductName=MagicDraw Reader 17.0.4 SP2
neverRestarts=false
splashScreenGUIImage=$IA_PROJECT_ROOT$/images/startup.gif
product_id=90bea55e-1ec0-11b2-954b-98de19e4bef3
defaultUIMode=Silent
version=17.0.4.0
defaultlocale=en
locale=fr
asksUserAboutRestart=true
splashScreenGUITitle=
uninstallerDirDepth=1
featureUninstallEnabled=true


I try to overwrite some keys/values on the fly by using "-DdefaultUIMode=GUI" or "-DneverRestarts=true" at the end of "Uninstall*.exe", but nothing seem to considerate when the uninstall began

Where couldn't I found a specification/documentation to help me to change properties settings in MD uninstall process ?

Thanks in advance for your answer
Best regards,
Laurent SILOTIA
silotia.laurent
Forum Beginner
Forum Beginner
 
Posts: 34
Posts Rating:2
Joined: Fri Mar 25, 2016 3:36 am

Re: MD 17.0.4 silent uninstallation automatic reboot

Postby robiva » Fri Mar 25, 2016 6:29 am

Hello, you can use USER_REQUESTED_RESTART=NO as argument to avoid reboot after silent uninstall.

example: c:\myuninstall.exe -i silent -DUSER_REQUESTED_RESTART=NO

Sincerely,
No Magic, Inc. Customer support
robiva
Forum Newbie
Forum Newbie
 
Posts: 4
Posts Rating:0
Joined: Fri Mar 25, 2016 6:10 am

Re: MD 17.0.4 silent uninstallation automatic reboot

Postby silotia.laurent » Fri Mar 25, 2016 7:06 am

Hi,

I try your command to not reboot at the end of silent uninstall ... but, I got a JAVA exception
Code: Select all
java.lang.IllegalArgumentException: No product for ID=90bea55e-1ec0-11b2-954b-98de19e4bef3
   at Flexeraamx.<init>(Unknown Source)
   at Flexeraam5.ai(Unknown Source)
   at Flexeraam5.ab(Unknown Source)
   at Flexeraam6.<init>(Unknown Source)
   at com.zerog.ia.installer.Installer.bp(Unknown Source)
   at com.zerog.ia.installer.Installer.setMetadata(Unknown Source)
   at com.zerog.ia.installer.InstallerMetaData.setInstaller(Unknown Source)
   at com.zerog.ia.installer.LifeCycleManager.a1(Unknown Source)
   at com.zerog.ia.installer.LifeCycleManager.ap(Unknown Source)
   at com.zerog.ia.installer.LifeCycleManager.consoleInstallMain(Unknown Source)
   at com.zerog.ia.installer.LifeCycleManager.executeApplication(Unknown Source)
   at com.zerog.ia.installer.Main.main(Unknown Source)
   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(Unknown Source)
   at com.zerog.lax.LAX.main(Unknown Source)


My MD install is in 17.0.4, is your command compatible with this version of the product ?

Thanks for your answer
Best regards,
Laurent SILOTIA
silotia.laurent
Forum Beginner
Forum Beginner
 
Posts: 34
Posts Rating:2
Joined: Fri Mar 25, 2016 3:36 am

Re: MD 17.0.4 silent uninstallation automatic reboot

Postby robiva » Tue Mar 29, 2016 1:27 am

Hello,

Yes command is compatible with this version of the product. I was able to reproduce exception and it looks like this exception is caused by using forward slash ‘/’ in installation process (from your uninstaller properties "userInstallDir=D:/plateforme_MDx_R").

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.

Sincerely,
No Magic, Inc. Customer support
robiva
Forum Newbie
Forum Newbie
 
Posts: 4
Posts Rating:0
Joined: Fri Mar 25, 2016 6:10 am

Re: MD 17.0.4 silent uninstallation automatic reboot

Postby silotia.laurent » Tue Mar 29, 2016 2:35 am

Hi,

I try your suggestion about the slash used in my installation path, so I reinstall my product and replace "/" by "\"
From my install dir "D:\plateforme_MDx_R\reader", When I use from my command prompt (W7) this instruction :
Code: Select all
"Uninstall MagicDraw Reader.exe" -i silent -DUSER_REQUESTED_RESTART=NO"

The uninstaller deletes only :
  • D:\plateforme_MDx_R\reader\UninstallerData\resource
  • D:\plateforme_MDx_R\reader\UninstallerData\.com.zerog.registry.xml
  • D:\plateforme_MDx_R\reader\UninstallerData\InstallScript.iap_xml
  • D:\plateforme_MDx_R\reader\UninstallerData\installvariables.properties
  • D:\plateforme_MDx_R\reader\UninstallerData\Uninstall MagicDraw Reader.exe
  • D:\plateforme_MDx_R\reader\UninstallerData\Uninstall MagicDraw Reader.lax
  • D:\plateforme_MDx_R\reader\UninstallerData\uninstaller.jar

Many files are remaining in the install directory, and many keys in registry are remaining too...

Maybe, the instruction advised needs some required conditions to work (?)

Thanks for your answer
Best regards,
Laurent SILOTIA
silotia.laurent
Forum Beginner
Forum Beginner
 
Posts: 34
Posts Rating:2
Joined: Fri Mar 25, 2016 3:36 am

Re: MD 17.0.4 silent uninstallation automatic reboot

Postby robiva » Tue Mar 29, 2016 5:18 am

Hello,

After reinstall, please reboot pc, then silent uninstall with no reboot option will work correctly. After uninstall process, 2 folders will remain, till next system boot.


Sincerely,
No Magic, Inc. Customer support
robiva
Forum Newbie
Forum Newbie
 
Posts: 4
Posts Rating:0
Joined: Fri Mar 25, 2016 6:10 am

Re: MD 17.0.4 silent uninstallation automatic reboot

Postby silotia.laurent » Wed Mar 30, 2016 1:43 am

Hi,

I try your last suggestion to get it works, but nothing neither...
I take a look in "uninstaller.jar" available in "UninstallerData" directory, and no string reference "USER_REQUESTED_RESTART" was found
Maybe, the uninstaller doesn't use the parameter "USER_REQUESTED_RESTART" correctly

Currently, I will slowdown my install/uninstall scripting of MD, because I lose (some) times on the uninstall part
If you got something new to share, I will answer with some time delay

Thanks for your comprehension
Best regards,
Laurent SILOTIA
silotia.laurent
Forum Beginner
Forum Beginner
 
Posts: 34
Posts Rating:2
Joined: Fri Mar 25, 2016 3:36 am


Return to Installing and running

Who is online

Users browsing this forum: No registered users and 0 guests