Link or shortcut

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Ralf.

I made an installroutine that search for a programm and copies a
file into the subdirectory of the programm.
How can i put in the programm to make an link to the desktop.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by El_Choni.

I don't know, but a shortcut is a file, so you can create its contents and save it in the desktop folder, I guess...

Bye,

El_Choni
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Paul.

Here's a little snippet to find the Desktop Folder...

Code: Select all

buffer.l=0
folder.s=space$(255)
SHGetSpecialFolderLocation_(0, 16, @buffer)
SHGetPathFromIDList_(buffer, @folder)

MessageRequester("Desktop Folder",folder,0)
Why not just use a freeware installer? Clickteam makes a good one!
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Ralf.

Thanks, i will try your sample.
Do you got the http://WWW.-adress for clickteam ?
is it http://www.clickteam.com ?
yes, it is. i found the web-site.


Edited by - ralf on 22 January 2002 19:50:28
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Franco.

AFAIK there is no API call to create a desktop shortcut.
But...
I will upload a procedure to create a desktop shortcut on Paul's resource site.



Have a nice day...
Franco

Sometimes you have to go a lonely way to accomplish genius things.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Ralf.

okay i will have a look on it.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.
I will upload a procedure to create a desktop shortcut on Paul's resource site.
LOL, I just took a look and that's exactly the way I was going to do it!


PB - Registered PureBasic Coder
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Ralf.

Okay it works.
Thanks a lot.
Post Reply