Indigo Rose Software
  #1  
Old 08-22-2008
robl robl is offline
Indigo Rose Customer
 
Join Date: Aug 2008
Posts: 3
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!
Reply With Quote
  #2  
Old 08-22-2008
Mark's Avatar
Mark Mark is offline
Indigo Rose Staff Member
 
Join Date: Jun 2000
Location: Indigo Rose Software
Posts: 1,773
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
Reply With Quote
  #3  
Old 08-22-2008
robl robl is offline
Indigo Rose Customer
 
Join Date: Aug 2008
Posts: 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");
Reply With Quote
  #4  
Old 08-22-2008
Mark's Avatar
Mark Mark is offline
Indigo Rose Staff Member
 
Join Date: Jun 2000
Location: Indigo Rose Software
Posts: 1,773
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");
Give that a try and let me know what the results are.
__________________
MSI Factory The Next Generation Intelligent Setup Builder
Reply With Quote
  #5  
Old 08-25-2008
robl robl is offline
Indigo Rose Customer
 
Join Date: Aug 2008
Posts: 3
Success!!!

Thanks for walking me thru that Mark.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


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.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software