Menu

Windows_installer

Javier Taibo

Ryan Pavlik has kindly contributed a Windows installer using InnoSetup. It has been commited to svn trunk in revision 201.


I've created an installer using InnoSetup (with the QuickStart Pack from here [1]) for binary builds of the Maya2OSG plugin on Windows.

It is automatically kept up-to-date by the CMake script. When you generated in CMake on Windows after applying this improvement, it generates a maya2osg.iss file in the build directory. You can either compile that directly, or, if Inno Setup was found when you ran CMake, you'll have a target in visual studio called "create_installer" that will do the same thing. (If you are using CMake 2.8.4, it will build an installer using whatever configuration you're currently in: release, debug, etc. If you're using an older version, or if you're running the maya2osg.iss file outside of visual studio, it will build an installer using the Release build.)

The installer filename includes the maya version and bitness, and multiple such variations can be installed simultaneously without a problem, automatically detecting the appropriate directory to install into. It bundles all the osg dll's and plugins, as well as the axes.osg file needed for osgpreview. As much as possible (everything except the shelf) is installed system-wide (admin rights needed). The shelf and a script to install it per-user (which should work on all language editions of windows - uses Windows Scripting Host to lookup shell special folder location) are placed in a subdirectory, and a start menu shortcut for the shelf install script is created. This script only needs standard user rights, so multi-user systems should be no problem.

The only catch on the developer's side is that the installer\osgdeps.iss file may need to be modified depending on what dependency DLLs need to be bundled with the OSG dll's. I've kept these lines in a separate file from the bulk of the installer so that they can be easily modified locally without resulting in too many merge conflicts when updating from SVN.

I've attached a zip containing full versions of all files added or modified. I've tested this with Maya 2012, 64-bit, on Windows 7.

Thanks!

Ryan

[1] http://www.jrsoftware.org/isdl.php

--
Ryan Pavlik
HCI Graduate Student
Virtual Reality Applications Center
Iowa State University

rpavlik@iastate.edu
http://academic.cleardefinition.com


Related

Wiki: Main_Page

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.