PDA

View Full Version : Customized Start Menu location



SGorman
06-20-2005, 02:10 PM
I need to allow my user to select the location under Start Menu to which the product shortcut should be installed.

Is there any way to do this in Basic MSI?

chris_p
06-21-2005, 04:06 AM
you could add a dialog in which the user enteres the path,
and then change the shortcut target path using a Set Directory custom action

SGorman
06-21-2005, 10:12 AM
But that only happens at runtime. How do I get an entry added into the Directory table at design time so that when I go to the shortcuts view I can right click on Shortcuts and do Show Folder and select a property that I can set at runtime using the Set Directory custom action?

chris_p
06-22-2005, 03:02 AM
One way is to use the direct editor.
Go to the Directory table,
Add a new entry,
set its Directory_Parent to "ProgramMenuFolder", and
enter a sensible default value in DefaultDir. You can use a value of "." to have it point to the same dir as its parent.