This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-09-23 14:02:56

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Scratch Projects to EXE: new possibility

Hi all,

I discovered a new way to run Scratch projects from an executable file. You can run the executable file everywhere, also on computers without Scratch installed. Your project will also open in Presentation Mode immediatly.

I did not create another tool for this - I used a (hidden) built-in Windows application. That means you'll have to do some settings yourselves, but I'll try to explain as good as possible.

It should work for every windows version newer then Windows 95 - because of the long filenames...

How-to

Info: IExpress is actually a program to create Windows Installers. We won't be creating an installer, we just want to run the Scratch Program opening a project in presentation mode. The idea is the same though, you include some files in the 'installer', they are unpacked and a program is started. Our 'installer' will be unpacking a stripped version of the Scratch Program together with a project. We will hide all windows from the user, so when the .exe is clicked, Scratch will just open.

(1)  On XP: Click start, then "Run..."
Type in "iexpress" and click "OK".
On Vista or 7: type in "iexpress", wait a moment and press enter. (There might be a run button available on your Vista/7 though.
You should see the old-fashioned "IExpress Wizard" window.

(2) Select "Create new Self Extraction Directive file."
and click "next".

(3) As "Package Purpose",
select "Extract files and run an installation command"
and click "next".

(4) As "Package title",
you can type anything you want - I used "Scratch Project".

This field doesn't really matter - normally this text is used in the title bar of all 'installer' windows but we will them so the user is not annoyed by Windows 95 style installation messages, instead the Scratch project should open.

Click "Next" again.

(5) Select "No prompt", click "next",
select "Do not display a license" and click "Next" again.

(6) Now we'll have to add all necessary files to the package,
do this by clicking "Add", browsing for a file, and Click open.
You can only open one file each time you click "Add".

First, all essential Scratch application files should be added.
Browse for the Scratch installation folder (usually "C:\Program Files\Scratch") and add the following files:

      Scratch.exe
      Scratch.image
      Scratch.ini
      ScratchPlugin.dll
      Mpeg3Plugin.dll
      UnicodePlugin.dll
      CameraPlugin.dll

Click "Add" again, Now browse for your scratch project and click "Open".
In this example, it's called project.sb .

Now you added All the required files to the installer package, so click "Next" to continue.

(7) As "Install program", we are going to fill in the Scratch application.
Copy-paste

Code:

Scratch.exe "scratch.image" presentation "project.sb"

into "Install Program" - the first textbox .

Replace project.sb with the name of your project. (so if your project is named "racing game.sb", fill in
Scratch.exe "scratch.image" presentation "racing game.sb"

Leave "Post Install Command" (the second text field) as it is: "<none>" and Click "Next".

(8) In the "Show Window" step, you should select "hidden". That way the unpacking window will not be shown. Click "Next", again...

(9) In "Package name and options", click browse and save your final .exe file. I named it like my project - project.exe

Check both options:
- Hide File Extracting Progress Animation from user (We wan't the project to show up, no ugly 15-years-old animation  big_smile  )
- Store file using Long File Name inside package (Scratch uses long filenames - It won't work without this ancient option checked - I tried it out.)

And Click "Next" again

(10) Select "No Restart" we are not running a real installer so a restart is not required.

(11) The "Save Self Extraction Directive" allows you to store the settings you made. It is not necessary, so when you're finished, click "Next".

(12) Click next one last time to start creating the package. You'll see a DOS window, and a message when it's finished.

Now browse to your PROJECT.EXE (!) en watch it being a complete application  big_smile

The only bad thing is you cannot hide the scripts at the end.

Joren

Last edited by JSO (2010-03-17 16:45:40)


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#2 2008-09-23 14:52:17

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: Scratch Projects to EXE: new possibility

Haha, very clever, JSO! will it run under Vista without admin rights? I'll update an image for you once the source code gets released...


Jens Mönig

Offline

 

#3 2008-09-23 15:08:08

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Scratch Projects to EXE: new possibility

Jens wrote:

Haha, very clever, JSO! will it run under Vista without admin rights? I'll update an image for you once the source code gets released...

I don't know about not-admin Vista Accounts (I kindly asked my parents to give me Admin permissions  big_smile ) But it works fine with an admin account on Vista...


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#4 2008-09-23 15:30:37

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Scratch Projects to EXE: new possibility

Nice job JSO!  This should be very useful.  I wonder if there is a Mac version of the iexpress program?


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#5 2008-09-23 19:07:37

dsdude10
Scratcher
Registered: 2007-09-22
Posts: 500+

Re: Scratch Projects to EXE: new possibility

That's cool! only problem is,

JSO wrote:

The only bad thing is you cannot hide the scripts at the end

Offline

 

#6 2008-09-25 17:06:28

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Scratch Projects to EXE: new possibility

Haha this is awesome! Thanks JSO!


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#7 2008-09-25 17:25:18

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: Scratch Projects to EXE: new possibility

I dont understand #7

Offline

 

#8 2008-09-25 20:51:29

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Scratch Projects to EXE: new possibility

Awesome! I wish you could hide the scripts at the end, though!

Offline

 

#9 2008-09-27 12:43:51

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: Scratch Projects to EXE: new possibility

keroro645 wrote:

I dont understand #7

Can you help me with this.I want to try this out.

Offline

 

#10 2008-09-27 13:40:17

terminator355
Scratcher
Registered: 2008-07-31
Posts: 100+

Re: Scratch Projects to EXE: new possibility

keroro645 wrote:

keroro645 wrote:

I dont understand #7

Can you help me with this.I want to try this out.

you just select the scratch.image file as the run application/program


No new stuff for now guys  wink  join me for some Black Ops on xbox: termhn or for some rock band on PS3: rocket232

Offline

 

#11 2008-09-27 14:23:25

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Scratch Projects to EXE: new possibility

keroro645 wrote:

keroro645 wrote:

I dont understand #7

Can you help me with this.I want to try this out.

I changed my first post - is this clear?


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#12 2008-09-27 14:24:10

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Scratch Projects to EXE: new possibility

terminator355 wrote:

keroro645 wrote:

keroro645 wrote:

I dont understand #7

Can you help me with this.I want to try this out.

you just select the scratch.image file as the run application/program

This is not true.

you have to fill in everything I listed in the first post.


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#13 2008-10-15 05:38:58

manish_boob
Scratcher
Registered: 2008-10-13
Posts: 1

Re: Scratch Projects to EXE: new possibility

Nice info

Offline

 

#14 2009-06-04 17:00:04

spi007
Scratcher
Registered: 2007-08-18
Posts: 4

Re: Scratch Projects to EXE: new possibility

I did it but I can't find the exe file

Offline

 

#15 2009-06-05 11:16:59

abeair
Scratcher
Registered: 2008-07-19
Posts: 100+

Re: Scratch Projects to EXE: new possibility

This should be stickied! But, unfortunately, I'm on a Mac.


http://dragcave.net/image/NPtA.gif
http://www.danasoft.com/sig/ObamaLovesMacs.jpg

Offline

 

#16 2009-06-09 14:49:09

fire219
Scratcher
Registered: 2008-02-07
Posts: 1000+

Re: Scratch Projects to EXE: new possibility

It made the EXE, but it ran as regular Scratch  sad


http://bluetetrarpg.x10.mx/usercard/img.php?name=fire219

Offline

 

#17 2009-06-09 15:13:37

Mozaz
Scratcher
Registered: 2009-05-19
Posts: 500+

Re: Scratch Projects to EXE: new possibility

What's the point of an .exe?

Is it just so that you can run it without having the scratch program or am I missing someting?


http://i33.tinypic.com/15i5fmp.png

Offline

 

#18 2009-06-09 15:26:26

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Scratch Projects to EXE: new possibility

The EXE is a way to run Scratch project without having Scratch installed - this is just packing the most important Scratch program files with your project into self-extracting archive which calls extracted Scratch files to open your project.


Converting my Scratch projects to Python!

Offline

 

#19 2009-06-09 17:34:35

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: Scratch Projects to EXE: new possibility

Genius.

Too bad you can't hide the scripts at the end T_T


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#20 2009-06-13 07:19:42

xmadole
Scratcher
Registered: 2009-05-07
Posts: 1

Re: Scratch Projects to EXE: new possibility

Hah - this is really cool.

Only trouble is you can't hide the Scratch application.

Do you know if I could use this in normal Java, just by importing Java.exe and stuff? I just don't want to mess up.  tongue

Thanks.

-Xmadole

Offline

 

#21 2009-06-15 16:36:44

pent9
Scratcher
Registered: 2009-02-13
Posts: 40

Re: Scratch Projects to EXE: new possibility

I try to do it and it says "Error opening MAKecab directive file."


Let's just see how many internets I can get...
http://internetometer.com/image/21518.png

Offline

 

#22 2009-07-17 12:46:34

cool_nt3
Scratcher
Registered: 2009-07-15
Posts: 100+

Re: Scratch Projects to EXE: new possibility

Works for me!  lol   (ran on XP)

Last edited by cool_nt3 (2009-08-04 10:36:25)


See my word assembler! | True or False?
Did You Know? I have gotten tired of the previous sig!

Offline

 

#23 2009-07-17 14:46:54

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Scratch Projects to EXE: new possibility

cool_nt3 wrote:

Works for me!  big_smile

Glad it works for you! I hope you can use it xD


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#24 2009-07-21 05:31:30

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Scratch Projects to EXE: new possibility

Maybe at the end you should use Alt+F4 combination to close the window... But yes, idea is great.


Converting my Scratch projects to Python!

Offline

 

#25 2009-08-06 22:03:46

pent9
Scratcher
Registered: 2009-02-13
Posts: 40

Re: Scratch Projects to EXE: new possibility

cool_nt3 wrote:

Works for me!  lol   (ran on XP)

Oh, I ran it on Vista. I'll try it in XP.


Let's just see how many internets I can get...
http://internetometer.com/image/21518.png

Offline

 

Board footer