Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / November 2006

Tip: Looking for answers? Try searching our database.

Installer Dialog problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cnickl - 22 Oct 2006 22:24 GMT
I’m trying to create an installer for an application. The installer has a
custom dialog with two checkboxes determining if shortcuts should get created
on the desktop and in the Start menu. Regardless what I do, and what I check
the shortcuts always get created in both.

In the User interface Setup I have:
Checkboxes (A):
Checkbox1Label    Desktop
Checkbox1Property    CHECKBOXA1
Checkbox1Value    Unchecked
Checkbox1Visible    True

In the FileSystem/User’s Desktop I have the shortcut defined and the
properties are:
AlwaysCreate    False
Condition        CHECKBOXA1=Checked
Transitive        True

I have tried all permutations of the condition I can think of (Checked, 1,
0, nothing) even named the checkboxes differently. Nothing helps. Can
somebody help?
Bryan Phillips - 28 Oct 2006 18:45 GMT
To test if the checkbox is checked, enclose 1 in quotes:

CHECKBOXA1 = "1"

Bryan Phillips
MCSD, MCDBA, MCSE
Blog:  http://bphillips76.spaces.live.com

> I'm trying to create an installer for an application. The installer has a
> custom dialog with two checkboxes determining if shortcuts should get created
[quoted text clipped - 17 lines]
> 0, nothing) even named the checkboxes differently. Nothing helps. Can
> somebody help?
cnickl - 09 Nov 2006 16:22 GMT
i enclosed it i n quotes and it still installes the shortcuts regardless of
the checkbox.

> To test if the checkbox is checked, enclose 1 in quotes:
>
[quoted text clipped - 25 lines]
> > 0, nothing) even named the checkboxes differently. Nothing helps. Can
> > somebody help?
Bryan Phillips - 09 Nov 2006 20:28 GMT
As a workaround, you could write a custom action to remove the shortcuts
if the checkbox is not checked.  Still, I can't see anything wrong with
what you are doing.

I would suggest downloading Orca (it's a part of the Windows Installer
SDK) and opening your MSI file to see if the data matches your
selections in the setup project.

Bryan Phillips
MCSD, MCDBA, MCSE
Blog:  http://bphillips76.spaces.live.com

> i enclosed it i n quotes and it still installes the shortcuts regardless of
> the checkbox.
[quoted text clipped - 28 lines]
> > > 0, nothing) even named the checkboxes differently. Nothing helps. Can
> > > somebody help?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.