Jump to content

Recommended Posts

Posted
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?

Posted (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.mst

eulaAccepted.zip

Edited by DMcCoy
Attachments
  • Thanks 1
  • 2 weeks later...
Posted
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?
Posted
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!

Posted (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. :confused:

 

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 |.

 

u_wjmO1R1sMf.png

Edited by Arthur
Posted (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 :p

 

Untitled.jpg

Edited by DMcCoy
pic
Posted

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!

Posted (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 by Schikitar
Realised my stupidity
  • 3 weeks later...
Posted

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

Posted (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 by Arthur
  • Thanks 2
Posted
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.

Posted
@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! :D
  • 2 weeks later...
Posted
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 :)

  • 3 weeks later...
Posted

This is how I created my Scratch MSI.

 

  1. Download and install the latest Scratch Offline Editor for Windows (currently v428a).
     
     
  2. Download and install the latest WiX Toolset (currently v3.9).
     
     
  3. 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.
     
     
  4. Copy all of the Scratch-related files and folders from within %ProgramFiles(x86)%\Scratch 2 to C:\Scratch\Source.
     
     
  5. 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.
     
    Qgr5vcyZZhzy.png
     
    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.
     
    yL6GXW9uBq2J.png

 

 

 

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

  • Thanks 3
  • 3 weeks later...
  • 1 month later...
Posted
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.
  • Thanks 2

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...