installs to user profile. It must use a registry key under HKCU as its KeyPath, not a file.

2,071 views
Skip to first unread message

hohums

unread,
Nov 6, 2012, 1:39:38 PM11/6/12
to firebre...@googlegroups.com
Thanks for your help so far,  Richard you are amazingly responsive.

I still haven't solved the internet explorer issue however I suddenly started getting these error messages.  I'm not sure what is causing them.  I was able to make a build before.  As far as I can tell I haven't changed anything since I was able to make a good msi before.  I can't seem to find any help online with anyone having similar issues.  I tried creating my build directory however that didn't help.

npGameCloud_auto.wxs(8) : error LGHT0204 : ICE38: Component cmpD674A5AAE9C0D38939FBE5F30B16F5DC installs to user profile. It must use a registry key under HKCU as its KeyPath, not a file.
npGameCloud_auto.wxs(8) : error LGHT0204 : ICE57: Component 'cmpD674A5AAE9C0D38939FBE5F30B16F5DC' has both per-user and per-machine data with a per-machine KeyPath.

My auto.wxs and np.wxs is below incase that helps.

<?xml version="1.0" encoding="utf-8"?>
    <Fragment>
        <DirectoryRef Id="INSTALLDIR" />
    </Fragment>
    <Fragment>
        <ComponentGroup Id="PluginDLLGroup">
            <Component Id="cmpD674A5AAE9C0D38939FBE5F30B16F5DC" Directory="INSTALLDIR" Guid="{EC1954CB-FE65-4D81-AE79-FBD110EE92A0}">
                <File Id="filAA6AFCA443A29178A6AF7F27E71C8CB1" KeyPath="yes" Source="$(var.BINSRC)\npGameCloud.dll">
                    <AppId Description="FireBreathWin" Id="{B415CD14-B45D-4BCA-B552-B06175C38606}">
                        <Class Id="{2A1FB3B6-23CE-562C-A952-92EA95AE17C3}" Context="InprocServer32" Description="." ThreadingModel="apartment" Version="1" Programmable="yes" Control="yes">
                            <ProgId Id="atgamescloud.GameCloud.1" Description=".">
                                <ProgId Id="atgamescloud.GameCloud" Description="." />
                            </ProgId>
                        </Class>
                    </AppId>
                </File>
                <ProgId Id="MIME" />
                <RegistryValue Root="HKCR" Key="AppID\npGameCloud.dll" Name="AppID" Value="{B415CD14-B45D-4BCA-B552-B06175C38606}" Type="string" Action="write" />
                <RegistryValue Root="HKCR" Key="CLSID\{2a1fb3b6-23ce-562c-a952-92ea95ae17c3}\MiscStatus\1" Value="131473" Type="string" Action="write" />
                <RegistryValue Root="HKCR" Key="CLSID\{2a1fb3b6-23ce-562c-a952-92ea95ae17c3}\MiscStatus" Value="0" Type="string" Action="write" />
                <RegistryValue Root="HKCR" Key="CLSID\{2a1fb3b6-23ce-562c-a952-92ea95ae17c3}\TypeLib" Value="{098B129E-0E1C-5860-A0F0-0F005060E19C}" Type="string" Action="write" />
                <RegistryValue Root="HKCR" Key="MIME\Database\Content Type\application/x-gamecloud" Value="." Type="string" Action="write" />
                <RegistryValue Root="HKCR" Key="MIME\Database\Content Type\application/x-gamecloud" Name="Extension" Value="" Type="string" Action="write" />
                <RegistryValue Root="HKCR" Key="MIME\Database\Content Type\application/x-gamecloud" Name="CLSID" Value="{2a1fb3b6-23ce-562c-a952-92ea95ae17c3}" Type="string" Action="write" />
                <RegistryValue Root="HKCU" Key="Software\Microsoft\Windows\CurrentVersion\Ext\PreApproved\{2a1fb3b6-23ce-562c-a952-92ea95ae17c3}" Value="" Type="string" Action="write" />
                <RegistryValue Root="HKCU" Key="Software\Microsoft\Windows\CurrentVersion\Ext\Stats\{2a1fb3b6-23ce-562c-a952-92ea95ae17c3}\iexplore\AllowedDomains\*" Value="" Type="string" Action="write" />
                <RegistryValue Root="HKCU" Key="Software\Microsoft\Windows\CurrentVersion\Ext\Stats\{2a1fb3b6-23ce-562c-a952-92ea95ae17c3}\iexplore" Name="Count" Value="1277748" Type="integer" Action="write" />
                <RegistryValue Root="HKCU" Key="Software\MozillaPlugins\atgamescloud.net/GameCloud" Name="Path" Value="[#filAA6AFCA443A29178A6AF7F27E71C8CB1]" Type="string" Action="write" />
            </Component>
        </ComponentGroup>
    </Fragment>
