472,374 Members | 1,367 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,374 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 4300
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: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
2
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.
0
by: F22F35 | last post by:
I am a newbie to Access (most programming for that matter). I need help in creating an Access database that keeps the history of each user in a database. For example, a user might have lesson 1 sent...

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.