Solved

Re: For mcrider

Posted on 2000-03-14
10
149 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

920 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

15 Experts available now in Live!

Get 1:1 Help Now