473,387 Members | 1,771 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,387 software developers and data experts.

.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 "DESKTOPSHORTCUT" (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 "DESKTOPSHORTCUT" and the
checkbox is checked by default (I have also tried it as unchecked by
default).

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 "DESKTOPSHORTCUT=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"
http://www.dotnet247.com/247referenc...57/285214.aspx


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

Jun 2 '06 #1
0 2237

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

Similar topics

2
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...
1
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"...
4
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...
3
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...
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
7
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...
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
4
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
Oralloy
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,...

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.