Link to support or website.

Post tutorials and script examples in this forum.
Forum rules
We have no special rules for UVK forums. Just try to be polite and clear in your posts.
Please don't post spam in this forum. Spammers will be banned by IP, e-mail and username.
We reserve the right to delete all posts and ban all users we consider not having respected these rules without warning.
Post Reply
Charger440
Posts: 1528
Joined: Sun May 25, 2014 7:44 am
Location: Missouri

Link to support or website.

Post 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.
Jim

It is not "Can it be done?" but rather, "How can we do it?"
Fred
Site Admin
Posts: 2324
Joined: Sat Jul 30, 2011 12:05 pm
Location: Red coast, France
Contact:

Re: Link to support or website.

Post 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.
One thing we humans have in common is that we are all different. So, if you think you're weird because you're different from everyone else, then we are all weird.

Fred
Charger440
Posts: 1528
Joined: Sun May 25, 2014 7:44 am
Location: Missouri

Re: Link to support or website.

Post 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...
Jim

It is not "Can it be done?" but rather, "How can we do it?"
Post Reply