Jump to content

Setup files..


Guest alhabibam

Recommended Posts

Guest alhabibam

Hi,

I want to create a setup file for my smartphone project?

Is the .cab file enough to be independent file for setup.??

I need to create a standalone file that is used to install the application in the mobile. What should I do???

Thanks.

Link to comment
Share on other sites

Guest gpcarreon (MVP)

There are freeware EXE compilers available on the net. You can try EZSetup by Spb Softwarehouse or Nullsoft Scriptable Install System.

Check out these links:

http://www.spbsoftwarehouse.com/products/ezsetup/?en

http://nsis.sf.net

I havent tried NSIS though. I use EZSetup most of the time. Its a command line application with some parameter keys.

Use this code:

ezsetup -l english -i YOUR.APP.ini -r readme.txt -e eula.txt -o YOUR.APP.exe

You should have a valid ini, cab file, read me and eula.txt, and EZsetup.exe inside a folder for your setup launcher to compile.

HTH ;)

Link to comment
Share on other sites

Guest alhabibam

What is a valid ini file, in my application folder there is no .ini file, there is a .inf file.

and what should be in the readme.txt and in the eula.txt files..

thanks

Link to comment
Share on other sites

Guest gpcarreon (MVP)

Here is an example of an INI file...save it as 'MYAPP.ini' :

[CEAppManager]

Version      = 1.0

Component    = MY APP


[MY APP]

Description  = TV Remote Control

Uninstall    = MY APP

IconIndex    = 0

DeviceFile   = MYAPP.exe

CabFiles     = MY.APP.CAB
Well the readme.txt contains info regarding your app like system requirements, important reminders, app description, etc. It will be the first window to pop once you have launched 'MYAPP.exe' on PC. The eula.txt on the other hand is basically the license agreement, the end-users license agreement to be precise. For instance you already hve a CAB file and you want it compiled to EXE setup launcher using EZSetup... 1. Create a folder in drive C. Example C:\MYAPP 2. Dump MY.APP.CAB file inside the folder together with ezsetup.exe, MYAPP.ini, readme.txt , and eula.txt 3. Enter command prompt then type:
ezsetup -l english -i MYAPP.ini -r readme.txt -e eula.txt -o MYAPP.exe

Where...

-l = Language (English)

-i = File name of INI

-r = Read me file in 'readme.txt' format

-e = EULA in 'eula.txt' format

-o = Output file in EXE format.

4. Hit enter to compile the files.

You should now see MYAPP.exe inside MYAPP folder.

Test the setup launcher on your machine. If it wont load on the device, there must be something wrong with the CAB file. ;)

Link to comment
Share on other sites

Guest alhabibam

Regarding the ini file...

How can I create an ini file specific to my application.

How to know what are the values of the required attributes.

I always get an error with the value of Compponent attribute..

Also regarding the other files,,, should they be in a specific format or not???

Can you help me with this please.........

Thanks.

Link to comment
Share on other sites

Guest gpcarreon (MVP)

I am trying my best to help you. ;)

You may get an idea how inf files are made using this link:

http://www.modaco.com/Creating_CAB_files_f...one-t94713.html

If you already have a CAB installer then the next thing you might consider is doing an INI file for your setup launcher and compile it using EZSetup. Setup launchers are EXE files launched in PC then auto-executes your cab on the device. If there is something wrong with the CAB then it will not install but if you can easily install the cab then you will not encounter problems with the EXE anymore.

What exactly do you mean by: Also regarding the other files,,, should they be in a specific format or not??? ?

If you are referring to the *.txt files used in EZSetup then the answer would be a yes. There should be 'readme.txt' and 'eula.txt' inside the folder.

Kindly take a look at the attached picture (Picture 1). These are the things I was explaining on my 2nd reply.

Picture 2 shows how 'readme.txt' looks after I clicked the setup launcher (GPC.Mpire.AHS.exe) on my PC. If I continue up to the end of the wizard, GPC MPire AHS.CAB will install on my phone.

Those are the things I know along setup launcher creation. I hope that helps.

post-12251-1116603752_thumb.jpg

post-12251-1116604025_thumb.jpg

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.