Jump to content

Recommended Posts

Posted

Using 7-Zip to extract the contents of the latest exe (Scratch-431a) I found the following command line options for the installer contained therein:

 

"Install Scratch 2.exe" -?

Available Options: -silent { -eulaAccepted ( -location

) -desktopShortcut -programMenu -allowDownload }

 

This installed to "C:\Program Files (x86)\Scratch 2" on our 64bit systems when using the options -silent -eulaAccepted.

 

Adobe Air was installed first using the offline AdobeAIRInstaller.exe -silent.

 

All of this can be scripted or packaged in System Center Configuration Manager.

  • Thanks 2
  • 1 month later...
Posted (edited)

Just been asked to install scratch and found this interesting thread :)

 

I don't fully understand the MST creation procedure and couldn't find anything on google that explains

how to create transforms e.g. all the components/features/FeatureComponents/Registry/File stuff.

 

I did download and unzip the current AdobeAIRInstaller.exe and apply the MST in this thread in orca and it still

"looks ok" but I think I'm going to hack DMcCoy's script to use AdobeAIRInstaller.exe and then put scratch on

using installer Abe mentions in last post.

 

Also just looking at it I'm not sure this code is sound:

 

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

 

e.g. on my PC it returns 64 bit even though I have 32 bit OS installed.

 

Think that "x32" needs to be "x86"

Edited by mrstrong
Posted (edited)

Why not register with Adobe to redistribute Air? There's an MSI installer on their download page when you register ;)

 

http://www.adobe.com/uk/products/air/runtime-distribution1.html

Edited by lovelldr
Posted
Why not register with Adobe to redistribute Air? There's an MSI installer on their download page when you register ;)

 

http://www.adobe.com/uk/products/air/runtime-distribution1.html

 

Mmm ? I did register for distribution but there's no msi just the AdobeAIRInstaller.exe ?

You can unzip this to get an msi but then you need to create the MST ?

Posted
Mmm ? I did register for distribution but there's no msi just the AdobeAIRInstaller.exe ?

You can unzip this to get an msi but then you need to create the MST ?

 

On the page you get sent after applying, there's a link just underneath this text called Download installer files:

 

Adobe AIR Runtime Installer files: For use with a native installer or through CD/DVD redistribution using the Adobe AIR side-car configuration. Please refer to following documentation for details on files used.

 

Use that, extract the zip to a folder, and use the MSI you extracted... I've never created an MST and works perfectly fine...

  • Thanks 1
Posted

I had download the one under "Stand-alone Adobe AIR Runtime installer"

 

but if you're saying use the one under "Adobe AIR Runtime Installer files:" and it works fine without an mst

then perhaps the first 3 pages of this thread are "not really needed" !

 

Still I've started my script now which I need for the scratch so I might just soldier on for now

Posted

on another general scripting note the DMcCoy script won't handle updates I think,

 

e.g. some of my pcs have a very old version of air

which needs updating and

IF EXIST "%CommonProgramFiles%\Adobe AIR\Versions\1.0" GOTO SCRATCH

would just skip the air update.

 

I was thinking of writing a value into the registry under say ""HKLM\SOFTWARE\Policies\Adobe\AIR"

e.g.

reg add "HKLM\SOFTWARE\Policies\Adobe\AIR" /v InstalledVersion /t REG_DWORD /d 16 /f

 

then querying it in the script to see if it needs updating?

 

Is that a reasonable approach to take in general? Could it mess things up ?

Posted

Having had a quick look at a random selection of PCs we appear to have various versions of adobe air installed

 

Right-click on the Adobe AIR.dll file located inside the

C:\Program Files\Common Files\Adobe AIR\Versions\1.0

directory and choose Properties and then the Version (Windows XP) or

Details (Windows Vista/Windows 7) tab.

There you will find the version value, for example: Version: 1.5.3.9130.

64-bit versions use:

C:\Program Files (x86)\Common Files\Adobe AIR\Versions\1.0

 

