Solved

Re: For mcrider

Posted on 2000-03-14
10
150 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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.
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…

810 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