|
|
#1 |
|
Senior Member
Join Date: Mar 2002
Location: France / Paris
Posts: 138
|
Hi,
Someone asks me in a french nsis forum about a problem with the CreateShortCut function ! I asked him to llokup in the doc but i found his problem quite stange ! He wanted to use parameters in the shortcup, and use the direct method : CreateShortCut "$INSTDIR\Play HLP.lnk" "'$INSTDIR\halflife.exe' -console -dev -game Hl-Parpaing" ![]() I know that this is not the wrong way to use that function, but if this is executed by NSIS, the shortcut links to : "C:\'E:\HalfLife\halflife.exe' -console -dev -game Hl-Parpaing" C:/ was added at the begining ? Does anyone knows why ? |
|
|
|
|
|
#2 | ||
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
Quote:
Quote:
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
||
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Mar 2002
Location: France / Paris
Posts: 138
|
Sur, this is in the doc ... the fact is : is there a logical reason that NSIS links to "C:\'E:\HalfLife\halflife.exe' -console -dev -game Hl-Parpaing" instead of "'E:\HalfLife\halflife.exe' -console -dev -game Hl-Parpaing" ?
|
|
|
|
|
|
#4 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
The reason there are two strings is that this is the way Windows does it. The Windows function that creates the shortcut gets two parameters, one for the path and one for the shortcut parameters.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Mar 2002
Location: France / Paris
Posts: 138
|
but why, when using one parameter (intead of the two required), is there a c:\ that appears ?
|
|
|
|
|
|
#6 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
Because it does not know a drive marked with a ", so it adds the default drive letter. This is what Windows does, NSIS has nothing to do with it.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Mar 2002
Location: France / Paris
Posts: 138
|
aarg, so simple ! Thanks a lot kichik : you were very patient
( <- me ) !
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|