|
|
#1 |
|
Junior Member
Join Date: May 2005
Posts: 2
|
I want to create a shortcut with the following contence:
"C:\Program Files\Java\jre1.5.0_02\bin\java.exe" -classpath "E:\Bob\java\Java\UWDSlide_java;C:\Program Files\Java\jre1.5.0_02\lib\comm.jar;E:\Bob\java\Java\UWDSlide_java\AbsoluteLayout.jar;" UWDSlide_Progr COM1 DD E:\Bob\java\Java\UWDSlide_java\img\ GB (I copy and paste this string from a existing, working shortcut). In particilar the " sign before and after classpath are essential. When using the default syntax, CreateShortcut the " sign will partly destroy the commandline string. Thanks, Bob |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
Assuming I understand your problem, this should help:
http://nsis.sourceforge.net/index.ph...&tx_faq_faq=11 If not, please try explaining again. An example of the CreateShortcut line you've used would help understanding the problem. NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: May 2005
Posts: 2
|
I noticed the faq, but witout succes
I used StrCpy $5 " -classpath " StrCpy $5 "$5'" StrCpy $5 "$5$INSTDIR;$1\lib\comm.jar;$INSTDIR\AbsoluteLayout.jar" StrCpy $5 "$5'" StrCpy $5 "$5 UWDSlide_Progr COM1 DD $INSTDIR\img\ GB" CreateShortCut Unidrive.lnk "$1\bin\java.exe" "$5" However the exact string should be: java.exe -classpath "thisandthat;endsomemore;somethingelse;" UWDSlide_Progr COM1 DD $INSTDIR\img\ GB The string after -classpath must be quoted, how to do that? Bob |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Sep 2004
Location: Nottingham
Posts: 263
|
code: Just quickly glanced at this thread, sorry if you've tried this already but thought it might help. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|