16
九月
1

Using AutoIt to create Application Shortcuts from Google Chrome

You can use Google Chrome’s "Application Shortcuts" function to create any website to open and feel like a standard windows desktop application, but how to auto install it instead of create it yourself? (or maybe you want to create an installer to your website for your customers)

Google Chrome have different installation path in XP and Vista , it even have different installation target for EVERY USER!

Windows XP:

  • %USERPROFILE%\Local Settings\Application Data\Google\Chrome\Application\chrome.exe

Windows Vista:

  • %USERPROFILE%\AppData\Local\Google\Chrome\Application\chrome.exe

In order to doing so, I have created an AutoIt v3 script to make this possible:


; Read in the path of Google Chrome's shortcut link
$details = FileGetShortcut(@DesktopDir & "\Google Chrome.lnk")
MsgBox(0, "Path:", $details[0] )

;You can specify an Icon for your application shortcut
$Icon = "C:\Windows\system32\SHELL32.dll"
$IconNumber = 170
$Description = "Your description of this shortcut"

;Now let's create the shortcut
;You must modify the "Shortcut Test.lnk" to your desired link name
;And YOUR WEBSITE ADDRESS is a must to.
FileCreateShortcut($details[0],@DesktopDir & "\Shortcut Test.lnk",@windowsdir,"--app=http://YOUR WEBSITE ADDRESS/",$Description, $Icon, "",$IconNumber)

相關的文章:

  1. Google Chrome Standalone installer
  2. Google Chrome silent install
  3. 「無法存取Windows Installer服務」的解決方法
1 Comment:
  1. niranjan ganta 12 九月, 2011

    i wanr to goggle chrome software.

Post your comment




/R/e/f/l/y /N/e/t/w/o/r/k/