CD AutoRun basics CD AutoRun basics
AutoRun runs a program when a CD is inserted into a Windows computer - see below for advice on Apple Macs. AutoRun executa um programa quando um CD for inserido em um computador Windows - veja abaixo para aconselhamento sobre a Apple Macs.
If Windows finds a (plain text) file called AUTORUN.INF in the root directory of a CD then it follows the instructions in this file to run a program. Se o Windows encontra um (texto simples) arquivo chamado AUTORUN.INF no diretório raiz de um CD, então segue-se as instruções deste arquivo para executar um programa. This example AUTORUN.INF file tells Windows to run program setup.exe (from the root directory of the CD): Este exemplo AUTORUN.INF arquivo informa o Windows para rodar programa setup.exe (a partir do diretório raiz do CD):
[autorun]
open=setup.exe aberto = setup.exe
icon=snazzie.ico icon = snazzie.ico
Use the Windows Notepad application to edit plain text files (it is in the Start All Programs Accessories menu). Use o Windows Notepad pedido para editar arquivos de texto simples (é, no menu Iniciar Todos os programas Acessórios).
Your CD users may have switched off AutoRun. Seu CD utilizadores poderão ter desligado AutoRun. This might be because they are concerned about viruses. Isso pode ter acontecido porque estão preocupados com o vírus. Also, if they press the Shift key down while inserting the CD, AutoRun is disabled. Além disso, se pressionar a tecla Shift enquanto que estabelece a inserção da CD, AutoRun está desativado. In Windows NT4, 2000 and XP systems, only Administrators and Power Users can use AutoRun. No Windows NT4, 2000 e XP sistemas, só os administradores e usuários avançados podem utilizar AutoRun.
There is no way to force your users to use AutoRun. Não há nenhuma maneira de forçar os usuários a utilizar AutoRun. It is therefore good practice to provide instructions so that users know how to start your CD, eg tell them to open file index.htm in their browser. É, portanto, boas práticas de fornecer instruções para que os usuários saber como iniciar o seu CD, por exemplo, dizer-lhes index.htm para abrir o arquivo no seu navegador. These instructions are also required if your CD might be viewed by non-Windows users. Essas instruções são igualmente necessários se o seu CD pode ser visualizado por não-usuários do Windows.
So why is ShellRun needed? Então porque é ShellRun necessária?
Until recently, it was not possible for Windows to AutoRun a file rather than a program. Até recentemente, não foi possível para o Windows AutoRun para um arquivo em vez de um programa.
OK, that’s not strictly true: you could use the following AUTORUN.INF to show web page index.htm OK, isso não é absolutamente verdade: você poderia usar a seguinte página da Web para mostrar AUTORUN.INF index.htm
[autorun]
open=start index.htm = index.htm começar a abrir
However, if you do this, Windows displays a DOS box briefly, which looks nasty. No entanto, se você fizer isso, o Windows exibe uma caixa DOS brevemente, o que parece desagradável. (And start might not be available on some systems.) (E não poderia começar a estar disponível em alguns sistemas.)
If you are only targeting recent Windows systems, then you can use the shellexecute command to open a file without a flickering DOS box: Se você estiver apenas segmentação recentes sistemas Windows e, em seguida, você pode usar o comando shellexecute para abrir um arquivo sem uma tremulação DOS box:
[autorun]
shellexecute=index.htm shellexecute = index.htm
What does ShellRun do then? O que faz ShellRun fazer então?
ShellRun overcomes the above problems. ShellRun supera os problemas acima referidos. It shows your file and displays a neat popup window. Ele mostra o seu arquivo e exibe uma janela pop-up puro. The popup appears straight away so that the user knows that something is happening. O popup aparece de imediato, para que o usuário sabe que algo está a acontecer. ShellRun works in all Windows systems. ShellRun obras em todos os sistemas Windows.
This example AUTORUN.INF tells ShellRun to show web page index.htm while displaying message “Starting CD now…” in the ShellRun popup window. Este exemplo AUTORUN.INF diz ShellRun para mostrar ao apresentar a página da web index.htm mensagem "Iniciando CD agora…" ShellRun na janela pop-up.
[autorun]
open=ShellRun.exe index.htm Starting CD now… = aberto ShellRun.exe index.htm Começando CD agora…
Do not forget to put ShellRun.exe in the root directory of your CD along with AUTORUN.INF. Não se esqueça de colocar ShellRun.exe no diretório raiz do seu CD juntamente com AUTORUN.INF.
Viewer Technicalities Viewer técnicos
All the above AutoRun examples, including ShellRun, use the same core technique to display a file. Todos os exemplos acima AutoRun, incluindo ShellRun, use o mesmo core técnica para exibir um arquivo.
Windows associates a viewer program with each file type. Windows associa um programa visualizador com cada tipo de arquivo. For .HTM and .HTML web pages, the viewer program will be your default browser. Por. HTM e. Páginas HTML, o programa visualizador irá ser o navegador padrão.
If a user does not have a viewer for your file type then it cannot be displayed until a viewer is installed. Se um usuário não tiver um visualizador para o seu tipo de arquivo, então ela não pode ser exibido até que um telespectador está instalado. For example, if you are trying to show a PDF file, the user must have Adobe™ Acrobat Reader or equivalent installed. Por exemplo, se você está tentando mostrar um arquivo PDF, o usuário deve ter o Adobe Acrobat Reader ou equivalente ™ instalado.
If a viewer is not available, the freeware version of ShellRun just displays a message. Se um visualizador não está disponível, a versão freeware do ShellRun apenas exibe uma mensagem. In retail version you can prompt the user to run a viewer installation program. No varejo versão você pode levar o usuário a executar um programa visualizador instalação. See the Viewers page for more details. Veja os telespectadores página para obter mais detalhes.
If you have a viewer program available then put its installation program on your CD - if you are allowed to distribute it. Se você tem um programa visualizador disponível em seguida colocar a sua instalação programa em seu CD - se você está autorizado a distribui-lo. To distribute Adobe™ Acrobat Reader, see here: Adobe Acrobat Reader - Download Adobe Acrobat Reader for distribution. Para distribuir ™ Adobe Acrobat Reader, veja aqui: Adobe Acrobat Reader - Download Adobe Acrobat Reader para distribuição.
Enabling AutoRun on your computer A ativação AutoRun no seu computador
To test AutoRun you need to have it enabled on your computer. Para testar AutoRun que você precisa para tê-lo ativado no computador. A registry setting can be used to disable AutoRun. A fixação de registro pode ser usado para desativar AutoRun. Click Start Run then type in regedit. Clique em Iniciar, em Executar em seguida, digite regedit. Select Edit Find and type in NoDriveTypeAutoRun. Selecione Editar Localizar e tipo de produto em NoDriveTypeAutoRun. This value should be found in this key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer . Este valor deve ser encontrados nesta tecla: HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Políticas \ Explorer.
The NoDriveTypeAutoRun value should be hexadecimal 95 if AutoRun is enabled on all CDs, or B5 if disabled for CDs. O valor deve ser NoDriveTypeAutoRun hexadecimal 95 AutoRun se está ativado em todos os CDs, ou se B5 CDs para deficientes. (If you want to test AutoRun on a floppy disk, set this value to 91.) You may need to change more than one instance of NoDriveTypeAutoRun in the registry. (Se você quiser testar AutoRun em um disquete, defina esse valor para 91.) Você pode precisar alterar mais de uma instância de NoDriveTypeAutoRun na secretaria. You usually need to reboot for a new value to take effect. Você normalmente necessidade de reiniciar para um novo valor para entrar em vigor.
In Windows 95/98/Me the NoDriveTypeAutoRun value is displayed as 95 00 00 00. No Windows 95/98/Me o NoDriveTypeAutoRun valor é exibido como 95 00 00 00. In Windows NT4, 2000 and XP this value is displayed as 0×00000095 or hexadecimal 95. No Windows NT4, 2000 e XP este valor é exibido como 0 × 00000095 ou hexadecimal 95. If you modify the NoDriveTypeAutoRun value make sure it is still in the correct format. Se você alterar o valor NoDriveTypeAutoRun certifique-se que ele ainda está no formato correto.