Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / INstalation softwere

Author
Message
L B G
19
Years of Service
User Offline
Joined: 14th Oct 2004
Location: Bath
Posted: 3rd Sep 2005 15:03
hi im trying to create instalation softwere but it is just not working! i tried doing it by opening the document and reading the text then saving it in a different location but it does not work any ideas?
Thanks! the King!!

my website
[href]clik.to/lbg[/href]

programing's cool but i'm cooler
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 4th Sep 2005 00:50
I assume that no-one has replied to your post because (like me), they haven't got a clue what you are talking about...

Are you trying to write an installer in DB, or create an installer for a program you have written in DB?

What document?

What text?

Saving what?

Let us know what you mean - and what version of DB you are using (like it says at the top of the forum), as the answer may differ depending on which one you are using.

TDK_Man

Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 4th Sep 2005 06:36
Search google for "clickteam install creator". There's a free version with splashscreen.
If you really want to make it in DBpro, looak at the command copy file.

-Xol


DBpro IonRay IDE: Demo 0.1.0.0 available!
L B G
19
Years of Service
User Offline
Joined: 14th Oct 2004
Location: Bath
Posted: 5th Sep 2005 15:04
no in dark basic for example open up a .EXE as a text document using the open document for reading coman and use it to then save a new as a new document in another place for example imbedding it as a new program!

programing's cool but i'm cooler
Me!
19
Years of Service
User Offline
Joined: 26th Jul 2005
Location:
Posted: 5th Sep 2005 15:10
eh? clear as mud

try telling us what you want to do, maybe we can make sense of that, I have no idea what you are trying to do from that description apart from you seem to think a .exe is a text file.



the average IQ is 100...but the people that took the test where trying to look smart. most people don`t go over 50.
Area 51?, I`m more intrested in what they have in areas 1 to 50
John Y
Synergy Editor Developer
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: UK
Posted: 5th Sep 2005 19:43
You cannot open an exe file as text because it looses it's encoding, and becomes a bog standard ASCII file. You need to use the copy file command, or use a plugin to access the file in binary format.

L B G
19
Years of Service
User Offline
Joined: 14th Oct 2004
Location: Bath
Posted: 6th Sep 2005 14:57
ok but for example using a .ink file and pasting it to the desk top because that is text based. and i dont think that a .EXE is not a tyext document but for example you can open to read a .html document and and vew the code if you do (html$ is what you opend to read) print html$
and it says the code asif you open it in notepad.

programing's cool but i'm cooler
L B G
19
Years of Service
User Offline
Joined: 14th Oct 2004
Location: Bath
Posted: 6th Sep 2005 14:57
and what is the copy text command?

programing's cool but i'm cooler
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 10th Sep 2005 05:48
But, the point is, an exe is not a text file - it's a binary file and uses non-printable characters which lie outside the range of ASCII.

HTML is a text file, so you can open it and view it.

The only chance you have is to use Open File for reading/writing and use Read Byte and Write Byte, but I'm sure you will be unsuccessful if you are trying to do what I think you are...

TDK_Man

L B G
19
Years of Service
User Offline
Joined: 14th Oct 2004
Location: Bath
Posted: 10th Sep 2005 14:57
yeh but can you open a exe in binary with dark basic? and what is the copy comand?

programing's cool but i'm cooler
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 10th Sep 2005 15:46
Quote: "can you open a exe in binary with dark basic? "


Quote: "use Open File for reading/writing and use Read Byte and Write Byte"


TDK_Man

L B G
19
Years of Service
User Offline
Joined: 14th Oct 2004
Location: Bath
Posted: 10th Sep 2005 16:10
so does that open it in binary and also is your altarnative for dark basic done yet? p.s what is the coppy command?
thanks

programing's cool but i'm cooler
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 10th Sep 2005 16:16
Press F1 and go to Index.

Scroll down to the C section and you will find the Copy File command there.

Are you using a version of DB that doesn't have any help files or something?

TDK_Man

L B G
19
Years of Service
User Offline
Joined: 14th Oct 2004
Location: Bath
Posted: 13th Sep 2005 10:15
and how do you open files in binary?
and also whilst im at it how do you change the mouse?

programing's cool but i'm cooler
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 13th Sep 2005 10:58
Use "read byte" to read one character at a time from a file.



There are two ways to change the mouse. Add a cursor file to the media and use "change mouse ##" to switch to the cursor that's in your media. Or you can load an image, hide mouse, and make the image a sprite at the mouse location "sprite spritenumber,mousex(),mousey(),imagenumber"
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 13th Sep 2005 14:58
Are all my posts invisible?!!

TDK_Man

Me!
19
Years of Service
User Offline
Joined: 26th Jul 2005
Location:
Posted: 13th Sep 2005 15:24
@TDK, you realy should not feel obliged to help people who will not help themselves, L B G is either ignorant or trolling, either way I would just ignore him for now, maybe when he starts a conversation rather than a list of demands?.



