Abe Posted February 3, 2015 Posted February 3, 2015 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. 2
mrstrong Posted March 6, 2015 Posted March 6, 2015 (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 March 6, 2015 by mrstrong
lovelldr Posted March 6, 2015 Posted March 6, 2015 (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 March 6, 2015 by lovelldr
mrstrong Posted March 6, 2015 Posted March 6, 2015 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 ?
lovelldr Posted March 6, 2015 Posted March 6, 2015 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... 1
Arthur Posted March 6, 2015 Posted March 6, 2015 You can unzip this to get an msi but then you need to create the MST ? Try the MST here... www.edugeek.net/forums/windows/58107-adobe-air-2-0-2-12610-deployment-anyone-else-getting-computed-error.html#post1279191 This will prevent any EULA or update boxes popping up after it has been deployed. 2
mrstrong Posted March 6, 2015 Posted March 6, 2015 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
mrstrong Posted March 6, 2015 Posted March 6, 2015 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 ?
mrstrong Posted March 6, 2015 Posted March 6, 2015 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
mrstrong Posted March 12, 2015 Posted March 12, 2015 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
marsdenprimary Posted March 24, 2015 Posted March 24, 2015 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?
mrstrong Posted March 24, 2015 Posted March 24, 2015 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
kaphc Posted May 5, 2015 Posted May 5, 2015 Not sure if I'm late to the party with this, but there's an MSI file for Scratch 2.0 at Scratch MSI by LLK I haven't tested yet ... has anyone else used it? 1
marsdenprimary Posted May 5, 2015 Posted May 5, 2015 Not sure if I'm late to the party with this, but there's an MSI file for Scratch 2.0 at Scratch MSI by LLK I haven't tested yet ... has anyone else used it? Does this include the Adobe AIR installer too?
kaphc Posted May 5, 2015 Posted May 5, 2015 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!
psbresner Posted July 10, 2015 Posted July 10, 2015 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
Areku Posted July 16, 2015 Posted July 16, 2015 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.
Wubbalubbadub Posted November 3, 2015 Posted November 3, 2015 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?
SpaceInvader83 Posted November 3, 2015 Posted November 3, 2015 I'm pretty sure scratch runs off a network share fine if this is an option instead of deployment.
marsdenprimary Posted November 3, 2015 Posted November 3, 2015 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
Schikitar Posted November 3, 2015 Posted November 3, 2015 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... 1
Wubbalubbadub Posted November 4, 2015 Posted November 4, 2015 Just run the exe and then go to your temp folder (Start -> Run -> %temp%) and pull out the extracted MSI and subsequent files... Thanks! Works a charm!
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