On 1/25/07, Bob Arnson <[EMAIL PROTECTED]> wrote:

Scott Palmer wrote:
> The "Company Name" folder is already present in the start menu from
> installation of a different product, but the "My Product" sub-folder
> is not created for this product.  (There is another product installed
> that has shortcuts, in a sibling folder call it "Company Name/My Other
> Product" , the shortcuts work fine for it.
>

The log doesn't show any attempt to create a shortcut so it's not a
failure.



It failed to even try, that's something :-)


That's something. I hate to bring up the whole "shortcuts are
evil" threads of the past, but you might want to take a look at how
WiX.msi does it, both with advertised shortcuts and with
RemoveFolder/RegistryKey/RegistryValue.


My next step was to try non-advertised shortcuts... I wanted to avoid
polluting the registry with token values just to get a shortcut, but
ultimately that doesn't matter.


Also note that when I install a different feature of this product, all
> of the expected shortcuts DO get created, including this one for
> "ConfigComp"

So what does its verbose log look like?


The shortcut creation does show up... everything else looks the same.
...
MSI (s) (48:E0) [11:53:34:243]: Component: ConfigComp; Installed: Absent;
Request: Local;   Action: Local
...
MSI (s) (48:E0) [11:53:38:072]: Doing action: CreateShortcuts
Action 11:53:38: CreateShortcuts. Creating shortcuts
Action start 11:53:38: CreateShortcuts.
CreateShortcuts: Shortcut: Creating shortcuts
Action ended 11:53:38: CreateShortcuts. Return value 1.
...
MSI (s) (48:E0) [11:53:51:714]: Executing op:
ActionStart(Name=CreateShortcuts,Description=Creating
shortcuts,Template=Shortcut: [1])
Action 11:53:51: CreateShortcuts. Creating shortcuts
MSI (s) (48:E0) [11:53:51:729]: Executing op:
SetTargetFolder(Folder=23\Company Name\My Product\)
MSI (s) (48:E0) [11:53:51:729]: SHELL32::SHGetFolderPath returned:
C:\Documents and Settings\All Users\Start Menu\Programs
MSI (s) (48:E0) [11:53:51:729]: Executing op:
ShortcutCreate(Name=9dfpc39g|Media Manager
Console,Feature=ConsoleFeature,Component={975FD86C-9800-48B3-8932-0F9F65389C44},,Arguments=-c
"C:\Program Files\Company Name\My
Product\conf\mm-console.conf",WorkingDir=C:\Program
Files\Company Name\My Product\,,,,,)
CreateShortcuts: Shortcut: 9dfpc39g|Media Manager Console
..........
MSI (s) (48:E0) [11:53:51:729]: Executing op:
ShortcutCreate(Name=dkctsg5s|MM Config
Wizard,Feature=ConsoleFeature,Component={BA4808AF-DDCF-408B-B0C3-4D7173F8AE57},,Arguments=-c
"C:\Program Files\Company Name\My
Product\conf\mm-configwizard.conf",WorkingDir=C:\Program
Files\Company Name\My Product\,,,,,)
CreateShortcuts: Shortcut: dkctsg5s|MM Config Wizard
..........
MSI (s) (48:E0) [11:53:51:729]: Executing op:
ShortcutCreate(Name=aqdelpkq|Broadcast Manager User's
Guide,Feature=DocumentationFeature,Component={8D09A6BC-6747-40DE-8F1F-929C76A9F571}[~]1,,,WorkingDir=C:\Program
Files\Company Name\My Product\,,,,,)
CreateShortcuts: Shortcut: aqdelpkq|Broadcast Manager User's Guide
MSI (s) (48:E0) [11:53:51:745]: Executing op:
ShortcutCreate(Name=wxxiakgy|Transcode Manager User's
Guide,Feature=DocumentationFeature,Component={8D09A6BC-6747-40DE-8F1F-929C76A9F571}[~]1,,,WorkingDir=C:\Program
Files\Company Name\My Product\,,,,,)
CreateShortcuts: Shortcut: wxxiakgy|Transcode Manager User's Guide
MSI (s) (48:E0) [11:53:52:167]: Executing op:
SetTargetFolder(Folder=23\Company Name\My Product\)
MSI (s) (48:E0) [11:53:52:167]: SHELL32::SHGetFolderPath returned:
C:\Documents and Settings\All Users\Start Menu\Programs
MSI (s) (48:E0) [11:53:52:167]: Executing op:
ActionStart(Name=WriteRegistryValues,Description=Writing system registry
values,Template=Key: [1], Name: [2], Value: [3])

This seems to only tell me what I already know.  The shortcut is installed
with the component when I choose one feature, but it is not installed with
the component when I choose a different feature.. yet the file in the
component is installed in both cases.


Is there an explicit create of
the shortcut directory? and shortcut itself?


My WiX source file never does an explicit create on any of folders related
to shortcuts, though there are some explicit deletes to clean up properly.
The  component definition in the WiX file is the same, so it is the same
<Shortcut> element that works when I install a different feature that
includes the component.

It's just odd.

Scott
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to