Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Question] Delphi Installer

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Simsgy
Grandmaster Cheater
Reputation: 0

Joined: 07 May 2007
Posts: 581
Location: My new avatar <3

PostPosted: Sat Jun 09, 2007 7:05 am    Post subject: [Question] Delphi Installer Reply with quote

I want to know how to make an installation in Delphi.
I just started to program so...
I just want to move files from a spacified folder to another, is it able?
Thanks.

_________________

Designer, WebMaster and a Delphi programmer.
TrPlayer, my biggest Delphi project hosted on SourceForge.net
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sat Jun 09, 2007 7:21 am    Post subject: Reply with quote

Do you mean make a setup program that will install files and folders into a certain directory? Or do you just mean make a button and on click will move so and so files to a directory?
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Simsgy
Grandmaster Cheater
Reputation: 0

Joined: 07 May 2007
Posts: 581
Location: My new avatar <3

PostPosted: Sat Jun 09, 2007 10:04 am    Post subject: Reply with quote

oib111 wrote:
Do you mean make a setup program that will install files and folders into a certain directory? Or do you just mean make a button and on click will move so and so files to a directory?


A button.

_________________

Designer, WebMaster and a Delphi programmer.
TrPlayer, my biggest Delphi project hosted on SourceForge.net
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Sat Jun 09, 2007 10:07 am    Post subject: Reply with quote

CopyFile()

but I strongly recommend you use MSIs else you will have some problems when people try to install your programs in vista+, but even if you aren't targetting that platform, you should support having a standard installation system, resembling linux's package managing system, makes it easier for everyone.
Back to top
View user's profile Send private message
Simsgy
Grandmaster Cheater
Reputation: 0

Joined: 07 May 2007
Posts: 581
Location: My new avatar <3

PostPosted: Sat Jun 09, 2007 11:14 am    Post subject: Reply with quote

appalsap wrote:
CopyFile()

but I strongly recommend you use MSIs else you will have some problems when people try to install your programs in vista+, but even if you aren't targetting that platform, you should support having a standard installation system, resembling linux's package managing system, makes it easier for everyone.


Could you give me the full line?
Like:

CopyFile('aouisfdnaoifun.exe') to ('C:/')
Or something?

_________________

Designer, WebMaster and a Delphi programmer.
TrPlayer, my biggest Delphi project hosted on SourceForge.net
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Renkokuken
GO Moderator
Reputation: 4

Joined: 22 Oct 2006
Posts: 3249

PostPosted: Sat Jun 09, 2007 12:15 pm    Post subject: Reply with quote

Simsgy wrote:
appalsap wrote:
CopyFile()

but I strongly recommend you use MSIs else you will have some problems when people try to install your programs in vista+, but even if you aren't targetting that platform, you should support having a standard installation system, resembling linux's package managing system, makes it easier for everyone.


Could you give me the full line?
Like:

CopyFile('aouisfdnaoifun.exe') to ('C:/')
Or something?
Parameters...

Code:
BOOL CopyFile(
  LPCTSTR lpExistingFileName,
  LPCTSTR lpNewFileName,
  BOOL bFailIfExists
);


In use...

Code:
CopyFile('C:/WOWomg.TXT','C:/WOWomg2.TXT',FILE_ATTRIBUTE_NORMAL)
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Sat Jun 09, 2007 12:17 pm    Post subject: Reply with quote

FILE_ATTRIBUTE_NORMAL is 0x80 which is true but you might have to typecast it to a BOOL, you should just say true or false to avoid confusion.
Back to top
View user's profile Send private message
Simsgy
Grandmaster Cheater
Reputation: 0

Joined: 07 May 2007
Posts: 581
Location: My new avatar <3

PostPosted: Sat Jun 09, 2007 1:08 pm    Post subject: Reply with quote

Renkokuken wrote:
Simsgy wrote:
appalsap wrote:
CopyFile()

but I strongly recommend you use MSIs else you will have some problems when people try to install your programs in vista+, but even if you aren't targetting that platform, you should support having a standard installation system, resembling linux's package managing system, makes it easier for everyone.


Could you give me the full line?
Like:

CopyFile('aouisfdnaoifun.exe') to ('C:/')
Or something?
Parameters...

Code:
BOOL CopyFile(
  LPCTSTR lpExistingFileName,
  LPCTSTR lpNewFileName,
  BOOL bFailIfExists
);


In use...

