/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


How to execute DEINSTALL_LIST in VB script?

07/10/2017 686 views
Hi , I am working on Oracle application , in that i need to pass DEINSTALL_LIST parameter for uninstallation.

"C:\p4096620_9041_WINNT\wfclient2635\install\setup.exe" -silent -deinstall DEINSTALL_LIST={"oracle.workflow.builder","2.6.3.5.0"} ORACLE_HOME=C:\Oracle\WFB2.05\Orahome_1 ORACLE_HOME_NAME=oracleas1 

the above is the cmd command , but if i try it in script it is not accepting the special characters. Can some one please how to solve this issue . 

0 Comments   [ + ] Show comments

Comments


All Answers

1
What do you mean by "not accepting the special characters". Can you post your VBS code?

In my opinion it should be something like this (or with chr(34) insted of ""):
set oSH = CreateObject("Wscript.Shell")

strCommand = """C:\p4096620_9041_WINNT\wfclient2635\install\setup.exe"" -silent -deinstall DEINSTALL_LIST={""oracle.workflow.builder"",""2.6.3.5.0""} ORACLE_HOME=C:\Oracle\WFB2.05\Orahome_1 ORACLE_HOME_NAME=oracleas1"

oSH.Run strCommnad,0,true

If this does not help, please provide more details about the error and code you are using.
Answered 07/10/2017 by: rad33k
Fourth Degree Brown Belt

  • thank you rad , but i tried with this command it worked .
    Call RunExe(ScriptPath & "\p4096620_9041_WINNT\wfclient2635\install\setup.exe" ," -silent -deinstall DEINSTALL_LIST="&chr(123)&"oracle.workflow.builder,2.6.3.5.0"&chr(125), " ORACLE_HOME=C:\Oracle\WFB2.05\Orahome_1", " ORACLE_HOME_NAME=oracleas1","","")

    just like chr(34) , i used chr(123) for { and chr(125) for }
    • I'm assuming that CMD command works fine, right?

      Do you have any log file(s)?
      Have you tried without -silent switch, to check if there are any errors/warnings?
      I would check also something like this:

      strCommand = "cmd.exe /k ...."
      oSh.Run strCommand,1,true

      to see if it displays any warnings in the CMD window.
      I would try also to set working directory prior .Run command.
      https://blogs.technet.microsoft.com/heyscriptingguy/2005/02/01/how-can-i-change-the-working-folder-of-a-script/

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