DosTips.com

A Forum all about DOS Batch
It is currently 03 May 2016 10:20

All times are UTC-06:00




Post new topic  Reply to topic  [ 17 posts ]  Go to page 1 2 Next
Author Message
PostPosted: 25 Feb 2012 22:19 
Offline

Joined: 25 Feb 2012 22:12
Posts: 8
Hey guys I just registered and I am looking for a little help with a project that I am working on.

I created a batch file design to install certain things onto an Android device. Then I converted into an EXE using

Advance BAT to EXE Converter v2.50

Now everything works like its supposed to no problems there.

I can even give the EXE an icon. Its a pretty neat program that I found.

But what I need help with is actually taking the files and sub folders that hold even more files and include them in my EXE.

Can anyone help me with how would I combine all the files and folders with my EXE that way they cannot be seen?

Thank You very much in advance



Top
   
PostPosted: 25 Feb 2012 23:57 
Offline

Joined: 10 Feb 2012 02:20
Posts: 5567
What is the purpose of this program?


Top
   
PostPosted: 26 Feb 2012 01:38 
Offline

Joined: 25 Feb 2012 22:12
Posts: 8
This allows you to install android apps, which are in .apk extensions using adb mode. I prompt users to select the app and then it installs it for them.

I just dont want it to be a folder with all the dlls adb.exe for adb commands, the folders and apks etc.


I want to combine them all into one exe.

Thanks


Top
   
PostPosted: 26 Feb 2012 03:19 
Offline

Joined: 10 Feb 2012 02:20
Posts: 5567
So how does the batch file install apps on the android device?

You can create a self extracting archive file with everything inside.


Top
   
PostPosted: 26 Feb 2012 11:29 
Offline

Joined: 23 Dec 2011 13:59
Posts: 3036
Sounds like you need a different batch packager. The ones I have used in the past allow to include any additional resource files you need.


Top
   
PostPosted: 26 Feb 2012 12:34 
Offline

Joined: 25 Feb 2012 22:12
Posts: 8
Squashman wrote:
Sounds like you need a different batch packager. The ones I have used in the past allow to include any additional resource files you need.



Do you mind sharing what program/s you have used to include the source files please.

Thank You


Top
   
PostPosted: 26 Feb 2012 12:42 
Offline

Joined: 25 Feb 2012 22:12
Posts: 8
foxidrive wrote:
So how does the batch file install apps on the android device?

You can create a self extracting archive file with everything inside.




It installs the apps by doing the following command: adb install name.apk


Then it installs the app onto the phone.

I also have it check the Android OS version to verify that the apk will work on that version.


Top
   
PostPosted: 27 Feb 2012 00:39 
Offline

Joined: 25 Feb 2012 22:12
Posts: 8
A quick note.

I don't want the files to ever be decompiled or unzipped.

I want the EXE to Remain whole.

Thanks Again


Top
   
PostPosted: 27 Feb 2012 03:30 
Offline

Joined: 10 Feb 2012 02:20
Posts: 5567
spiderman187 wrote:
I don't want the files to ever be decompiled or unzipped.


AFAICS It can't be done.

If you have an application that runs and calls files from a folder structure, then it will not run unless the folder structure and files are available on the hard drive or other media, at least temporarily.


Top
   
PostPosted: 27 Feb 2012 10:41 
Offline

Joined: 25 Feb 2012 22:12
Posts: 8
I see what you mean.

Any suggestions on how to make it so that the files are temporary ?

Thank you


Top
   
PostPosted: 27 Feb 2012 11:18 
Offline

Joined: 23 Dec 2011 13:59
Posts: 3036
spiderman187 wrote:
A quick note.

I don't want the files to ever be decompiled or unzipped.

I want the EXE to Remain whole.

Thanks Again

That is all a BAT to EXE converter does. It packages up all your files into a Self extracting archive. When you execute the exe it unpacks the archive and executes your batch file. Then it deletes what it unpacked.


Top
   
PostPosted: 27 Feb 2012 13:18 
Offline
Expert

Joined: 04 Oct 2008 09:49
Posts: 357
TrueCrypt will encrypt partitions or folders or possible files to render inaccessible any information on the disc.
It will decrypt and supply the original in plain text/code without placing the plain text/code on the disc.

I think the technology exists to prevent the average user from gaining access to your decrypted code.
I suspect however there would be ways of capturing the contents of memory.


Top
   
PostPosted: 27 Feb 2012 14:59 
Offline

Joined: 10 Feb 2012 02:20
Posts: 5567
Squashman wrote:
That is all a BAT to EXE converter does. It packages up all your files into a Self extracting archive. When you execute the exe it unpacks the archive and executes your batch file. Then it deletes what it unpacked.


That's what an install wrapper type of program would do too.

Traditionally a bat to exe program just makes an executable out of a bat file - I hadn't been aware that modern ones wrap up folders and files too.


Top
   
PostPosted: 27 Feb 2012 15:13 
Offline

Joined: 25 Feb 2012 22:12
Posts: 8
foxidrive wrote:

That's what an install wrapper type of program would do too.

Traditionally a bat to exe program just makes an executable out of a bat file - I hadn't been aware that modern ones wrap up folders and files too.


I did find a program that includes files but when you run the exe it extracts the files into the folder. One step closer lol.

I wish it made them temp but this program doesn't do that. As soon as I find it I will post it here.

Thank You guys again for all your help.

:lol:


Top
   
PostPosted: 28 Feb 2012 07:35 
Offline

Joined: 24 Aug 2009 10:11
Posts: 14
Hi,

Quote:
I wish it made them temp but this program doesn't do that.


Bat To Exe-Converter (http://www.f2ko.de/programs.php?lang=en&pid=b2e has this feature.

To add folders/sub-folder, the only solution I can think of would be:
1. 7zip the folders.
2. Add the parameters (7z.exe x folder.7z) in the batch-script to extract the archives when executed.
3. Add the 7zip binaries (7z.exe, 7z.dll) and 7zipped files to the Bat To Exe-Conveter program.

The program also have a feature to password protect the exe and delete temp when finished.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 17 posts ]  Go to page 1 2 Next

All times are UTC-06:00


Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 11 guests


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

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited