{"id":170,"date":"2011-09-22T13:40:35","date_gmt":"2011-09-22T18:40:35","guid":{"rendered":"http:\/\/sites.williams.edu\/lj1\/?p=170"},"modified":"2012-03-26T09:38:03","modified_gmt":"2012-03-26T14:38:03","slug":"installer-mathematica-8","status":"publish","type":"post","link":"https:\/\/sites.williams.edu\/lj1\/software\/installer-mathematica-8\/","title":{"rendered":"Software &#8211; Mathematica 8"},"content":{"rendered":"<p>Basic instructions for building a silent installer for Mathematica 8 can be found at:<br \/>\n<a href=\"http:\/\/reference.wolfram.com\/mathematica\/tutorial\/InstallingMathematica.html\" target=\"_blank\">http:\/\/reference.wolfram.com\/mathematica\/tutorial\/InstallingMathematica.html<\/a><\/p>\n<p>We use a network wide license server to license this application.  To create the license file &#8220;mathpass&#8221; on windows &#8211; install the application and then copy the license file from c:\\programdata\\mathematic\\licensing\\mathpass<br \/>\nThis file seems to also be valid in c:\\progam files (x86)\\\\Wolfram Research\\Mathematica\\8.0\\Configuration\\Licensing<\/p>\n<p>So I have created a script that installs mathematica silently and then copies this &#8220;mathpass&#8221; file into place &#8230;<\/p>\n<blockquote><p>@echo off<\/p>\n<p>break=off<\/p>\n<p>set install_dir=%~dp0<\/p>\n<p>rem Tell the user what you are doing<br \/>\necho  &#8212;&#8212;&#8212;&#8211;<br \/>\necho This program installs a copy of the Williams College licensed<br \/>\necho Mathematica 8.<br \/>\necho  &#8212;&#8212;&#8212;&#8211;<br \/>\necho Currently installing from %install_dir% &#8230;<br \/>\necho  &#8212;&#8212;&#8212;&#8211;<\/p>\n<p>REM Detect correct Program Files folder. Note this batch file may run in 32-bit env (SysWOW64\/cmd.exe)<br \/>\nREM So %ProgramFiles% might be Program Files (x86), but we always want to check the regular Program Files.<br \/>\nset K64=no<br \/>\nif &#8220;%ProgramFiles(x86)%&#8221; == &#8220;&#8221; goto on32Bit<br \/>\n  set K64=yes<br \/>\necho Detected 64-bit OS &#8230;<br \/>\necho  &#8212;&#8212;&#8212;&#8211;<\/p>\n<p>:on32Bit<br \/>\nREM Set inprogramfiles to either 32-bit or 64-bit stucture <\/p>\n<p>SET inProgramFiles=%ProgramFiles(x86)%<br \/>\nIF NOT EXIST &#8220;%inProgramFiles%&#8221; SET inProgramFiles=%ProgramFiles%<br \/>\necho Program files directory set to: %inProgramFiles%<br \/>\necho  &#8212;&#8212;&#8212;&#8211;<\/p>\n<p>rem run the silent installer<br \/>\necho Installing application &#8230;<br \/>\necho  &#8212;&#8212;&#8212;&#8211;<br \/>\n&#8220;%install_dir%payload\\Mathematica_8.0.1_WIN.EXE&#8221; \/silent \/norestart<\/p>\n<p>rem copy in the license file<br \/>\necho  &#8212;&#8212;&#8212;&#8211;<br \/>\nxcopy \/Y \/Q \/R &#8220;%install_dir%payload\\mathpass&#8221; &#8220;%inProgramFiles%\\Wolfram Research\\Mathematica\\8.0\\Configuration\\Licensing&#8221;<br \/>\nIf %errorlevel%==0 goto no_error<\/p>\n<p>:error<br \/>\nrem do something if there was an error<br \/>\necho  &#8212;&#8212;&#8212;&#8211;<br \/>\necho The Williams College licensed version of this software did not install correctly.<br \/>\necho Please be sure you ran this installer as an administrator. On Vista and Windows 7<br \/>\necho you need to right-click on the installer and select &#8220;Run as Administrator&#8221;.<br \/>\necho Please contact OIT for additonal help with this install.<br \/>\necho  &#8212;&#8212;&#8212;&#8211;<br \/>\npause<br \/>\nexit<\/p>\n<p>rem there was no error in the install AND the filter copy and there was no break<br \/>\n:no_error<br \/>\necho  &#8212;&#8212;&#8212;&#8211;<br \/>\necho The installation is complete.<br \/>\necho  &#8212;&#8212;&#8212;&#8211;<\/p>\n<p>:end<br \/>\npause<br \/>\nrd \/S \/Q &#8220;%install_dir%payload&#8221;<br \/>\ndel \/Q &#8220;%install_dir%instal*&#8221;<br \/>\nexit\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Basic instructions for building a silent installer for Mathematica 8 can be found at: http:\/\/reference.wolfram.com\/mathematica\/tutorial\/InstallingMathematica.html We use a network wide license server to license this application. To create the license file &#8220;mathpass&#8221; on windows &#8211; install the application and then &hellip; <a class=\"more-link\" href=\"https:\/\/sites.williams.edu\/lj1\/software\/installer-mathematica-8\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[10085],"tags":[10110,10114,10088],"class_list":["post-170","post","type-post","status-publish","format-standard","hentry","category-software","tag-mathematica","tag-silent-installer","tag-windows"],"acf":[],"_links":{"self":[{"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/posts\/170","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/comments?post=170"}],"version-history":[{"count":5,"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/posts\/170\/revisions"}],"predecessor-version":[{"id":353,"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/posts\/170\/revisions\/353"}],"wp:attachment":[{"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/media?parent=170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/categories?post=170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/tags?post=170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}