|
-
Feb 21st, 2006, 05:01 PM
#1
Thread Starter
Member
[RESOLVED] Shortcut to UNC path file in installer...?
I have help and version documentation (in the form of web pages) that are located on a server share (\\server\share\index.html)
I want to have my installation package install a shorcut to the HTML file in the user's program files folder.
I've created shortcuts to the HTML file and tried adding those to the package, but the HTML file itself gets added! I've tried several different methods - none of them worked properly. I just want the shortcuts to the HTML file added... what am I doing wrong?
BTW, I've searched the forums to no avail...
Thanks in advance!
Tom Stock
VS.net 2003
Last edited by tkstock; Feb 21st, 2006 at 08:47 PM.
-
Feb 22nd, 2006, 03:31 AM
#2
Re: Shortcut to UNC path file in installer...?
 Originally Posted by tkstock
I have help and version documentation (in the form of web pages) that are located on a server share (\\server\share\index.html)
I want to have my installation package install a shorcut to the HTML file in the user's program files folder.
I've created shortcuts to the HTML file and tried adding those to the package, but the HTML file itself gets added! I've tried several different methods - none of them worked properly. I just want the shortcuts to the HTML file added... what am I doing wrong?
BTW, I've searched the forums to no avail...
Thanks in advance!
Tom Stock
VS.net 2003
Hi Tom,
I've been searching in MSDN for, How to add your Shortcut to the package.
But however I found a link how you can add your Shortcut via code and than
yous Shortcut will automaticly added into the package.
Here is the link:
http://msdn.microsoft.com/library/de...cxshortcut.asp
Hope it helps,
sparrow1
-
Feb 22nd, 2006, 03:34 AM
#3
Addicted Member
Re: Shortcut to UNC path file in installer...?
create a .lnk for your file i supose then add this to your package.. /gg
-
Feb 22nd, 2006, 08:52 AM
#4
Thread Starter
Member
Re: Shortcut to UNC path file in installer...?
 Originally Posted by iehjsucker
create a .lnk for your file i supose then add this to your package.. /gg
I tried this already - instead of adding the .lnk file, it adds the file it points to!
Tom
-
Feb 22nd, 2006, 08:54 AM
#5
Thread Starter
Member
Re: Shortcut to UNC path file in installer...?
sparrow1,
That link didn't help me - sorry. There is no code in my project - I am creating an MSI simply to install a local copy of an Access Database with shortcuts to the HTML documentation which is located on the server.
-
Feb 22nd, 2006, 09:28 AM
#6
Re: Shortcut to UNC path file in installer...?
what installer are you using?
-
Feb 22nd, 2006, 10:03 AM
#7
Thread Starter
Member
Re: Shortcut to UNC path file in installer...?
 Originally Posted by kleinma
what installer are you using?
The standard Setup Project .Net installer that comes with VS.net
-
Feb 22nd, 2006, 11:01 AM
#8
Re: Shortcut to UNC path file in installer...?
.net 2003?, sorry for the questions, but depending on what version it is can change the answer that will work for you...
-
Feb 22nd, 2006, 11:33 AM
#9
Thread Starter
Member
Re: Shortcut to UNC path file in installer...?
 Originally Posted by kleinma
.net 2003?, sorry for the questions, but depending on what version it is can change the answer that will work for you...
Yes - VS.NET 2003
-
Feb 22nd, 2006, 01:12 PM
#10
Re: Shortcut to UNC path file in installer...?
 Originally Posted by tkstock
sparrow1,
That link didn't help me - sorry. There is no code in my project - I am creating an MSI simply to install a local copy of an Access Database with shortcuts to the HTML documentation which is located on the server.
Hi Tom,
It was just a try to help you and was still searching for a better solution.
I found now another link to create a Shortcut.
http://msdn.microsoft.com/library/de..._shortcuts.asp
I hope it's a better one.
sparrow1
-
Feb 22nd, 2006, 01:23 PM
#11
Re: Shortcut to UNC path file in installer...?
yeah I looked through the installer and i dont see any way to add a shortcut in the fashion you are trying to.
I won't say its not possible, but I didn't see a way to do it. That installer is somewhat limited (although it has improved in 2005). I personally use INNO because its pretty much fully customizable.
You may want to at least consider using INNO for your install, or perhaps try what sparrow has said, and create the shortcut via code instead of via installer.
-
Feb 22nd, 2006, 01:49 PM
#12
Thread Starter
Member
Please forgive my naivete, but what is INNO? Where can I get it?
Tom
Visual Studio .NET 2003
-
Feb 22nd, 2006, 01:57 PM
#13
Re: Shortcut to UNC path file in installer...?
INNO is an installer program that installs applications of any type (not just .NET)
it does take a little more work on your end, but like I said it can do everything and anything you would want in an installer. It is also 100% free
here is the official website
http://www.jrsoftware.org/isinfo.php
here is a link to some really cool howto articles for various installation tasks
http://www13.brinkster.com/vincenzog/articles.asp?ps=60
you may also want to visit the application deployment section of vbforums, as you may find useful information there.
-
Feb 22nd, 2006, 03:33 PM
#14
Thread Starter
Member
Re: Shortcut to UNC path file in installer...?
I just installed INNO, and it does the SAME THING! When I attempt to add the shorcut (User Documentation.lnk), it adds Index.html instead!!! Dang it!!!! Is there no hope????
Tom
Visual Studio .NET 2003
-
Feb 22nd, 2006, 03:39 PM
#15
Re: Shortcut to UNC path file in installer...?
you are probably using the wizard to make the setup, post the actual source of the .iss file and I will see if I can pinpoint what you need to modify to make it work
-
Feb 22nd, 2006, 08:28 PM
#16
Thread Starter
Member
Re: Shortcut to UNC path file in installer...?
I never did go through the entire process to see the script file that was created. It was easy to modify the script file to get it working.
Tell me, is there a way to specify a particular icon for the desktop and program file shortcuts?
Thanks so much for your help!
Tom
Visual Studio .NET 2003
-
Feb 23rd, 2006, 11:04 AM
#17
Re: Shortcut to UNC path file in installer...?
yeah you should just be able to specify the icon you want to use in the icons section using the IconFileName attribute:
Example
[icons]
Name: "{group}\My Program Name"; Filename: {app}\MyProgram.exe; WorkingDir: {app}; IconFilename: {app}\someicon.ico
-
Feb 23rd, 2006, 01:16 PM
#18
Thread Starter
Member
Re: Shortcut to UNC path file in installer...?
Thanks so much for your help!!! I like INNO!
Tom
Visual Studio .NET 2003
-
Feb 23rd, 2006, 02:26 PM
#19
Re: [RESOLVED] Shortcut to UNC path file in installer...?
glad to hear you are liking it..
here is a thread where i provided someone a sample script that includes installing the framework and setting permissions to work right if the app is installed to a network drive
http://www.vbforums.com/showthread.php?t=360427
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|