Aneka Cloud
  • Blogs
  • Contact

pov-ray installation using powerShell

11/24/2014

0 Comments

 
A  zip file including a version of POV-Ray is including in the installation of Aneka.3.1 it can be found in the following folder:

          C:\Program Files (x86)\Manjrasoft\Aneka.3.1\Runtime\Repository\PovRay.zip

This file it is not copy with the worker installation therefore to install POV-Ray in the workers, we suggest to copy this file in this path after install the container in the worker. After having the POV-Ray zip file in the container the following PowerShell script can be run in order to install it. We recommend rebooting the machine after install the script:
$documents = [Environment]::GetFolderPath("MyDocuments")
New-Item $documents\temp -type directory
$shell = new-object -com shell.application
$zip = $shell.NameSpace("C:\Program Files (x86)\Manjrasoft\Aneka.3.1\Runtime\Repository\PovRay.zip")
foreach($item in $zip.items()) { $shell.Namespace("$documents\temp").copyhere($item,0x14) }
cd $documents\temp\PovRay
msiexec /I povwin362-32bit.msi /qb | out-null
$shell = new-object -com shell.application
$zip = $shell.NameSpace("$documents\temp\PovRay\megapov-1.2.1-windows.zip")
foreach($item in $zip.items()) { $shell.Namespace(“$documents\POV-Ray\v3.6”).copyhere($item,0x14) }
[Environment]::SetEnvironmentVariable("POVRAY_HOME", "$documents\POV-Ray\v3.6", "Machine")
0 Comments
<<Previous

    Aneka

    Welcome!
    This is a place to share knowledge about Aneka.

    Archives

    December 2017
    March 2015
    December 2014
    November 2014

    Categories

    All
    Dynamic Provision
    Errors
    Installation
    Installation Errors
    Simple Application
    Talks
    Task Model Errors

Powered by Create your own unique website with customizable templates.