473,320 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

setup in vb net makes shortcuts that do not show native icon in start menu

I've been trying to clean up the installer I created using vb 2005 as best as possible to finalize a project I am working on. I have my installer deploying a .pdf file in the application folder. I want the installer to create a shortcut to that .pdf file in the start menu. I do this by right clicking on the .pdf file that I have included on the setup project in the application folder of the files system editor and making a shortcut. After that I move the shortcut to the user's program menu. Here is the slight issue: the setup does create the link properly and I can click on it and the .pdf will come up, but for some reason the .pdf icon does not show up properly. The icon looks like the sheet of paper with blue lines on is that is standard in vb.

Instead of making a shortcut to the file, if I make a second full copy of the .pdf file and put it in the user's program menu folder, the installer will install properly but this time the icon is the expected .pdf icon. I would prefer not to do this because its not really a robust solution.

Surely there is a way to make a proper shortcut and I am just doing it incorrectly, or maybe its just that the windows installer package is incapable of doing this properly. My company will probably not be dishing out for the install-shield or some other package any time soon so I was hoping I might be able to get some input from the vb 2005 pros on this forum.
Jul 25 '08 #1
3 4396
TRScheel
638 Expert 512MB
Right click on the shortcut in the visual studio setup and deploy project and select 'properties window' to bring up the properties sub window. There will be an icon property that you can set. That might help (just include the pdf icon). If it is set to something other than none that might also be your problem.
Jul 25 '08 #2
Right click on the shortcut in the visual studio setup and deploy project and select 'properties window' to bring up the properties sub window. There will be an icon property that you can set. That might help (just include the pdf icon). If it is set to something other than none that might also be your problem.
Good observation, but the icon property is set to none. If I select the actual pdf icon file that I have on my computer (first I'd have to find it and then add it to the setup and deploy project) then it will probably not use the native pdf icon on the final user's computer (eg. they have an older version of adobe reader).
Jul 25 '08 #3
TRScheel
638 Expert 512MB
Good observation, but the icon property is set to none. If I select the actual pdf icon file that I have on my computer (first I'd have to find it and then add it to the setup and deploy project) then it will probably not use the native pdf icon on the final user's computer (eg. they have an older version of adobe reader).
Well if it makes you feel better I can reproduce the problem you are having. I create a shortcut through explorer and one through the setup and deploy project and noticed some very interesting differences:

Target Location is blank in the S&D version
Target is the project name in S&D version, file location in explorer version
Open File Location and Change Icon are grayed out in the S&D version

___
From what I have read and researched it seems like thats just how it works. You have to include the icon if you want it to work
Jul 25 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: James P | last post by:
Hi, I have a setup project that has a .chm file and a .doc file as part of installation. They show up on the start menu of the user with the default icon shown in the project. Not the help icon...
0
by: TC | last post by:
I know .NET setup projects use "Windows Installer" shortcuts instead of ordinary shortcuts, but I'm having trouble with those, so I'd like to hard-code some ordinary shortcuts in the user's start...
3
by: Rob Meade | last post by:
Hi all, Just creating a setup project now, I've discovered how to create a shortcut icon in the users program files menu, however, I want to create 2 shortcuts, one to actually launch the...
2
by: | last post by:
I am new to Visual Basic.Net using the Standard Edition, which does not come with a Deployment wizard, so I use the template on the File Systems Tab. Everything works fine, and I have enabled the...
3
by: Michael D. Murphy | last post by:
Hi, I am searching for a way to creat desktop shortcuts when running the setup files that were created within a VB solution using the setup wizard. Thanks, Michael
2
by: Rob R. Ainscough | last post by:
I've setup a Windows Installer Setup Project for my VS 2005 VB.NET app -- it installs find, but my Desktop icon and Programs Menu icon do not run the app ..exe when I click on them -- I can't...
3
by: sanghavi | last post by:
how to create a set up project in vb.net..how to run an application on a different machine
0
by: =?Utf-8?B?VHJhY2tz?= | last post by:
I created a setup program in VS2005 ide. It installs my app on 98-Vista. I have tried this with the Click once check box checked(full trust) and not checked does not seem to matter. Anyway, the...
6
by: Apostle | last post by:
I don't know where to post it inBytes, but since I'm used to Python forum, I hope someone will help me here. Advices of as to where I should post this are valid! I have made a project, compiled it...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.