bphlpt wrote:For the entries such as <AppPath>, <StartMenuSourcePath>, etc is this just a "confirmation" of what the installer would do anyway or can it over-ride the installer somehow? ie if the installer' values and the values in these entries are different, then what happens?
In the case of <StartMenuSourcePath> there is no choice, it is required to be supplied beforehand. As of yet, SetupS has no way to determine where the installer placed the shortcuts. If <AppPath> is not supplied or is invalid, then SetupS DOES have the ability to seek out that path but it does that by looking at the shortcuts in <StartMenuSourcePath>
bphlpt wrote:For ssApps, the section <ShortcutS> ONLY applies to EXTRA shortcuts. The shortcuts created during the normal installer execution are controlled/modified using the <Flags>/<ShortCutNamesKeep> sections and for those you really can only indicate to keep them or not. To modify/move them you really need to supress them via <Flags> then create new ones with <ShortcutS>. Do I understand correctly?
Mostly I think you do.
But I feel I should add some clarification here.
Yes, you should use <ShortcutS> for ssApp's to create any extra shortcuts not created by the Installer/Setup but it's not limited to this task ONLY.
See, even though <ShortcutS> is not required for the ssApp's initial install, SetupS does create this section for the .app file inside the <AppPath> folder. This file and the ones for ppApps & ppGames are FULL shortcut defs for ALL the shortcuts. BTW, this file is how the Shortcuts.Generator gets it's info (for all apps and games installed by SetupS)
And this <ShortcutS> section (in fact the entire .app-file) can be copied back to your install-source. Now, you have up-front all the shortcuts that will be created. This would be handy if you wanted to modify these shortcuts to your liking.
<ShortCutNamesKeep> is a list of those shortcuts one wants to keep when the <Flag> KeepAll = off. And the very first shortcut in this list is a special "keep" for those shortcuts destined for the Desktop, Startup, Sendto, or Quicklaunch. BTW, this section also works with ppApps/ppGames too.
Now, of course the <ShortcutS> section is required for ppApps and ppGames since there is no installer to create their shortcuts. This is where SetupS comes in to create them. Also, for ppApps/ppGames, if the <ShortCutNamesKeep> is empty then the very first shortcut in this list serves the same purpose as in the <ShortCutNamesKeep> section... that is for creating shortcut(s) for the Desktop/Startup/Sendto/Quicklaunch.
As an added note here, an alternate tag for the <ShortcutS> section is <ppApps>. Though kind of ambiguous for ppApp shortcuts -- and makes no sense for ssApps or ppGames -- it was a legacy tag that hasn't quite been depreciated yet.
So bottom-line, by coordinating the information between these two sections (<ShortCutNamesKeep> and a Full/complete <ShortcutS>) then you create extra layers of flexiblity to the ssTEK previously unheard of