domingo, 22 de junho de 2014

Create an "autorun" to exe and icon for a CD/DVD | Criar um "autorun" para ícone e exe num CD/DVD

Blog Post: Criar um autorun para um CD/DVD [pt] Criar um

Create an "autorun" to exe and icon for a CD/DVD

To create a CD / DVD more interactive and professional you should create an "icon" for the drive to have an associated image when the disk loads on the client computer, this way the client can better identify which drive each disc is. You should also have an "autorun" for the CD/DVD, the application that is on the disc is expected to start automatically after the disc is in the drive, preventing the customer to have to find what file to execute to use the application, with the autorun the program opens automatically.

Create the Icon:
Create a square image (equal height and width) that symbolize the theme of your project. If you do not want to install a program to create icons, go to http://www.rw-designer.com/online_icon_maker.php site (or another similar site) and open your image in the application, the program will transform your image into a mesh size of an icon. Hit "Download Icon" and save the icon in the root of the CD (where the CD will be).

Create the Autorun:
Also create the root of the CD the file "autorun.inf".
Open Notepad, save the file with the name "autorun.inf" in the root of the CD and write the following code:

[autorun]
ICON="icon_name".ico
OPEN="project_name".exe

if your icon have the name "icon.ico" and your project have the name "project.exe" then your autorun would have the following code:

[autorun]
ICON=icon.ico
OPEN=project.exe

Then just burn the CD/DVD with all these elements in the root, including the exe file and the entire project in the same location of the autorun.inf and icon created. When you start the CD will automatically launch the "exe" and showing the icon you created in the CD drive.

------------ [português]

Criar um "autorun" para ícone e exe num CD/DVD

Para criar um CD/DVD mais interativo e profissional deverá colocar um "ícone" para a drive ter uma imagem associada quando o disco arranca no computador do cliente, desta forma o cliente poderá identificar melhor em que drive está cada disco. Também deverá ter um "autorun", ou seja, a aplicação que o CD/DVD tem deverá arrancar automaticamente após a leitura do disco, evitando que o cliente tenha que pesquisar qual o ficheiro a executar para usar a aplicação, desta forma o programa abre automaticamente.

Criar um Ícone:
Arranjem uma imagem "quadrada" (lado igual à altura) que simbolize o tema do vosso projeto. Se não quiserem estar a instalar um programa de criação de ícones, vão ao site http://www.rw-designer.com/online_icon_maker.php (ou outro site semelhante) e abram a vossa imagem para o programa, o programa irá transformar a vossa imagem numa malha do tamanho de um ícone. Façam "Download Icon" e guardem o ícone criado na raiz do CD (onde será o CD).

Criar o Autorun:
Cria também na raiz do CD o ficheiro "autorun.inf".
Abre o bloco de notas, guarda o ficheiro com o nome "autorun.inf" na raiz do CD e coloca o seguinte código:

[autorun]
ICON="nome_do_icone".ico
OPEN="nome_do_projecto".exe

ou seja, se o teu icone se chamar "icone.ico" e o teu projeto se chamar "trabalho.exe" então o teu autorun ficaria da seguinte maneira:

[autorun]
ICON=icone.ico
OPEN=trabalho.exe

Depois é só gravar o CD com todos estes elementos na raiz, incluindo o ficheiro exe e todo o projecto no mesmo local do autorun.inf e o ícone criado. Ao correres o CD irá abrir automaticamente o "exe" e mostrando o ícone que criaste na drive de CD.

Sem comentários:

Enviar um comentário