How can I uninstall an application in Windows using Perl?
Is it possible to uninstall an application in Windows using a Perl script?开发者_开发知识库
I don't think there is any standard Perl module which accepts the application name and uninstalls it. To uninstall an application, you need to know its uninstaller application name/path. You can launch the uninstaller application from the Perl script by calling it in the system function.
You need to know every step you did in the installation process like inserting registry keys and which files and directories were generated in the installation proccess.
I don't know much about Perl, but you might be able to use Msiexec.
精彩评论