Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   How to Create Such a Shortcut (http://forums.winamp.com/showthread.php?t=280328)

jiake 30th October 2007 08:33

How to Create Such a Shortcut
 
I'm Chinese,many nouns in computer,I don't know how to express in English,so I give a picture.

How to Create Such a Shortcut:

jiake 30th October 2007 08:39

1 Attachment(s)
Like this:

Afrow UK 30th October 2007 10:19

Try the ShellLink plug-in.

Stu

Anders 30th October 2007 11:50

It might even be possible to just copy the .lnk file

Afrow UK 30th October 2007 12:14

I have noticed the shortcut will have a GUID as a path. You can try that GUID as the path when creating the shortcut with CreateShortCut, or try copying the .lnk file as Anders suggests.

Stu

Anders 30th October 2007 12:52

I suspect you would need to build a full guid path, and not just the guid for the connection, something like, ::{mycomputerguid}\::{controlpanel}\::{netconnections}\::{connectionguid} or something horrible like that, and the guid for the actual connection might change from machine to machine (that means a copy of a .lnk from another system might not work)

jiake 31st October 2007 06:26

CreateShortCut $DeskTop\PPTP-VPN.lnk "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}\::{网络连接}\::{BA126AD7-2166-11D1-B1D0-00805FC1270E}"

CreateShortCut $DeskTop\PPTP-VPN.lnk "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}\::{NetConnections}\::{BA126AD7-2166-11D1-B1D0-00805FC1270E}"

This will create an incorrect shortcut.

jiake 31st October 2007 06:36

1 Attachment(s)
Open the Shortcut of a NetConnection with NotePad,it content this path:

%AppData%\Microsoft\Network\Connections\Pbk\rasphone.pbk

%AllUsersProfile%\Application Data\Microsoft\Network\Connections\Pbk\rasphone.pbk

Run %AppData%\Microsoft\Network\Connections\Pbk\rasphone.pbk,it shows this:

jiake 31st October 2007 06:39

When click the first botton “Connect”,it show the same as double click the short on desktop.

jiake 31st October 2007 07:23

I solve the problem:

CreateShortCut “ADSL.lnk” "%Windir%\system32\rasphone.exe -d ADSL"


All times are GMT. The time now is 17:52.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.