Decided to uninstall all and was pleased to find you can just download the latest AdobeAIRInstaller.exe

to a network drive and then uninstall any (including older) version via e.g.

 

X:\ict\apps\adobe\air\AdobeAIRInstaller.exe -uninstall

 

You can verify all went ok via the log:

 

C:\Users\\AppData\Local\Adobe\AIR\logs\Install.log

Posted

Knocked up a quick script to install air and scratch.

Tested and working ok here but please test in your own environment :-)

 

@echo off
rem Install Adobe Air and Scratch
rem E.g. run from a startup script
rem Won't handle upgrades of air / scratch
rem Can remove old versions of AIR first with
rem AdobeAIRInstaller.exe -uninstall
rem Left in "echo" for testing: probably best to 
rem remove them or redirect to log file

:CheckOS
rem prefer reg query
rem IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT)

REG QUERY "HKLM\Hardware\Description\System\CentralProcessor\0" | FIND /i "x86" > NUL && SET OS=32BIT || SET OS=64BIT

IF %OS%==32BIT GOTO AIR32
IF %OS%==64BIT GOTO AIR64

:AIR32
echo 32 bit OS
IF EXIST "%CommonProgramFiles%\Adobe AIR\Versions\1.0" GOTO SCRATCH
echo installing air
"%~dp0AdobeAIRInstaller.exe" -silent -eulaAccepted
reg add "HKLM\SOFTWARE\Policies\Adobe\AIR" /v UpdateDisabled /t REG_DWORD /d 1 /f
GOTO SCRATCH

:AIR64
echo 64 bit OS
IF EXIST "%CommonProgramFiles(x86)%\Adobe AIR\Versions\1.0" GOTO SCRATCH
echo installing air
"%~dp0AdobeAIRInstaller.exe" -silent -eulaAccepted
reg add "HKLM\SOFTWARE\Policies\Adobe\AIR" /v UpdateDisabled /t REG_DWORD /d 1 /f
GOTO SCRATCH

:SCRATCH
rem make sure adobe air is installed
echo Checking if adobe air and scratch installed

IF EXIST "%CommonProgramFiles%\Adobe AIR\Versions\1.0" GOTO INST32
IF EXIST "%CommonProgramFiles(x86)%\Adobe AIR\Versions\1.0" GOTO INST64
echo adobe air not installed
GOTO END

rem Install Scratch 
rem Note you could also install Scratch on the network
rem then create a shortcut on your client PCs

:INST32
echo air found
IF EXIST "%ProgramFiles%\Scratch 2" GOTO END
echo installing scratch
"%~dp0Install Scratch 2.exe" -silent -eulaAccepted -desktopShortcut -programMenu
GOTO END

:INST64
echo air found in x86
IF EXIST "%ProgramFiles(x86)%\Scratch 2" GOTO END
echo installing scratch
"%~dp0Install Scratch 2.exe" -silent -eulaAccepted -desktopShortcut -programMenu
GOTO END

:END
echo Done

rem pause

  • 2 weeks later...
Posted
Knocked up a quick script to install air and scratch.

Tested and working ok here but please test in your own environment :-)

 

@echo off
rem Install Adobe Air and Scratch
rem E.g. run from a startup script
rem Won't handle upgrades of air / scratch
rem Can remove old versions of AIR first with
rem AdobeAIRInstaller.exe -uninstall
rem Left in "echo" for testing: probably best to 
rem remove them or redirect to log file

:CheckOS
rem prefer reg query
rem IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT)

REG QUERY "HKLM\Hardware\Description\System\CentralProcessor\0" | FIND /i "x86" > NUL && SET OS=32BIT || SET OS=64BIT

IF %OS%==32BIT GOTO AIR32
IF %OS%==64BIT GOTO AIR64

:AIR32
echo 32 bit OS
IF EXIST "%CommonProgramFiles%\Adobe AIR\Versions\1.0" GOTO SCRATCH
echo installing air
"%~dp0AdobeAIRInstaller.exe" -silent -eulaAccepted
reg add "HKLM\SOFTWARE\Policies\Adobe\AIR" /v UpdateDisabled /t REG_DWORD /d 1 /f
GOTO SCRATCH

