User-selected location for shortcuts

Got a problem you cannot solve? Try here.
StuartSeath
Posts: 5
Joined: Wed Nov 17, 2004 6:37 pm

User-selected location for shortcuts

Postby StuartSeath » Fri Jul 01, 2005 6:35 am

Is there an easy (visual?) way to allow the user to control whether a shortcut appears on the desktop, in the quick launch and/or start menu?
Regards

Stuart Seath

sinan
Site Admin
Posts: 1020
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Postby sinan » Sat Jul 02, 2005 5:50 am

Sure, but I'm afraid you can't do this using InstallAware's visual view just yet :)

You will probably want to add check boxes or radio buttons to your startmenu dialog. Then, set those fields to a script variable, and before calling the dialog, assign default values to those variables, representing how you initially wish the dialog to be configured. Finally, after the dialog has been called, test each variable and call the Create Shortcut command for the appropriate locations only if the corresponding variable is set to TRUE.

Of course, you may use the visual view to create the Create Shortcut commands that will actually create the shortcuts in your desired locations, just remember to switch to the code view after that, and wrap those commands inside IF blocks that test the variables returned from the startmenu dialog.


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 35 guests