How to execute DEINSTALL_LIST in VB script?
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
Answers (1)
Please log in to answer
Posted by:
rad33k
7 years ago
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 ""):
If this does not help, please provide more details about the error and code you are using.
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.
Comments:
-
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 } - Devishree 7 years ago-
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/ - rad33k 7 years ago