Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Publishing an application. 1

Status
Not open for further replies.

Snaples

Programmer
May 7, 2007
16
IL
I finished doing this app and I want to give to people to try it out.
which files do I need to delete, so the won't see any source remain?

my files:
SysChange.Dpr (SysChange is the name of my application)
SysChange.dproj
SysChange.dproj.local
SysChange.identcache
SysChange.res
Unit1.dcu
Unit1.dfm
Unit1.pas
Unit3.dcu
Unit3.dfm
Unit3.pas
SysChange.exe.bak


Thanks alot in advance :D
 
just distribute the .exe file?

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
If I understand your question correctly, the answer is "none of them". If you delete them, you will not be able to make changes and re-compile your program.

The only file you need to distribute to your users is SysChange.exe

In Delphi menu, look at Project > Options > Directories/Conditions > Output directory. That's where the EXE will be. If blank, it's the same folder as SysChange.Dpr (Not in your list, but SysChange.exe.bak is ??? )

Roo
Delphi Rules!
 
So I dont need to keep the compiled units?
because from my pascal exprience the exe file didnt work without them...
 
In Delphi menu, go to Project > Options > Packages and uncheck "Build with runtime packages". Then re-compile. You now have a stand-alone executable.

You can delete the intermediate .dcu files if you like. They're not readable by anyone or anything other than the compiler.

Roo
Delphi Rules!
 
thats the answer I was looking for!
Thanks alot!!!!
 
smiletiniest.gif
 
Isn't 'Build with runtime packages', unchecked by default.


Steve [The sane]: Delphi a feersum engin indeed.
 
Personaly I wouldn't delete anything. You just know you'll want one of the files later !
The complied .exe should be enough for the app to run. If it talks to a database or other external files then they will need to be either created on install or provided too.


My Feeblegirl.com Forum boards for mmorpgs, sport, fun, politics...
 
Thank you all for the replies.

I have another question.
when i gave it to other people to test the app some of them (not all...) had an I/O error...(something that there isnt access aproval to the user).

in my program i use a file download from the internet :

"
function GetInetFile (const fileURL, FileName: String): boolean;
const
BufferSize = 1024;
var
hSession, hURL: HInternet;
Buffer: array[1..BufferSize] of Byte;
BufferLen: DWORD;
f: File;
sAppName: string;
begin
result := false;
sAppName := ExtractFileName(Application.ExeName) ;
hSession := InternetOpen(PChar(sAppName), INTERNET_OPEN_TYPE_PRECONFIG, nil, nil, 0) ;
try
hURL := InternetOpenURL(hSession, PChar(fileURL), nil, 0, 0, 0) ;
try
AssignFile(f, FileName) ;
Rewrite(f,1) ;
repeat
InternetReadFile(hURL, @Buffer, SizeOf(Buffer), BufferLen) ;
BlockWrite(f, Buffer, BufferLen)
until BufferLen = 0;
CloseFile(f) ;
result := True;
finally
InternetCloseHandle(hURL)
end
finally
InternetCloseHandle(hSession)
end;
GetInetFile := result ;
end;
"

and after the file is downloaded i use a regular AssignFile, Reset and Close commands to read from it...



Help would be grately appreciated!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top