the average IQ is 100...but the people that took the test where trying to look smart. most people don`t go over 50.
Area 51?, I`m more intrested in what they have in areas 1 to 50
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 14th Sep 2005 00:24 Edited at: 14th Sep 2005 00:24
Quote: "Are all my posts invisible?!! "


I think they were invisible to LGB because you didn't have code that he could copy and not have to actually learn how to code.

He probably won't see my message either.
master programmer
19
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 14th Sep 2005 04:02 Edited at: 14th Sep 2005 04:05
Wow..just wow.

First, I understand what your are saying L B G about opening files in NotePad. Like you can copen files that are text based - like .sav and .txt. You can open those, yes....even HTML. However, I have tried opening files like .exe using notepad and it won't because IT's NOT TEXT FILE! (TDK has stressed that a lot and I can only hope my message is finally read unlike the others).

Second, L B G, do you have any initiate to start programming? Because, seriously, to program you have to be willing to experiment with code and try things for yourself. Not cheat off of other people's examples. And, really, press F1 and try to figure some of that stuff out for yourself. When I started DB, it took me a while and I didn't even know these forums existed, and I haven't asked for virtually any help. You should really try it on your own.

Third, re-read your posts very, very carefully and try to put yourself in our shoes; who know nothing of what you're asking, even when we read your question over and over.

Fourth, the copy command works like this:
copy file ORIGINAL FILE, DESTINATION FILE, again, F1 is your friend.

Sorry for lighting up my flame like that, but, it is starting to get to my the way so many newbies are not trying for themselves to program, just relying on others.

Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 14th Sep 2005 06:24
*cough* I think what he's trying to do, is open an .exe in DB so he can learn from or read the code (specifically the comments).

I.e. - reverse engineer an exe.

We may have been barking up the wrong tree.
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 14th Sep 2005 09:34
Quote: "I.e. - reverse engineer an exe."


Which is impossible. If he really wants to edit an .exe file in a text editor all he has to do (in Windows) is go to the command prompt and type "edit /80 program.exe" (replace the program.exe with whatever .exe he wants to edit). /80 tells it to load the file as binary and use 80 characters per line.

If that's what you mean LBG... make sure you edit a program you have a backup of and DO NOT EDIT ANYTHING THAT WINDOWS USES!
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 14th Sep 2005 22:34 Edited at: 16th Sep 2005 22:20
When I first read this, I think he's after writing a setup program...

It reads a list a document for a list of files so it can do stuff like

open to read 1,"Filenames.dat"
DestinationDir$="C:\InstallOutput"
for FileNumber = 1 to 60 (if for example there were 60 files)
cls
read string 1,CurrentFile$
print "Copying File: " +CurrentFile$ + " " +str$(FileNumber) + "/60"
sync
copy file CurrentFile$,DestinationDir$
next FileNumber

Is that what you're after?
(or to really emphasize the most important point)



...maybe one day I'll finish a project
Louiz ofRohr
19
Years of Service
User Offline
Joined: 11th Nov 2004
Location:
Posted: 14th Sep 2005 23:53 Edited at: 15th Sep 2005 00:12
Why don't you just copy the file?

hmmm.. Do you wanna type all the content of files into
a single .txt file and then 'unglue' that content to save it
into files again?

senseless..
Try to use the command:


you see:
if you don't change the .txt's content, you can move the file
back to .exe..

But it is still senseless. The .txt file is gonna have
the same size of the .exe.

There is a plugin that appends a file to another one, but
it is printable characters manipulation as well..

Well.. I use Inno Setup 5.1.5, which is a freeware and is the
best one I did ever see, because it *compiles the installation
file plus you have access to the code (wich is very easy to learn)..

Friendly hint:
Don't get crazy with this..
Or try another way to do your work..

good luck

:edit:
btw.. look at the attachment..
:edit:

The worst foe lies within the self..

Attachments

Login to view attachments
L B G
19
Years of Service
User Offline
Joined: 14th Oct 2004
Location: Bath
Posted: 15th Sep 2005 12:46
sorry TDK_Man but i was hopeing for some code which i have now got.

programing's cool but i'm cooler
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 15th Sep 2005 22:31
Sometimes I hate it when i'm right.
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 16th Sep 2005 22:28 Edited at: 16th Sep 2005 22:29
Quote: "i was hopeing for some code which i have now got."


Hope this isn't my code you're referring to -- there were several mistakes which I've just fixed...

Really what I should have done was just pointed you in the right direction, and not just given an answer -- There's quite a high chance that now... you know it works, but don't really know why...

By leading you towards it, you would not only learn something, but you would also be able to extend the code and make it better...

For example a progress bar - but I'll leave that up to you to figure out...

...maybe one day I'll finish a project

Login to post a reply

Server time is: 2024-09-24 03:23:18
Your offset time is: 2024-09-24 03:23:18