473,544 Members | 1,954 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.NET Setup Project always adds desktop shortcut (checkbox always evaluates to 1)

I have developed a Windows application in Visual Studio .NET 2003 and
created a Setup project for it. In the File System Editor I have added
a shortcut to the User's Desktop folder to point to the application
once it has been installed. I have added a condition to the User's
Desktop named "DESKTOPSHORTCU T" (I have used several names, this is
just the latest). In the User interface, I have added a screen with a
checkbox that asks the user whether he/she wants to add a shortcut to
the desktop. The Property of the checkbox is "DESKTOPSHORTCU T" and the
checkbox is checked by default (I have also tried it as unchecked by

When I run the installation, the application's Setup asks whether I
want to add a shortcut to the desktop and then it adds the shortcut
regardless of whether the checkbox is checked or not!

When I try to make the value of this custom property show up in one of
the dialogs that come after the one showing the checkbox (e.g. using
[DESKTOPSHORTCUT] in a text field dialog) I saw that the property
always evaluates to 1. That is why, clearly, my 'Condition' on the
'Desktop Folder' (namely "DESKTOPSHORTCU T=1") always evaluates to TRUE
and consequently the desktop shortcut is created always! -- There is no
'Condition' property on the shortcut itself, I hope this is not the
actual problem...

I have extensively combed through the documentation of creating a Setup
project and custom dialogs, but have been unable to find a solution. I
have, however, found a related discussion about that problem on the
Web, but no solution is provided there either:
"VS.NET always adds desktop application"

Has anyone else encountered this problem, too? How can I fix this?

Jun 2 '06 #1
0 2259

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Top Gun | last post by:
I am trying to get the output from a setup project to place an entry on the menu plus a shortcut on the option, but setting the property's in User's Desktop and User's Programs Meny to true doesn't seem to do the trick. Am I missing something?
by: Tom | last post by:
I created an msi using the Setup Wizard, but don't seem to be able to create a shortcut to the applicaton on the desktop (or prompt for one) or the menu. Also, I would like to add an "uninstall" to this, but don't see that it allows for this? Am I missing something?
by: I_AM_DON_AND_YOU? | last post by:
There is one more problem I am facing but didn't get the solution. In my Setup Program I am not been able to create 2 things (when the program is intalled on the client machine ) : (1) create shortcut to my program/utility (2) Entry in Windows' Start --> Program Menu. Actually in my VB.Net solution I have two projects (1) MYPROGRAM (2)...
by: John | last post by:
Hi I have an app to deal with two companies A & B within a group of companies depending on which database is selected. Is it possible for setup to ask the user at install time which company they want to install the app for and then pass the relevant database path as parameter in the desktop shortcut? Thanks Regards
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
by: GrandpaB | last post by:
I would appreciate assistance learning how to create a Desktop shortcut in my setup project. In the left pane of the Setup/File System window I right-clicked User's Desktop. From the contex menu I clicked Create Shortcut to User's Desktop. In the right pane of the setup/File System window the object Shortcut to User's Desktop appeared. ...
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 figure out how to make this shortcuts point to my apps.exe -- any suggestions? thanks, Rob.
by: sanghavi | last post by:
how to create a set up project in vb.net..how to run an application on a different machine
by: Joe | last post by:
Hi, I am using VS2005 and am attempting to create a Setup project to install my VB.NET application onto the customer's target computer. I am having difficulty setting the Target property for the Desktop shortcut. It only allows me to select the Application folder. I cannot add the actual name of the executable program after that. When...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.