Family Tree Mike
1/26/2010 12:44:00 PM
"John" wrote:
> Hi
>
> >The retrieval of the values then can be used to set the condition property
> >of the shortcut install. "
>
> This is the part I am stuck at. What code/settings do I need to accomplish
> this?
>
> Many Thanks
>
> Regards
>
>
Well, what I thought you would do is to set the condition on the shortcut in
the File System View, but the shortcuts on the desktop don't seem to have a
condition property. The User's Desktop has the condition property.
If you added a two radio button gui to your setup project, the properties
for the dialog let you set the properties for the options. You can set a
value for Button1Value and Button2Value, which default to 1 and 2. The
ButtonProperty property was how I thought you set the condition to the
shortcut, by setting the "Condition" property to something like
"[INSTALLSC]=1". You could do this on the entire "User's Desktop" folder,
but this sounds like it wont work for you.
I don't recall the steps of creating a desktop icon in a custom action, but,
that question has been asked here before. What you would do is create a
custom action dll. Instead of a condtion though, you would pass the actuall
property ([INSTALLSC]) to the dll. The dll then looks if they chose a value
of button 1 or button 2. To pass the value to the dll, you would use this in
the CustomActionData property: /Option="[INSTALLSC]", and in the custom
action you retrieve the value with: Me.Context.Parameters("INSTALLSC").
(BTW, I usually use C#, so I use this.Context.Parameters["INSTALLSC"], but I
think I translated correctly.)
I hope this helps get you closer.
Mike