Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Re: For mcrider

Posted on 2000-03-14
10
Medium Priority
?
155 Views
Last Modified: 2010-05-02
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.
0
Comment
Question by:vbWayne
  • 5
  • 5
10 Comments
 
LVL 14

Accepted Solution

by:
mcrider earned 200 total points
ID: 2616085
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
 
LVL 1

Author Comment

by:vbWayne
ID: 2617250
Adjusted points from 0 to 50
0
 
LVL 1

Author Comment

by:vbWayne
ID: 2617253
not to worry...I always pay my bills
:>
Wayne
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 14

Expert Comment

by:mcrider
ID: 2617333
<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
 
LVL 1

Author Comment

by:vbWayne
ID: 2617571
Yea..
haven't tried it yet but I have your number...lol

Later,
Wayne
0
 
LVL 14

Expert Comment

by:mcrider
ID: 2617802
Yea, Anytime day or night...

Insomniac don't waste time by sleeping ;-)
0
 
LVL 1

Author Comment

by:vbWayne
ID: 2619606
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
 
LVL 14

Expert Comment

by:mcrider
ID: 2621764
Are you using VB5 or VB6??
0
 
LVL 1

Author Comment

by:vbWayne
ID: 2621842
VB6
0
 
LVL 14

Expert Comment

by:mcrider
ID: 2621882
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

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question