Page 1 of 1

Link to support or website.

Posted: Mon Jun 15, 2015 4:29 am
by Charger440
I have been looking and this is the closest thing I can do without making a stand alone tool or making the script huge for such a small task.

Code: Select all

 <UnzipFile>
%InstallSourceDir%\SupportLink.zip | %PublicDesktop%
Make your URL shortcut that you want and place it in the install source dir in a zip file called SupportLink.zip. This script will extract it to the common desktop.

When creating the custom app use the AUTO switch to run it.

Re: Link to support or website.

Posted: Mon Jun 15, 2015 9:43 am
by Fred
An internet shortcut is just a simple ini file. It can be easily created like this.

An AutoIt version

Code: Select all

$name = 'Carifred'
$url = 'http:www.carifred.com'

IniWrite(@DesktopCommonDir&'\'&$name&'.url', 'InternetShortcut', 'URL', $url)
A batch version

Code: Select all

 <CmdScript> -h
set url=http://www.carifred.com
set name=Carifred

set file=%PublicDesktop%\%name%.url
echo [InternetShortcut]>%file%
echo URL=%url%>>%file%
In both scripts, set the name of your shortcut and the target URL in the corresponding lines.

If you prefer a custom third party app...
App name: Create desktop internet shortcut
Command 1: %Comspec% /c echo [InternetShortcut]>%PublicDesktop%\Carifred.url
Command 2: %Comspec% /c echo URL=http://www.carifred.com>>%PublicDesktop%\Carifred.url
Again, set your shortcut's name in the first command and the target URL in the second one.

Re: Link to support or website.

Posted: Tue Jun 16, 2015 5:57 am
by Charger440
Unless I am missing something(and I might be), it would be really nice to have access to the UVK System variables and commands.... I was thinking about making that Link script save the settings to an INI file but it would be tough to figure out where you stored your INI to read from it again... Would be nice if the %InstallSourceDir% was supported. Guess that's a limitation of the scripting abilities...