Re: For mcrider

Concerning Q.10309976
I have another 50 points for you if you wish to include the code that will add a shortcut to the app on the desktop during install.

Wayne.
LVL 1
vbWayneAsked:
Who is Participating?
 
mcriderCommented:
That one's pretty easy...

In the setup project, edit the frmSetup1 Load Event. Search for the comment line:

   ' Create program icons (or links, i.e. shortcuts).

Right after that line, put the following code:

   OSfCreateShellLink "..\..\Desktop", _
       "Shortcut to MyApp", _
       gsDest.strAppDir & "MyApp.EXE", Chr$(0)



Replace the occurrences of MyApp with your actual exe name.


(don't forget to bump up the points before you accept this answer... ;-)



Cheers!®©
0
 
vbWayneAuthor Commented:
Adjusted points from 0 to 50
0
 
vbWayneAuthor Commented:
not to worry...I always pay my bills
:>
Wayne
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
mcriderCommented:
<G> Not worried, it's just that I've had alot of people post 0 point questions and forget to up the points...

BTW, Thanks for the points!  The info made sense?


Cheers!®©
0
 
vbWayneAuthor Commented:
Yea..
haven't tried it yet but I have your number...lol

Later,
Wayne
0
 
mcriderCommented:
Yea, Anytime day or night...

Insomniac don't waste time by sleeping ;-)
0
 
vbWayneAuthor Commented:
mcrider >>>> still connected?

Here is what I did..copy and paste your line of code...project name: Birthdays
Project exe: Birthdays.exe

Result:  No Icon Appears On Desktop

Also...I got no mention of dcom95 but maybe that is because I am running 98 on my system..

Wayne

' Wayne's Vesion of Create program icons (or links, i.e. shortcuts).
        '
        OSfCreateShellLink "..\..\Desktop", _
            "Shortcut to Birthdays", _
                 gsDest.strAppDir & "Birthdays.EXE", Chr$(0)
       '
0
 
mcriderCommented:
Are you using VB5 or VB6??
0
 
vbWayneAuthor Commented:
VB6
0
 
mcriderCommented:
I don't have VB6... Just VB5... ;-)

The OSfCreateShellLink I gave you was for VB5.  I believe that the arguments have changed in VB6... Search the SETUP1 project and look for the OSfCreateShellLink definition...

By the way, you opened another question to me... Let's move over there...


Cheers!®©
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.