Pergunta

Estou lendo roteiro WIX escrito por outros. Há algum código realmente me confunde.

<Custom Action='UnLoadSchedulerPerfCounters' After='InstallInitialize'>
    <![CDATA[(Installed) AND (!Scheduler = 3)]]>
</Custom>
<Custom Action='RollbackSchedulerPerfCounters' After='WriteRegistryValues'>
        <![CDATA[(&Scheduler = 3)]]>
</Custom>

Então, qual é a diferença entre !Scheduler e &Scheduler? É qualquer significado especial quando a propriedade é prefixo-ed por & ou !?

Foi útil?

Solução

A partir http://www.tramontana.co.hu/wix/ lesson5.php # 5.3 :

Prepending alguns caracteres especiais para os nomes lhes dará adicional ou seja:

%     environment variable (name is case insensitive)
$     action state of component
?     installed state of component
&     action state of feature
!     installed state of feature

A última quatro podem retornar o seguinte valores inteiros:

-1   no action to be taken
1    advertised (only for components)
2    not present
3    on the local computer
4    run from the source

Outras dicas

Esses são os operadores sobre a sintaxe condição Windows Installer. Veja esta documentação MSI SDK para obter uma lista completa: http://msdn.microsoft. com / en-us / library / aa368012.aspx .

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top