Windows 98 and ALLUSERS

4 messages Options
Embed this post
Permalink
Mike Robertson

Windows 98 and ALLUSERS

Reply Threaded More More options
Print post
Permalink
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? :-)
Rob Mensching-2

Re: Windows 98 and ALLUSERS

Reply Threaded More More options
Print post
Permalink
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#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
[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
Mike Robertson

Re: Windows 98 and ALLUSERS

Reply Threaded More More options
Print post
Permalink
> Well, Microsoft has given up on 9x...

I know... but I still have people out there that haven't for some reason.

> ALLUSERS behaves very strangely on 9x.  From the documentation:

If I run the install with logging enabled I see ALLUSERS=1 and Privileged=1 which kind of implies that I should have taken the per-machine route in the fragment I posted? And my HKMU registry addressing got me to HKLM rather than HKCU which points in the same direction?

> What does %CommonAppData% and %LocalAppData% resolve to?

They work OK on Vista :-) On earlier platforms the app has code to pull in appropriate folders when the enviroment variable doesn't exist.
Peterson, Joel

Re: Windows 98 and ALLUSERS

Reply Threaded More More options
Print post
Permalink
> I know... but I still have people out there that haven't for some
reason.

Do us all a favor and drop support for them so we don't have to support
them as well. :)

Joel Peterson
Quality Engineer
[hidden email]

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Mike
Robertson
Sent: Friday, March 02, 2007 2:37 AM
To: [hidden email]
Subject: Re: [WiX-users] Windows 98 and ALLUSERS


> Well, Microsoft has given up on 9x...

I know... but I still have people out there that haven't for some
reason.

> ALLUSERS behaves very strangely on 9x.  From the documentation:

If I run the install with logging enabled I see ALLUSERS=1 and
Privileged=1
which kind of implies that I should have taken the per-machine route in
the
fragment I posted? And my HKMU registry addressing got me to HKLM rather
than HKCU which points in the same direction?

> What does %CommonAppData% and %LocalAppData% resolve to?

They work OK on Vista :-) On earlier platforms the app has code to pull
in
appropriate folders when the enviroment variable doesn't exist.
--
View this message in context:
http://www.nabble.com/Windows-98-and-ALLUSERS-tf3332569.html#a9267349
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=DEVDE
V
_______________________________________________
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