Click to See Complete Forum and Search --> : [RESOLVED] Shortcut to UNC path file in installer...?
tkstock
Feb 21st, 2006, 04:01 PM
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
sparrow1
Feb 22nd, 2006, 02:31 AM
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/default.asp?url=/library/en-us/htmlhelp/html/vsconocxshortcut.asp
Hope it helps,
sparrow1
iehjsucker
Feb 22nd, 2006, 02:34 AM
create a .lnk for your file i supose then add this to your package.. /gg
tkstock
Feb 22nd, 2006, 07:52 AM
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
tkstock
Feb 22nd, 2006, 07:54 AM
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.
kleinma
Feb 22nd, 2006, 08:28 AM
what installer are you using?
tkstock
Feb 22nd, 2006, 09:03 AM
what installer are you using?
The standard Setup Project .Net installer that comes with VS.net
kleinma
Feb 22nd, 2006, 10:01 AM
.net 2003?, sorry for the questions, but depending on what version it is can change the answer that will work for you...
tkstock
Feb 22nd, 2006, 10:33 AM
.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
sparrow1
Feb 22nd, 2006, 12:12 PM
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/default.asp?url=/library/en-us/msi/setup/specifying_shortcuts.asp
I hope it's a better one.
sparrow1
kleinma
Feb 22nd, 2006, 12:23 PM
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.
tkstock
Feb 22nd, 2006, 12:49 PM
Please forgive my naivete, but what is INNO? Where can I get it?
kleinma
Feb 22nd, 2006, 12:57 PM
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.
tkstock
Feb 22nd, 2006, 02:33 PM
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???? :confused: :eek2:
kleinma
Feb 22nd, 2006, 02:39 PM
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
tkstock
Feb 22nd, 2006, 07:28 PM
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!
kleinma
Feb 23rd, 2006, 10:04 AM
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
tkstock
Feb 23rd, 2006, 12:16 PM
Thanks so much for your help!!! I like INNO!
kleinma
Feb 23rd, 2006, 01:26 PM
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
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.