Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Creating desktop shortcuts

51 views
Skip to first unread message

Roy Scarisbrick

unread,
Mar 27, 2002, 12:27:06 AM3/27/02
to
I came up with the same question while working with the
Package and Deployment Wizard, but while working with
Access, and decided that to run my own exe after the
installation was the way to do it.

>-----Original Message-----
>i was wondering if there is any way to create an
>application short cut on the desktop when using the
>package and deployment wizard...
>
>basically i am making a setup file and i want a shortcut
>icon to be created on the users desktop during the
install
>process...
>
>all help appreciated...
>
>thanks in advance...
>.
>

Kally Wang(MS)

unread,
Mar 29, 2002, 3:07:01 AM3/29/02
to
Hi,

To add shortcut to desktop, you can modify the source code of setup1.vbp
and add the similar code snippet:

Private Declare Function fCreateShellLink Lib "vb6stkit.dll" (ByVal
lpstrFolderName As String, ByVal lpstrLinkName As String, ByVal
lpstrLinkPath As String, ByVal lpstrLinkArguments As String, ByVal fPrivate
As Long, ByVal sParent As String) As Long
fSuccess = fCreateShellLink("..\..\Desktop", "test",
"c:\Windows\notepad.exe", "", True, "$(Programs)")

If you decide to modify the setup1, the following two articles may be
helpful for you.

Q189738 HOWTO: Run Setup1.vbp in the Design Environment
http://support.microsoft.com/support/kb/articles/q189/7/38.asp

Q190814 HOWTO: Display a ReadMe File at the End of a Custom Setup
http://support.microsoft.com/support/kb/articles/q190/8/14.asp

Regards,

Kally
==========
This posting is provided "AS IS" with no warranties, and confers no rights.

== Original Message ==

0 new messages