Tony Hoyle wrote:
> André Pönitz wrote:
> >  
> > Tony Hoyle wrote:
> >>> Simply using [StartupFolder]\Programme does not cut it as the 'Programme'
> >>> part is language-dependend.
> >> ProgramMenuFolder
> > 
> > But with ALLUSERS=0 [ProgramMenuFolder] is in the user's hierarchy
> > whereas StartupFolder and StartmenuFolder are under 'All Users'
> > 
> > I basically want access to 'All Users\Program Files'
> > [if that make sense...]
> > 
> 
> If ALLUSERS=0 then you're installing for the local user only 
> - modifying 
> the global program files menu in this case would be an error.

Well, my people will always run the installer with ALLUSERS=1.
However the thing needs to pass validation and the ICEs do not seem to
resolve properties. So it does not need to actually work with ALLUSERS=0,
it should just look to the ICEs like it would.

I just found a pretty ugly hack to get rid of the (bogus IMO...)
ICE 38/43/57 errors:

    <Directory Id='ProgramMenuFolder' Name='Programs'>
        <Directory Id='ProgramMenuDir' Name='WASY'>
            <Component Id='...'>
               <RemoveFolder Id='...' On='uninstall' />
               <RegistryValue Id='StartMenuFeflow' Root='HKCU' 
Key='Software\WASY\Dummy'
                  Name='Feflow' Action='write' Type='integer' Value='0' 
KeyPath='yes' />
               <Shortcut Id='...' Directory='ProgramMenuDir'
                  Name='FEFLOW ...' WorkingDirectory='TARGETDIR'
                  Target='[INSTALLDIR]bin32\feflow.exe' />
            </Component>
         </Directory>
    </Directory>

The problem is that the ICEs think that ProgramMenuDir is a per-user
setting (which it is for ALLUSERS=0, but not in the scenario my users
will see) and so it requires a registry value in HKCU as keypath.
So I just give them one, even if this is never used.

Does anybody see anything wrong (apart from being a horrible hack...)
with this approach?

Andre'

PS: Anyone out there who's already build a Vista-Logo-Program
'compatible' Wix v3 installer with start menu entries?

-------------------------------------------------------------------------
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