Friday, March 23, 2012
Installing a DLL file in crystal reports 9.0
I had written a .dll file using VB 6.0 in a system.
Then i copied the dll to an another system which is having crystal reports 9.0.
here i have registered this dll in command prompt by c:\>regsvr32 "FILE".DLL
the message came as dll file successfully registered, then i placed a cop y of the dll file in
c:\programfiles\commonfiles\crystaldesicions\2.0\bin folder.
but i yet i am not able to access the function, even though i have named my dll file with "crufl" prefix.
could u suuggest me what could be the problem be...What is the error you got?
You need to create Package and deploy it in other system using Package and Deployment wizard of VB
Wednesday, March 7, 2012
Installation of SQL Express from my MSI
I think that I need to do a nested install of the SQL Express MSI from my MSI. I've found several msi's in the setup subdirectory, but which do I needs to call, in what order, and how do I configure them to install the engine in my own named instance of SQL Express?
ThanksMichael,
You need to write a bootstrapper for your application because SQL Server Express is ultimately an MSI based installation and Windows Installer cannot run more than a single MSI at a given time - in other words, an MSI cannot call another MSI. Don't let the fact that SQL Server Express is wrapped in a self-extracting executable fool you. SQLEXPR.EXE expands into a setup.exe and several MSIs. Setup.exe is launched automatically which will then call each of the MSIs in serial fashion. We're working on a white paper that walks through exactly how to embed Express in a custom application but it's not quite ready yet.
In the mean time, you should expand the SQLEXPR.exe package to a folder using SQLEXPR.exe /X, you'll be prompted for a folder to expand to. Once the package has been expanded take a look at the template.ini file. This will give you a list of command line parameters you can use for installing Express. These can be passed directly into SQLEXPR.exe which will in turn pass them to Setup.exe. Passing the /qn switch will cause SQL Server Setup to run in fill quiet mode - no GUI.
Your command line should look something like "sqlexpr.exe /qn ADDLOCAL=SQL_Engine INSTANCENAME=Foobar"
I believe that Visual Studio has help information on creating a setup bootstrapper.
Good luck and keep your eyes open for the white paper - it'll be posted to MSDN.
Cheers,
Dan