谷歌Chrome应用程序 - 轻松安装和启动用户 [英] Google chrome app - easy install and launch for the user

查看:174
本文介绍了谷歌Chrome应用程序 - 轻松安装和启动用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的情况:


  • 我们有一个现有的html5 + javascript代码,我们希望脱机工作,并且希望有一个用户文件夹用于存储图像,视频等。

  • 我们希望这使用ole命令启动另一个Windows程序的脱机应用程序。 (所以我们假设我们想调用一个可以完成这项工作的.exe文件)。

  • 我们正在考虑使用谷歌浏览器应用程序。



问题:


  • 有没有办法创建一个Windows桌面启动器用我们的应用程序启动谷歌浏览器? (所以谷歌浏览器根本不会显示给最终用户,应用程序将分发给一些客户端,并且很可能不会上传到Chrome网上商店)

  • 我假设我们必须创建一个 Windows安装程序检查是否安装了谷歌浏览器,并添加注册表项以支持本地消息。如果它也可以安装我们的谷歌Chrome应用程序,这将是非常棒的。最好的方法来做到这一点,以便它会出现几个步骤安装到最终用户?
  • Q1:是的,你可以做到这一点。要查看要使用哪些标志,应使用chrome创建快捷方式并检查它。 (要做到这一点去应用程序启动器,找到应用程序,右键单击和'创建快捷方式...'。



    请注意,你不能真正隐藏铬,因为它在任务管理器中运行,将显示在防火墙中,并可能在未来以其他方式显示。个人而言,我认为试图隐藏它是一个糟糕的主意,因为如果用户发现您秘密安装了浏览器,可能会遇到不愉快的意外他们的电脑。



    Q2:对不起,我不太确定,我知道chrome团队正在研究类似的东西,也许到了准备好的时候他们会完成这项工作(请参阅 https://code.google。 com / p / chromium / issues / detail?id = 341353 了解更多详情。)

    Our situation:

    • We have an existing html5 + javascript code that we want to work offline, and want to have a user folder for storing images,videos etc.
    • We want this offline application to start another windows program with ole commands. (So let's say we want to call a .exe file that will do this work).
    • We are thinking of doing it with a google chrome app.

    Questions:

    • Is there any way to create a windows desktop launcher to start google chrome with our app? (so that the google chrome doesn't appear at all to the final user, the application will be distributed to a few clients, and probably won't be uploaded to chrome webstore)
    • I suppose we have to create a windows installer to check if google chrome is installed and add registry key to support native messaging. If it can also install our google chrome app this would be awesome. Best way to do this, so that it would appear a few steps installation to the final user?

    解决方案

    Q1: Yes, you can do this. To see what flags to use you should create the shortcut using chrome and inspect it. (to do this go to the app launcher, find the app, right click and 'create shortcuts...'.

    Note you can't really hide chrome as it is running in task manager, will show up in firewall, and may show up in other ways in future. Personally I think trying to hide it is a bad idea as users may get an unpleasant surprise if they find you have surreptitiously installed a browser on their computer.

    Q2: Sorry I'm not really sure about that. I do know the chrome team is working on something similar, maybe by the time you are ready to go they will have finished that. (see https://code.google.com/p/chromium/issues/detail?id=341353 for more details).

    这篇关于谷歌Chrome应用程序 - 轻松安装和启动用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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