sexta-feira, dezembro 19, 2008

American Museum of Natural History e Neve...



American Museum of Natural History

Jaqueline e meu cunhado Rubinho (com uma bolinha prontinha para a guerra)

Eu e Jaqueline em nosso segundo dia de neve

sábado, outubro 06, 2007

Aquarela

http://www.laboratoriodedesenhos.com.br/aquarela.htm

Acesse o Blog da Gatinha

Prezados amigos,

a Jaqueline está construindo um Blog sobre Educação e precisa de acessos pois o mesmo é um trabalho para uma das disciplinas que ela está cursando na Faculdade. Por favor, acessem : http://www.sabercomsabor.blogspot.com

terça-feira, agosto 07, 2007

Delphi on Windows Vista

Resumo da ópera

  • Instalar manualmente o .NET 1.1
  • Tirar o read-only da pasta BIN
  • Dar premissão de escrita à pasta BIN

     
     


 
 

Delphi 2006

Apart from installing and using Delphi 7 on Windows Vista, I also wanted to use Delphi 2006 - the latest release of Delphi (at the time of writing). Note that Delphi 2006 supports Win32 as well as .NET 1.1, and actually requires the .NET Framework version 1.1,

The Delphi 2006 installation CD starts with the installer offering the following choices:


Installing Borland Developer Studio 2006 (aka Delphi 2006) on Windows Vista triggers the BDS Bootstrap Utiliy, which will find a lot of missing things...


First of all, Windows Vista includes the .NET Framework 2.0 and 3.0, but doesn't come with the .NET Framework version 1.1. And since the Delphi 2006 IDE needs the .NET Framework 1.1, we need to install it:


After the .NET Framework 1.1, we are asked if we want to install the Service Pack #1 for the .NET Framework 1.1.


If you clicked on the "Yes" button in the above dialog, however, the result is not the installation of the .NET Framework 1.1 Service Pack #1, but rather the following dialog, telling us that KB867460 was invoked incorrectly.


Curiously enough, if you just close the above dialog, the installtion of Delphi 2006 will continue as if nothing bad has happened. It appears that the .NET 1.1 Service Pack 1 isn't correctly invoked on Windows Vista, so we have to manually do that by running NDP1.1sp1-KB867460-X86.exe from the dotnetRedist directory on the Delphi 2006 CD.

Note that after the .NET 1.1 SP1 is installed, we get a message that we have to reboot the machine. And after the reboot, you'll get another message telling you that a startup application was blocked. This turned out to be netfxsetup.exe which you can allow by using the icon in the system tray.

Then, the actual installation of Delphi 2006 will start, and continue without further problems.


Finally, when Delphi 2006 is installed, we can start it. This will result in an error message, related to the first error message we encountered when starting Delphi 7 (although the Delphi 7 error message was a bit clearer in my view).

The actual error line is the "Access is denied." message:


The error is shown for all .NET specific personalities. C# (above), Delphidotnet (below) as well as vb (below Delphi for .NET):


 
 


The errors are related to the User Account Control (UAC) that I mentioned earlier, and especially the fact that the BDS IDE is not allowed to write to the Borland\BDS\4.0\Bin subdirectory in the Program Files directory.

The easiest workaround that I found for this issue, was to "open" up the Bor-land\BDS\4.0\Bin directory to all users, and allow them to write in there. An alternative might be to give the BDS application these rights (which feels a bit safer). I'm not sure yet what the best solution is, but at least adding the "Modify" permission to the Borland\BDS\4.0\Bin directory works for me:


You may want to add similar permissions to the Borland\BDS\4.0\Demos directory, especially if you want to open the demo applications and compile them in their original location.


The alternative of course is to copy the relevant demo to a location in your local user profile, and open the project from there.

Update #2

When Delphi 2006 is installed, we should also install Update #2 (and the Hot Fixes in the so-called HotFix Rollup). When you try to run the Update 2 msp file, however, it will complain that is it for the wrong version of Borland Developer Studio (which is nonsense, but is caused by the fact that it cannot find the installation database).


We have to manually start the installation of Update #2, by using a command prompt to go to the directory where the Update #2 msp file is located. Note that a "Run as Administrator" command prompt is needed. The actual command line is as follows:

msiexec /update bds2006_en_arch_upd2.msp

Note that the "en" and "arch" parts here may be different for your specific version of Delphi 2006. This will run the Update #2 installer, after which you can also apply the HotFix Rollup, which like Update #2 is available for all registered Delphi 2006 users. The HotFix Rollup is an single executable that will not give any further compatibility problems when applying.

Summary

Although Windows Vista was released after Delphi 2006, it's good to know that it's not a real problem trying to install and run Delphi 2006 on Windows Vista. You have to play by the new rules when writing applications for Windows Vista, but that's another story for another day.

A final nice pre-Vista touch can be observed when looking at the Delphi 2006 About Box, which isn't able to recognize Windows Vista, and just reports Windows 2000 (Build 6000) as operating system: