Solved

Re: For mcrider

Posted on 2000-03-14
10
148 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 50 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
 
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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now