</Wix>


<?xml version="1.0" encoding="UTF-8"?>
    <Product Id="*" Name="GameCloud" Language="1033" Version="1.0.0.0" Manufacturer="atgamescloud" UpgradeCode="{eb63cb29-3eda-5f95-a18c-81569ba52ee0}">
        <Package InstallerVersion="200" Compressed="yes" Description="Installer for the GameCloud plugin" InstallScope="perUser" />
        <Upgrade Id="{eb63cb29-3eda-5f95-a18c-81569ba52ee0}">
            <UpgradeVersion
                Property="OLD_VERSION_FOUND"
                Minimum="0.0.1" IncludeMinimum="yes"
                Maximum="1.0.0.0" IncludeMaximum="yes"
                OnlyDetect="no" IgnoreRemoveFailure="yes"
                MigrateFeatures="yes" />
        </Upgrade>
<Property Id="MSIRESTARTMANAGERCONTROL" Value="Disable" />
        <InstallExecuteSequence>
            <RemoveExistingProducts After="InstallInitialize" />
            <InstallExecute After="RemoveExistingProducts" />
        </InstallExecuteSequence>
        <Media Id="1" Cabinet="GameCloud.cab" EmbedCab="yes" />

        <Directory Id="TARGETDIR" Name="SourceDir">
            <Directory Id="AppDataFolder">
                <Directory Id="CompanyDir" Name="atgamescloud">
                    <Component Id="CompanyDirComp" Guid="*">
                        <RemoveFolder Id="RemoveCompanyDir" On="uninstall" />
                        <RegistryValue
                            Root="HKCU"
                            Key="SOFTWARE\atgamescloud"
                            Name="Uninstall"
                            Type="string"
                            Value="1.0.0.0"
                            KeyPath="yes" />
                    </Component>
                    <Directory Id="PluginNameDir" Name="GameCloud">
                        <Component Id="PluginNameDirComp" Guid="*">
                            <RemoveFolder Id="RemovePluginNameDir" On="uninstall" />
                            <RegistryValue
                                Root="HKCU"
                                Key="SOFTWARE\atgamescloud\GameCloud"
                                Name="Uninstall"
                                Type="string"
                                Value="1.0.0.0"
                                KeyPath="yes" />
                        </Component>
                        <Directory Id="INSTALLDIR" Name="1.0.0.0">
                            <Component Id="InstallDirComp" Guid="*">
                                <RemoveFolder Id="RemoveInstallDir" On="uninstall" />
                                <RegistryValue
                                    Root="HKCU"
                                    Key="SOFTWARE\atgamescloud\GameCloud\1.0.0.0"
                                    Name="Uninstall"
                                    Type="string"
                                    Value="1.0.0.0"
                                    KeyPath="yes" />
                            </Component>

                            <!-- Put Additional files here: -->
                            <!-- example:
                            <Component Id="UniqueComponentId" Guid="*">
                                <File Id="uniqueFileId" KeyPath="yes" Source="SourceDir\filename.ext" />
                            </Component>
                            /example -->
                            <!--  -->
                        </Directory>
                    </Directory>
                </Directory>
            </Directory>
        </Directory>

        <Feature Id="MainPluginFeature" Title="GameCloud" Level="1">
            <ComponentRef Id="InstallDirComp"/>
            <ComponentRef Id="PluginNameDirComp"/>
            <ComponentRef Id="CompanyDirComp"/>
            <ComponentGroupRef Id="PluginDLLGroup"/>
        </Feature>
    </Product>
</Wix>



Richard Bateman

unread,
Nov 6, 2012, 3:43:10 PM11/6/12
to firebre...@googlegroups.com

Not sure what you changed, but you are no longer running the xslt stylesheet with heat; one of the things the xslt stylesheet does is fix the error.

I can tell it isn't running because there is no namespace prefix "w:" on your first .wxs file. If you aren't seeing that then you'll have the issue you describe.

Richard

hohums

unread,
Nov 6, 2012, 4:16:23 PM11/6/12
to firebre...@googlegroups.com
Hum, your right.  It seems  changing -t: to -t didn't work as it doesn't run the xslt on subsequent runs or something.  Putting back in the t: makes it compile again.  I'm unsure how it let me compile before.  
I'm going to try installing an older version of wix.

Thanks for your help.
Reply all
Reply to author
Forward
0 new messages