/bundles/itninjaweb/img/Breadcrumb_cap_w.png
I need to create a .cmd file (unless there is a better suggestion) to remove an older version of a custom app before a new one is installed in its place. I have tried creating a custom uninstall using the uninstall strings from the registry and it will also remove the directories when completed. I have messed around with this for a while so I am going to paste the barebones of what is needed for the uninstall. Everytime I have customized this and pushed it the clients accept it then it fails showing "Failed(Bad Environment) in SMS reporting. There are 2 apps, one is a custom app and the other is a SQL connectivity tool.

Any help would be greatly appreciated! I am very new to this, I think my syntax needs work :(

D:\PROGRA~1\CYBERP~1\EV\UNWISE.EXE D:\PROGRA~1\CYBERP~1\EV\EV_CINST.LOG

C:\WINNT\IsUninst.exe d:\MSSQL7\Uninst.isu -c"d:\MSSQL7\sqlsun.dll" -msql70.mif

rd "D:\PROGRA~1\CYBERP~1" /s /q
rd "d:\MSSQL7" /s /q

EXIT /B0
0 Comments   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

0
What context are you running your program in? User? Local admin?
Answered 08/22/2006 by: Bladerun
Green Belt

Please log in to comment
0
Its returning the error due to the fact its timing out on the client side.
The command line you are using is missing one switch that is crucial to a silent remove for uninstalling.

Change your code to look like this and you should be good to go:
D:\PROGRA~1\CYBERP~1\EV\UNWISE.EXE D:\PROGRA~1\CYBERP~1\EV\EV_CINST.LOG

C:\WINNT\IsUninst.exe -a d:\MSSQL7\Uninst.isu -c"d:\MSSQL7\sqlsun.dll" -msql70.mif

rd "D:\PROGRA~1\CYBERP~1" /s /q
rd "d:\MSSQL7" /s /q

EXIT /B0
Answered 11/29/2006 by: Gechonet
Senior Yellow Belt

Please log in to comment