|
#1
|
|||
|
|||
|
Target line syntax for Shortcut help
I'm trying to create a shortcut that uses a resource in the target line. It should look like this:
"c:\Program Files\MyApp\Myapp.exe" c:\resource\resource.nod but using the Shell.CreateShortcut action, the closest I get is this: "c:\Program Files\MyApp\Myapp.exe" c:\resource\resource.nod" seems like Setup Factory is adding an extra quotation mark at the end of the string, which of course Windows won't accept. I'm evaluating the software, so I need to be able to work around this problem. Help please! |
|
#2
|
||||
|
||||
|
Hi robl,
Perhaps paste in the line of code that you are using to create your shortcut. Remember to use the "CmdLine" parameter to pass your resource to the shortcut and do not include it in the target. You can also create shortcuts by double clicking on the file in the main file list and then creating the shortcut on the shortcut tab. The nice thing about using the shortcut tab is that the shortcuts will be removed when you uninstall.
__________________
MSI Factory The Next Generation Intelligent Setup Builder |
|
#3
|
|||
|
|||
|
Thanks for the quick reply Mark. I'm actually trying to install an updated report that will use the "exe" to run, but not installing the "exe" each time. That's why I'm not using the double-click method you mentioned. Here's my syntax.
target_line = "\\Program Files\\MyApp\\MyApp.exe"--.."\"".." c:\\resource\\resource.nod" Shell.CreateShortcut(_DesktopFolder, "Report Update", target_line, "", "", "C:\\Program Files\\MyApp\\MyApp.exe", 0, SW_MAXIMIZE, nil, "NPD Group"); |
|
#4
|
||||
|
||||
|
Hi robl,
As I said in my initial replay you should be using the CmdLine parameter to pass your resource to the executable: Code:
Shell.CreateShortcut(_DesktopFolder , "Report Update" , "C:\\Program Files\\MyApp\\MyApp.exe" , "c:\\resource\\resource.nod" , "" , "C:\\Program Files\\MyApp\\MyApp.exe" , 0 , SW_MAXIMIZE , nil , "NPD Group");
__________________
MSI Factory The Next Generation Intelligent Setup Builder |
|
#5
|
|||
|
|||
|
Success!!!
Thanks for walking me thru that Mark.
|
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Line numbers...confusing? | bucksommerkamp | TrueUpdate 2.0 | 1 | 07-25-2005 03:05 PM |
| Function: Parsing Command Line Arguments | Brett | AutoPlay Media Studio 5.0 Examples | 0 | 05-13-2004 09:42 AM |
| changing target in shortcut | elev | Setup Factory 6.0 | 0 | 05-05-2004 02:47 AM |
| HOWTO: Build a Setup from the Command Line | Support | Setup Factory 5.0 | 0 | 10-08-2002 02:43 PM |
| HOWTO: Build a Setup from the Command Line | Support | Setup Factory 6.0 Knowledge Base | 0 | 09-27-2002 03:16 PM |
All times are GMT -6. The time now is 06:08 AM.








Linear Mode