:AIR64
echo 64 bit OS
IF EXIST "%CommonProgramFiles(x86)%\Adobe AIR\Versions\1.0" GOTO SCRATCH
echo installing air
"%~dp0AdobeAIRInstaller.exe" -silent -eulaAccepted
reg add "HKLM\SOFTWARE\Policies\Adobe\AIR" /v UpdateDisabled /t REG_DWORD /d 1 /f
GOTO SCRATCH

:SCRATCH
rem make sure adobe air is installed
echo Checking if adobe air and scratch installed

IF EXIST "%CommonProgramFiles%\Adobe AIR\Versions\1.0" GOTO INST32
IF EXIST "%CommonProgramFiles(x86)%\Adobe AIR\Versions\1.0" GOTO INST64
echo adobe air not installed
GOTO END

rem Install Scratch 
rem Note you could also install Scratch on the network
rem then create a shortcut on your client PCs

:INST32
echo air found
IF EXIST "%ProgramFiles%\Scratch 2" GOTO END
echo installing scratch
"%~dp0Install Scratch 2.exe" -silent -eulaAccepted -desktopShortcut -programMenu
GOTO END

:INST64
echo air found in x86
IF EXIST "%ProgramFiles(x86)%\Scratch 2" GOTO END
echo installing scratch
"%~dp0Install Scratch 2.exe" -silent -eulaAccepted -desktopShortcut -programMenu
GOTO END

:END
echo Done

rem pause

 

Where would you put this script?

Posted
Where would you put this script?

 

It just needs to run with administrator privileges. E.g. use a startup script in group policy.

 

Actually I'm having some issues with GP and startup scripts so I just copied everything

to a network share and ran it from there on the client PCs. e.g.

 

\\network-share\path\scratch2.0\install.cmd

 

I used Impero to run it on lots of PCs for me but you could quite easily run it manually if you only have a few PCs/laptops.

Or use psexec / powershell etc.

Like I said test it first on one PC to make sure its ok.

 

It is a bit of a quick hack solution, but I needed to get it out asap and so far it seems to have worked out ok.

 

Remember you will need to unzip the scratch installer (e.g. Scratch-433.exe)

 

My "install directory" looks like this

 

scratch-install-dir.JPG

  • 1 month later...
Posted

Ah ... just done a single machine test (Windows 7, 32-bit) and it does include Adobe AIR but something corrupts in the install.

 

It's signposted from Scratch's download section too, so thought it stood a good chance of being legit. Might be worth testing in another environment to see if it's just us!

  • 2 months later...
Posted
Ah ... just done a single machine test (Windows 7, 32-bit) and it does include Adobe AIR but something corrupts in the install.

 

It's signposted from Scratch's download section too, so thought it stood a good chance of being legit. Might be worth testing in another environment to see if it's just us!

 

Anyone managed to get this working?

 

Paul

Posted

Yes Paul, I managed to get the Scratch2 MSI to deploy using SCCM.

No it doesnt include Air, but i was able to make an SCCM package that executed the Air installer with "Adobe AIR Installer.exe -silent -eulaAccepted"

 

Once both where on the test collection, scratch was able to fire up fine.

  • 3 months later...
Posted
Sorry to revive an old thread.. but i am trying to setup Scratch to install via group policy. It doesn't seem to work!? I have got the page Scratch MSI by LLK

 

But that just gives me another EXE!?

 

Is it really that hard for company's to make MSI's?

 

I'd run it from the network too x

Posted
Sorry to revive an old thread.. but i am trying to setup Scratch to install via group policy. It doesn't seem to work!? I have got the page Scratch MSI by LLK

 

But that just gives me another EXE!?

 

Is it really that hard for company's to make MSI's?

 

Just run the exe and then go to your temp folder (Start -> Run -> %temp%) and pull out the extracted MSI and subsequent files...

  • Thanks 1

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