1. Well, Microsoft has given up on 9x... <smile/>
2. ALLUSERS behaves very strangely on 9x. From the documentation:
"Windows 95, Windows 98, and Windows Me: The installation is per-user or per-machine depending upon the operating system configuration. If Profiles are on and the Start menu is per-user, the Installer does a per-user installation. If Profiles are on and Start menu is shared, the Installer does a per-machine installation. If Profiles are not on and Start menu is shared, then the Installer does a per-user installation."
3. What does %CommonAppData% and %LocalAppData% resolve to? I don't seem to have those environment variables on my XP box.
-----Original Message-----
From:
[hidden email] [mailto:
[hidden email]] On Behalf Of Mike Robertson
Sent: Friday, March 02, 2007 1:26 AM
To:
[hidden email]
Subject: [WiX-users] Windows 98 and ALLUSERS
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#a9266532Sent 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users-------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users