CA
(1)
ZsuzsaThe
(1)
NET
(1)
VS
(1)
Location
(1)
Install
(1)
Value
(1)
Property
(1)

Installing in variable location

Asked By zsuzs
25-Jan-07 11:04 AM
Hello

I am trying to build an installer for a a plug-in. My problem is that there
can be many different host programs. If I include a dialog with four radio
buttons for example, how can I link a different installation path to each
button? Is there a simple way around this problem?

Thanks
zsuzsa

The most straight-forward way would be to assign a property to the group and

Asked By Rob Hamflett
25-Jan-07 11:26 AM
The most straight-forward way would be to assign a property to the group and assign a value to each
radio button.  When the user has made their selection and clicks next (or at some later time), have
4 Custom Action, each of which sets the install location to one of the pre-existing folders.
Condition each Custom Action based on the property and you should be OK.

Spelt out a bit more explicitly:

Defines CAs:
CA1 = Set install location 1
CA2 = Set install location 2
CA3 = Set install location 3
CA4 = Set install location 4

Setup Radio Button Group:
Radio Button Group has property LOCATION
Button 1 has value 1
Button 2 has value 2
Button 3 has value 3
Button 4 has value 4

After the user has made the selection, run these actions:
CA1 - condition: LOCATION=1
CA2 - condition: LOCATION=2
CA3 - condition: LOCATION=3
CA4 - condition: LOCATION=4

Rob

Thank you Rob. It was really helpful what you wrote.

Asked By zsuzs
26-Jan-07 05:16 AM
Thank you Rob.
It was really helpful what you wrote. Unfortunately this is the first time I
work with .msi, so my next question is how I can define the CA-s? Can I just
add them in Orca, or I must create a script or similar?

zsuzsa

If we're getting into implementation details I'll need to know what you're

Asked By Rob Hamflett
26-Jan-07 05:23 AM
If we're getting into implementation details I'll need to know what you're using to create your
installer.  I use WiX, so if you're using something different I won't be of much help.

Rob
Installing in variable location
Asked By zsuzs
26-Jan-07 06:36 AM
It was built using VS.NET Setup and Deployment Project.
Post Question To EggHeadCafe