Zoom7000 Posted September 16, 2014 Posted September 16, 2014 New download of Scratch contains .MSI http://cdn.scratch.mit.edu/scratchr2/static/sa/Scratch.exe lol! This came 1 day late for me! Just installed it manually on to 15 laptops yesterday. Oh well!
DMcCoy Posted September 17, 2014 Posted September 17, 2014 Doesn't work though It installs to my D: drive and has an error
Schikitar Posted September 22, 2014 Posted September 22, 2014 Doesn't work though It installs to my D: drive and has an error I have the same problem, can anyone post updated instructions on how to package this with SCCM?
DMcCoy Posted September 22, 2014 Posted September 22, 2014 (edited) In the end I had to do a command line install from startup script, using the *Linux* .air Scratch download! Used a few bits from other posts in this thread. REG QUERY "HKLM\Hardware\Description\System\CentralProcessor\0" | FIND /i "x32" > NUL && SET OS=32BIT || SET OS=64BIT IF %OS%==32BIT GOTO AIR32 IF %OS%==64BIT GOTO AIR64 :AIR32 IF EXIST "%CommonProgramFiles%\Adobe AIR\Versions\1.0" GOTO SCRATCH MSIEXEC /q /i "%~dp0Setup.msi" /TRANSFORMS="%~dp0Air.mst" GOTO SCRATCH :AIR64 IF EXIST "%CommonProgramFiles(x86)%\Adobe AIR\Versions\1.0" GOTO SCRATCH MSIEXEC /q /i "%~dp0Setup.msi" /TRANSFORMS="%~dp0Air.mst" GOTO SCRATCH :SCRATCH IF EXIST "%CommonProgramFiles%\Adobe AIR\Versions\1.0" GOTO INST32 IF EXIST "%CommonProgramFiles(x86)%\Adobe AIR\Versions\1.0" GOTO INST64 GOTO END :INST32 IF EXIST "%ProgramFiles%\Scratch 2" GOTO END "%CommonProgramFiles%\Adobe AIR\Versions\1.0\Adobe AIR Application Installer.exe" -silent -eulaAccepted -programMenu "%~dp0Scratch.air" GOTO END :INST64 IF EXIST "%ProgramFiles(x86)%\Scratch 2" GOTO END "%CommonProgramFiles(x86)%\Adobe AIR\Versions\1.0\Adobe AIR Application Installer.exe" -silent -eulaAccepted -programMenu "%~dp0Scratch.air" GOTO END :END Using the Air MSI and a transform to remove autoupdate and copy the eula accepted file in (one on this thread didn't work, perhaps because I didn't have the file, but there is a nice guide on how to do it all with orca). Edit Added mst for Air v15 and eulaaccepted that goes in the folder with the Air msi. Note: With the script I have the install.cmd file in with the setup.msi and the scratch.air in one folder (hence the %~dp0 to get the script folder)Air.msteulaAccepted.zip Edited September 22, 2014 by DMcCoy Attachments 1
iom100 Posted September 30, 2014 Posted September 30, 2014 This is very timely for me. Unfortunately I can't quite get it working. Is there something about the mst which references your specific network?
Schikitar Posted October 1, 2014 Posted October 1, 2014 This is very timely for me. Unfortunately I can't quite get it working. Is there something about the mst which references your specific network? Same, the above steps do not work for me, mostly because the Linux .air file does is not available! If anyone could provide more detailed instructions it would be greatly appreciated, I have teachers breathing down my neck! Gah!
Arthur Posted October 1, 2014 Posted October 1, 2014 (edited) Same, the above steps do not work for me, mostly because the Linux .air file does is not available! The Linux .air file for the offline editor is available from the Scratch website. Direct Link: http://cdn.scratch.mit.edu/scratchr2/static/sa/Scratch.air Unfortunately I can't quite get it working. Is the eulaAccepted file in the same folder as Setup.msi? Do you get an error message when installing the MSI with the MST? Is there something about the mst which references your specific network? MST looks normal to me, although when you open it in InstEd and run the validation tests it mentions that the CommonAppData folder in the Directory table is invalid due to the spaces either side of the |. Edited October 1, 2014 by Arthur
DMcCoy Posted October 1, 2014 Posted October 1, 2014 (edited) IT Pro Tips for Adobe Adobe AIR Runtime 3 | ITNinja is what I followed, although it's not all that clear, why there may be a couple of spaces, it works when called with msiexec. You don't want to deploy it with AD. I have a single folder called scratch, with the cmd file, the contents of the AdobeAIRInstaller.exe *extracted* with 7-zip (so you have a setup.msi some other files and a Adobe AIR folder) the eulaAccepted and the Scratch.air. If you already have an Air version installed that uses a different path for install then you need to change the paths for the install check. @Arthur Orca didn't complain Edited October 1, 2014 by DMcCoy pic
iom100 Posted October 1, 2014 Posted October 1, 2014 That's really helpful. Thanks to the ITNinja link I worked out that the transform wasn't applying. For me it was because I'd saved the .mst file with a lowercase filename, but the script uses an uppercase 'A'. Together with proper privileges this looks like it's going to work nicely - thanks very much!
Schikitar Posted October 2, 2014 Posted October 2, 2014 (edited) Thanks for the updated posts guys. Turns out browser caching was preventing me from downloading the Linux scratch.air file, everytime I clicked on it I got the Windows scratch.zip download - fired it up in Firefox and now I have the scratch.air file. It's all working well now, thanks, except it tells me that there is a newer version available (even though I literally just downloaded the scratch.air file). Cheers! Edited October 2, 2014 by Schikitar Realised my stupidity
atcoates Posted October 20, 2014 Posted October 20, 2014 Anyone had any luck with the latest scratch 2.0 installers. They are no longer .air application. I can extract the latest version and get an msi but that installs to the root of C:. I'll assume orca or similar can redirect this. Anyone else been looking at these yet? The current version is v426, updated 15 October 2014
Arthur Posted October 20, 2014 Posted October 20, 2014 (edited) The current version is v426, updated 15 October 2014 I have created my own MSI for the latest version of the Scratch Offline Editor. If you want to give it a try here's the download link: http://goo.gl/GjgkEi Edited October 20, 2014 by Arthur 2
Zoom7000 Posted October 20, 2014 Posted October 20, 2014 I have created my own MSI for the latest version of the Scratch Offline Editor. If you want to give it a try here's the download link: http://goo.gl/GjgkEi Does that include Adobe Air @Arthur? 1
Arthur Posted October 20, 2014 Posted October 20, 2014 Does that include Adobe Air? It doesn't. I thought it would be better to deploy Adobe Air separately since it gets updated far more often than Scratch does and it already comes as an MSI. I used the MST and eulaAccepted file that @DMcCoy posted above to deploy Adobe Air on our network.
Schikitar Posted October 20, 2014 Posted October 20, 2014 @Arthur, would you be willing to share the process/steps for creating your MSI package? I think it would be of great benefit to many of us. Of course, if you don't have the time that is fully understandable!
Arthur Posted October 21, 2014 Posted October 21, 2014 would you be willing to share the process/steps for creating your MSI package? Sure, although I may not have time until next week.
lovelldr Posted November 4, 2014 Posted November 4, 2014 I have created my own MSI for the latest version of the Scratch Offline Editor. If you want to give it a try here's the download link: http://goo.gl/GjgkEi Thanks a load for this Would be very interested to find out the method you use to create your MSI though
Zoom7000 Posted November 21, 2014 Posted November 21, 2014 Sure, although I may not have time until next week. @Arthur, any chance of getting those instruction?
Arthur Posted November 25, 2014 Posted November 25, 2014 This is how I created my Scratch MSI. Download and install the latest Scratch Offline Editor for Windows (currently v428a). Download and install the latest WiX Toolset (currently v3.9). Download the attached .zip file and extract the contents somewhere on your hard drive. For the purpose of these instructions I am going to use C:\Scratch, but you can use any folder you want. Copy all of the Scratch-related files and folders from within %ProgramFiles(x86)%\Scratch 2 to C:\Scratch\Source. In the C:\Scratch folder there is a file called _Build.cmd. If the latest version of the Scratch Offline Editor is still v428a, simply double-click this file to create the MSI. After about 30-60 seconds you should end up with an MSI in the Deploy\Release sub-folder. If however you are creating an MSI for a newer version of the Offline Editor you will need to completely replace the Scratch files in the Source folder with the updated files and also edit the version number at the end of the second to last line in _Build.cmd. To do this open the file in Notepad and simply change the last three digits to reflect the correct version number of Scratch (without any letters). Save it and then run _Build.cmd to create the MSI. Note. If you are using a PC running Windows 8.1 to build the MSI you may receive the following error message in WiX. This happens if you do not have the .NET Framework v2.0 installed. Install it via Programs & Features in the Control Panel and then try again. error MSB4062: The "HeatDirectory" task could not be loaded from the assembly C:\Program Files (x86)\WiX Toolset v3.9\bin\\WixTasks.dll. Could not load file or assembly 'Microsoft.Build.Utilities, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.Scratch Offline Editor v428a (WiX).zip 3
lovelldr Posted November 25, 2014 Posted November 25, 2014 Huge thanks for that Arthur... I will have a proper read of it when I get to my next school (just about to leave here), and let you know how I get on
FreelanceX Posted December 15, 2014 Posted December 15, 2014 Hi Arthur, Any chance of reuploading that Wix project file? Trying to download it and keep getting an empty/corrupt zip file. Thanks
Arthur Posted December 15, 2014 Posted December 15, 2014 Any chance of reuploading that Wix project file? Trying to download it and keep getting an empty/corrupt zip file. I think it might be an Edugeek issue. I also get a corrupt zip file when I try to download the attachment above. I'll upload the .zip file somewhere else if @ZeroHour reckons it won't be a quick fix.
ZeroHour Posted December 16, 2014 Posted December 16, 2014 I think it might be an Edugeek issue. I also get a corrupt zip file when I try to download the attachment above. I'll upload the .zip file somewhere else if @ZeroHour reckons it won't be a quick fix. Should be fixed now, a few very recent files need to be double checked by myself but I will do that tomorrow morning. 1
munro Posted January 28, 2015 Posted January 28, 2015 A simpler solution I just found was to install Air via MSI with the suggested transform (attached here: AirSetup.mst) from ITNinja. Then install Scratch on a test workstation. Copy the 'Scratch 2' directory from Program Files to a network directory. Lastly, install a shortcut on all workstations to launch the executable directly from the network. 2
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now