2013/9/30 Charles Jenkins <cejw...@gmail.com>:
> As always, thank you all for trying to help.
>
> Rob, I took your and Phil's advice and scoped out the Event Log. Indeed it 
> appears the missing component is that user-specific registry key that I 
> personally don't want anyway, but MSI seems to require:
>
> Detection of product '{EC784F33-0A7C-4899-875B-5ADC75D7A670}', feature 
> 'ProductFeature', component '{D3EB384F-AA52-4AAF-AD55-F610C55DC2C7}' failed. 
> The resource 'HKEY_CURRENT_USER\Software\TEC\TEC Timesheet\' does not exist.
>
> I tried commenting out just the RegistryKey line, but that gets me the 
> familiar error "ICE38: Component StartMenuDir installs to user profile. It 
> must use a registry key under HKCU as its KeyPath, not a file."
>
> I'm wondering if the root of the problem is that StartMenuDir installs into a 
> user profile. What I'm trying to do is create a program menu folder for all 
> users. Have I just chosen completely the wrong approach?

The registry key should be in HKLM to avoid your
product-getting-repaired problem (I don't know why that causes a
reboot, but I think that's beside the point; this shouldn't need a
reboot-less repair either). So your real problem is now ICE38. I can't
figure out why it's saying the component installs to user profile. The
ProgramMenuFolder property should be getting set to the 'all users'
start menu if you have Package/@InstallScope="perMachine" (which you
do).

But let's take a step back. Your StartMenuDir component only has two
things: the RemoveFolder, and the registry key. The shortcut directory
is not in that component, because directories don't "belong to
components" to begin with, they are created when needed (in this case
when creating the shortcut). Is it normal/correct to have the
RemoveFolder in a different component? Is there any reason why it
can't go to the main component with the .exe and the shortcut? If so,
you won't need the registry key at all.

Perhaps ICE38 is getting confused and saying the component installs to
a user profile because it doesn't install anything at all :)

Disclaimer: This is from reading lots. I have little actual
*experience* with WiX. You may want to wait for people who know what
they are talking about (eg. Rob) to correct me.

-- 
Nicolás

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to