my setup xD.

Blitz3D Forums/Blitz3D Programming/my setup xD.

Yue(Posted 2011) [#1]


Hi, I'm trying to make an installer, I can say that everything is going well, but I have problems trying to create a shortcut to the desktop with native command blitz3d.

Any ideas.

A greeting.

Last edited 2011


Warner(Posted 2011) [#2]
What is the problem? Do you have trouble finding out the desktop location or do you have trouble writing a file onto it?
The following link shows a code archive entry that can retreive several 'special folders', including the desktop:
http://www.blitzbasic.com/Community/posts.php?topic=49838
Looking at the comments below it, it might require a bit tweaking, but I'm sure using api_GetSpecialFolder is the most suitable way.


Yue(Posted 2011) [#3]
Hi, thanks for responding ...

the problem I have is that I can copy files, but not how to create a shortcut to that file copied to the desktop, without it being a copy if not a shortcut.

and get a picture.


Yue(Posted 2011) [#4]
look this is what I want to do ...




Rroff(Posted 2011) [#5]
There are API calls you can use to create shortcuts... or you could write a shortcut file using the normal b3d file commands using information on the file format:

http://www.google.co.uk/url?sa=t&source=web&cd=6&ved=0CEAQFjAF&url=http%3A%2F%2F8bits.googlecode.com%2Ffiles%2FThe_Windows_Shortcut_File_Format.pdf&rct=j&q=windows%20shortcut%20file%20format&ei=37KsTcfZBYSy8QPRo8S4Ag&usg=AFQjCNERW-Oy6pjzf3SLx7mCc4yxkxcVRw&cad=rja


Kryzon(Posted 2011) [#6]
Don't know how this would be compatible, but maybe have a blank\template shortcut in your installation package that you copy to the destination folder and change the properties to point to your executable.


Yue(Posted 2011) [#7]
Hello, if possible I would like to help me with an example, not find a way to do it with native command blitz3d.

I thinking I manually make a shortcut and lie within the installation package, but if the end user application to choose another route involves arhiva hundreds of shortcuts, so as not using blitz3d set the path that shortcut.

Answers regret the Internet late but I go every week or 15 days.


Yue(Posted 2011) [#8]
In this case there is a lib who can help me?


Warner(Posted 2011) [#9]
If I remember it well, creating a shortcut is a bit more difficult. The api for that requires a COM object. On this forum, there is a VBscript example. The VBscript is ran with ExecFile. However, on some computers, VBscript might be disabled.
Altogether, it might be an idea to look at InnoSetup. It creates installers.
InnoSetup is somewhat difficult to use. But if you download ISTool, it is much easier to use:
Description: http://sourceforge.net/projects/istool/
Download: http://hubpages.com/hub/ISTOOL

Edit: I can however understand you want to create your own shortcut file.
Here is some code that shows the characters in a shortcut file:


Last edited 2011


Yue(Posted 2011) [#10]
Hi, if the only way to discover it was through vbs js files, and works perfectly, but the problem is that as you mentioned in some machines this may be off, but at the moment is the most viable option.



now the problem is I can not take the code that you put me as the pen is hurt, rather without computers and USB memory is not as I do a project = (