Hi André,

I realy don't know what is wrong.

Maybe you should try to use the <![CDATA[Condition]]> to avoid
conflicts with XML.

But I know that you cannot write to the registry during
uninstallation using standard action WriteRegistryValues.

If you need during uninstallation to write something to registry you
should write the CustomAction for it.

regards

Stefan



André Pönitz wrote:
> 
> Hi all.
> 
> I want to write a certain registry key during an installation
> and the same key with a different value during uninstall.
> 
> So I thought I could have something like 
> 
>   <Component Id='install_reques' Guid='x'>
>     <RegistryValue Id='InstallNetlmCommand' Root='HKLM' 
> Key='$(var.InstallerHKLM)\Netlm'
>       Name='InstallCommand' Action='write' Type='string' Value='msiexec /i 
> [SourceDir] netlm.msi' />
>      <Condition> (&Netlm = 3) AND NOT (!Netlm = 3) </Condition>
>    </Component>
> 
>   <Component Id='uninstall_request' Guid='x'>
>      <RegistryValue Id='InstallNetlmCommand' Root='HKLM' 
> Key='$(var.InstallerHKLM)\Netlm'
>           Name='InstallCommand' Action='write' Type='string' Value='msiexec 
> /qb /x "{x}"'/>
>      <Condition> (&Netlm = 2) AND (!Netlm = 3) </Condition>
>   </Component>
> 
> under the main <Feature> ('Netlm' is a sub-feature) 
> 
> but I get:
> 
> u:\src\fesetup\wix\setup.wxs(562) : error CNDL0104 : Not a valid source file; 
> detail: Beim Analysieren von 'EntityName' ist ein Fehler aufgetreten. Zeile 
> 562, Position 22.
> 
> ["When analizing 'EntityName' an error occured"].
> 
> It compiles when I replace the condition with, say, '1'.
> 
> What am I doing wrong here?
> 
> Andre'

-- 
Stefan Pavlik | [EMAIL PROTECTED]
Whitestein Technologies | www.whitestein.com
Panenska 28 | SK-81103 Bratislava | Slovak Republic
Tel +421(2)5930-0735 | Fax +421(2)5443-5512

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to