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?
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?