/build/static/layout/Breadcrumb_cap_w.png

Systems Management Question


Need help uninstalling app (Newbie)

07/27/2006 4803 views
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   [ + ] Show comments

Comments


Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

All Answers

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

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

 
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