从PHP在客户端计算机上启动文件? [英] Launch File on Client's Computer from PHP?

查看:115
本文介绍了从PHP在客户端计算机上启动文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一个实用程序,该实用程序需要安装密钥才能进行卸载,以确保仅授权用户才能进行卸载.登录到我们的网站后,将向用户显示一个卸载密钥,但是我还想在客户端计算机上启动卸载向导.我知道这是可能的,因为我之前已经做过...只是不记得代码,也没有保存它.

I have written a utility that requires an installation key for uninstallation to ensure that only authorized users are uninstalling. After logging in to our website, the user will be presented with a uninstallation key, but then I would like to also launch the uninstallation wizard on the clients computer. I know this is possible, as I've done it before... just don't remember the code, nor did I save it.

首先感谢您的任何输入.

Thanks in advance for any input.

推荐答案

假设使用Windows,您可以告诉安装程序

Assuming Windows, you could tell your installer to register a custom URL protocol with a custom scheme for uninstallation. Then your php app could present a link using the custom URL scheme (uninstall-my-product://12345678-ABCD).

没有您的卸载程序的用户将看到我不知道如何处理此协议"消息.安装了您的产品的用户将启动卸载程序.

Users without your uninstaller would see an "i don't know what to do with this protocol" message. Users who had installed your product would launch the uninstall program.

您可以通过提供已注册以打开卸载程序的文件类型来完成类似的功能.

You could accomplish a similar function by delivering a file type which was registered to open the uninstall program.

如果您使用的是商业安装程序,则在两种情况下,编写一个小的启动器应用程序来运行卸载程序可能比修改卸载程序本身更容易.

If you're using a commercial installation program, then in both cases it would probably be easier to write a little launcher application to run the uninstaller, rather than modifying the uninstaller itself.

这篇关于从PHP在客户端计算机上启动文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