This is such a pain in the butt. I have a software distribution package to UNINSTALL Office 2007. It removes the software just fine. Problem is that the setup.exe /uninstall always returns 1641 (rebooting after execution) or 3010 (reboot required). I been reading about batch files and errorlevels until I am dizzy. I have tried this over and over with different batch files. Supposedly, you can write a batch file to check for a certain errorlevel then reset the errorlevel to 0 within the batch so that the batch/distribution package returns 0 to LanDesk. If LanDesk gets anything other than 0 for a return code, it shows Failed even thought right after that is says "Operation completed successfully. Device is being rebooted for changes to take effect"
Can anybody help me cut to the chase and figure out how to get the distribution package to return 0 to LanDesk? I just don't see how it's possible when a reboot is required. And yes, I have tried all the no reboot options. It doesn't matter. Uninstalling Office absolutely requires a reboot. Sure you can force it not to do so at the end of the uninstall, but you still get the 3010 return code. So the only way to fix this is to intercept and change the return code on the way back to LanDesk. Does anyone know how to do this?