Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Asking users if they want to install a desktop icon


5 replies to this topic

bernadettefearon

bernadettefearon
  • Members
  • 94 posts

Posted 15 August 2001 - 09:16

Hi,
Does anyone know how I can ask a user if they want to install desktop icons?
I am using 2.03,
thankyou


Ian Blake

Ian Blake
  • Members
  • 483 posts

Posted 15 August 2001 - 11:25

Your straight into the tricky stuff.

Suppose you want a desktop shortcut to Component1 of  Feature1.

1.  Create a new feature specially for the desktop icon,
lets call it DesktopIcon1
2.  Set the display type to "Not Visible"
3.  From the Advanced Views, Setup Design Tree select DesctopIcon1 Right click, Insert Components.  choose Component1. (You are allowed to add a component to more than one feature).
4.  Expand Component1 Select shortcuts and create a shortcut under the desktop node.
5. Create a dialog n the usual way with radio buttons for Yes/No and Property RadioButtonProperty
6.  From the dialog behavour node select the next button and the event page.
Create two events

Event:  AddLocal
Argument: DesktopIcon1
Condition:  RadioButtonProperty="Yes"

Event: Remove
Argument: DesktopIcon1
Condition: RadioButtonProperty="No"

Optional bit: In the execute sequence add a CA to check status of Feature1 and ensure DestopIcon1 is absent when Feature1 is absent.

There are other ways of doing this and you will find other posts discussing this problem.  This is just my idea for solving the problem.


bernadettefearon

bernadettefearon
  • Members
  • 94 posts

Posted 15 August 2001 - 16:40

Ian
Thanks a million (again!)
I did as you said and i think it was correct but now the installshield is doing something really wierd on me, it gives me this error
Dialog DesktopIcons for language English (United States) built
** Error -4103: Error adding radio button Radio_Group_Desktop_Ask1
However I do not have a radio button called this in this dialog or indeed anywhere - I deleted it. Is this a bug in Installshield?
When I run my installer it will not go further than where I have specified this in the sequence.
Do you know what might be causing this?
Thanks
Berni

Ian Blake

Ian Blake
  • Members
  • 483 posts

Posted 15 August 2001 - 17:02

You may have seen a thread in general "ISWI is not a serious IDE"

http://www.installsite.org/forum1/cgi-bin/ikonboard/topic.cgi?forum=4&topic=450

You will not like the first paragraph.

I hope you have been checking into version control regularly.  No?   Made a back up everyday, No?  

This is the biggest most disgusting bug in ISWI.  99.99% of ISWI developers have to restart their project when this happens.  However I may have a solution tomorrow.


Ian Blake

Ian Blake
  • Members
  • 483 posts

Posted 16 August 2001 - 09:28

See
http://www.installsi...rum1....<p>Then try to create your radio buttom group again.