Controllare se crystal report è installato

giovedì 27 marzo 2014 - 21.45
Tag Elenco Tags  VB.NET  |  .NET 4.0

Mau67 Profilo | Expert

Ciao al forum,
come ho accennato nel titolo vorrei sapere come fare a sapere da un programma in visual basic 2012 se crystal report per visual studio 2012 è installata?
Grazie
Mau67

algraps Profilo | Junior Member

Ciao,
lo devi fare nel setup project o nel codice?
Nel primo caso puoi inserire questa condizione nel progetto:

<Property Id="CRVSINSTALLED2">
<RegistrySearch Id="CRVSInstalledSearch2" Root="HKLM" Key="Software\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports" Name="CRRuntime32Version" Type="raw" />
</Property>
<Condition Message="You don't have Crystal Reports for Visual Studio 2010 (v. 13.0.3) installed 2.">
<![CDATA[CRVSINSTALLED2 >= "13.0.3"]]>
</Condition>

http://www.codeproject.com/Articles/15863/Add-your-own-custom-prerequisite-to-quot-ClickOnce

nel secondo caso invece puoi controllare nella GAC se ci sono i suoi assamblies...

Ciao e fammi sapere
Al.
A.G.
http://nothingnessit.wordpress.com/

freeteo Profilo | Guru

Ciao,
aggiungo la ricerca eventuale nel registry della presenza della chiave relativa, usando la classe "Registry" del framework.

Ciao.

Matteo Raumer
[MCAD .net, MVP Visual C#]
http://blogs.dotnethell.it/freeteo
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?

Dopo esserti registrato potrai chiedere
aiuto sul nostro Forum oppure aiutare gli altri

Consulta le Stanze disponibili.

Registrati ora !
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5