I have a registry key that I want to install with different values depending
on whether the installation is per machine or per user. This works fine on
Windows XP but on Windows 98 the key goes through the per user route even
when doing a per machine install. Is there some kind of gotcha for Windows
98 or am I just doing things the wrong way? The fragment in question looks
like this:


    <Fragment>
        <DirectoryRef Id="APPLICATIONDATAFOLDER">
            <Component Id="PerMachineRegistry"
Guid="{93D89901-8F33-4857-852F-F729261835CF}">
                <Condition>(ALLUSERS=1 OR (ALLUSERS=2 AND
Privileged))</Condition>
                <RegistryValue Id="PerMachineConfigDirRegEntry" Root="HKMU"
Key="[INSTREGKEY]"
                               Name="DefConfigDir" Action="write"
Type="string" Value="%CommonAppData%\MyApp" />
                <RemoveRegistryKey Action="removeOnUninstall" Root="HKMU"
Key="[INSTREGKEY]" />
            </Component>
            <Component Id="PerUserRegistry"
Guid="{54E49F51-E7AC-40DC-AA6E-DEB3706B28CB}">
                <Condition>(ALLUSERS="" OR (ALLUSERS=2 AND NOT
Privileged))</Condition>
                <RegistryValue Id="PerUserConfigDirRegEntry" Root="HKMU"
Key="[INSTREGKEY]"
                               Name="DefConfigDir" Action="write"
Type="string" Value="%LocalAppData%\MyApp" />
                <RemoveRegistryKey Action="removeOnUninstall" Root="HKMU"
Key="[INSTREGKEY]" />
            </Component>
        </DirectoryRef>
    </Fragment>

(Or should I just forget about Win98? :-)
-- 
View this message in context: 
http://www.nabble.com/Windows-98-and-ALLUSERS-tf3332569.html#a9266532
Sent from the wix-users mailing list archive at Nabble.com.


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