Code:
CopyFile('C:/WOWomg.TXT','C:/WOWomg2.TXT',FILE_ATTRIBUTE_NORMAL)


I try doing
Code:
CopyFile('C:/WOWomg.TXT','C:/WOWomg2.TXT',FILE_ATTRIBUTE_NORMAL)


But it says:

[Error] Unit1.pas(2Cool: Incompatible types: 'LongBool' and 'Integer'
[Fatal Error] Project1.dpr(5): Could not compile used unit 'Unit1.pas'

I know i'm a horrible n00b Delphi programmer, but I just started so no flame pl0x.

_________________

Designer, WebMaster and a Delphi programmer.
TrPlayer, my biggest Delphi project hosted on SourceForge.net
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Sat Jun 09, 2007 1:15 pm    Post subject: Reply with quote

change FILE_ATTRIBUTE_NORMAL to 1 if you don't want to overwrite WOWomg2.TXT if it exists or 0 if you do want to overwrite.

edit: and you should really read my posts.
edit2: and learn to troubleshoot problems independantly
Back to top
View user's profile Send private message
Simsgy
Grandmaster Cheater
Reputation: 0

Joined: 07 May 2007
Posts: 581
Location: My new avatar <3

PostPosted: Sat Jun 09, 2007 1:21 pm    Post subject: Reply with quote

appalsap wrote:
change FILE_ATTRIBUTE_NORMAL to 1 if you don't want to overwrite WOWomg2.TXT if it exists or 0 if you do want to overwrite.

edit: and you should really read my posts.
edit2: and learn to troubleshoot problems independantly


Changed to 0, still same error.
And what posts?

_________________

Designer, WebMaster and a Delphi programmer.
TrPlayer, my biggest Delphi project hosted on SourceForge.net
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
TheSorc3r3r
I post too much
Reputation: 0

Joined: 06 Sep 2006
Posts: 2404

PostPosted: Sat Jun 09, 2007 1:39 pm    Post subject: Reply with quote

Look through your thread:
appalsap wrote:
FILE_ATTRIBUTE_NORMAL is 0x80 which is true but you might have to typecast it to a BOOL, you should just say true or false to avoid confusion.


...

_________________


Don't laugh, I'm still learning photoshop!
Back to top
View user's profile Send private message
Simsgy
Grandmaster Cheater
Reputation: 0

Joined: 07 May 2007
Posts: 581
Location: My new avatar <3

PostPosted: Sat Jun 09, 2007 1:51 pm    Post subject: Reply with quote

TheSorc3r3r wrote:
Look through your thread:
appalsap wrote:
FILE_ATTRIBUTE_NORMAL is 0x80 which is true but you might have to typecast it to a BOOL, you should just say true or false to avoid confusion.


...


W00T THANKS WORKING
THANKS APPALSAP AND ALL OF THE HELPERS!
I'm so happy ~~~

_________________

Designer, WebMaster and a Delphi programmer.
TrPlayer, my biggest Delphi project hosted on SourceForge.net
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Sun Jun 10, 2007 3:47 am    Post subject: Reply with quote

Simsgy wrote:
TheSorc3r3r wrote:
Look through your thread:
appalsap wrote:
FILE_ATTRIBUTE_NORMAL is 0x80 which is true but you might have to typecast it to a BOOL, you should just say true or false to avoid confusion.


...


W00T THANKS WORKING
THANKS APPALSAP AND ALL OF THE HELPERS!
I'm so happy ~~~


Surprised
Back to top
View user's profile Send private message
Simsgy
Grandmaster Cheater
Reputation: 0

Joined: 07 May 2007
Posts: 581
Location: My new avatar <3

PostPosted: Sun Jun 10, 2007 5:34 am    Post subject: Reply with quote

Kaspersky wrote:
Simsgy wrote:
TheSorc3r3r wrote:
Look through your thread:
appalsap wrote:
FILE_ATTRIBUTE_NORMAL is 0x80 which is true but you might have to typecast it to a BOOL, you should just say true or false to avoid confusion.


...


W00T THANKS WORKING
THANKS APPALSAP AND ALL OF THE HELPERS!
I'm so happy ~~~


Surprised


Lol hey...
When I will come back from school, log in MSN, I need to talk to you about something.

_________________

Designer, WebMaster and a Delphi programmer.
TrPlayer, my biggest Delphi project hosted on SourceForge.net
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites