NSIS for Smartphone: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
No edit summary
(new category for pda code)
Line 75: Line 75:




[[Category:Code_Examples]]
[[Category:PDA Examples]]

Revision as of 12:35, 26 October 2006

You can compile a setup launcher which will install multiple CAB files to Windows Mobile-based Smartphone using the Nullsoft Scriptable Install System (NSIS).
Snap1553.gif


Our objective is to make a desktop installer which will install several CAB files to a Smartphone by passing CAB files to the ActiveSync program. Launchers.gif


Very Important Notice
It will facilitate understanding of this article if you already have a background knowledge on how INI files are written and how CAB files for Smartphone are created.


Requirements
1. NSIS version 2.09
2. This ZIP File NSIS.for.SP.zip (4 KB) - contains NSIS sample script, sample CAB, sample INI and other required files
3. Microsoft Active Sync program installed on your PC


Instructions
1. Download then install NSIS version 2.09. Once installed, it will create necessary registry changes on your PC so that all *.NSI files will be associated with Nullsoft Scriptable Install System.


2. Download then unzip contents of the ZIP file. You should have the following files:
Snap1547.gif


3. Highlight ‘SCRIPT.nsi’ then right click mouse. Click on ‘Compile NSIS Script’.
Snap1548.gif


4. Wait for the confirmation window.
Snap1549.gif


5. Verify that your file was compiled.
Snap1550.gif


6. Test your file.

The EULA screen.
Eulasp.gif


The Options screen. You can choose from Custom or Full Installation type.
Snap1552.gif


The Installation Directory dialog. This is where your files will be dumped.
Snap1555.gif


Finally, once the last CAB file is being installed on the phone, you will see this on your computer’s monitor.
Snap1554.gif


Tips
- Open the NSI file then make necessary changes (change app name, change icon, change component names etc)
- Provide your own CAB and INI files, provide a custom icon.
- Change content of the sample eula
- Open the html file then change the contents.


To add another CAB file (File 4, etc)
Code in green should be inserted between the 2 red lines. Before you recompile the script, ensure that you have the new files (4.CAB and 4.ini) inside the folder.
Snap1556.gif


Try this sample setup launcher Multi.Cab.Install.zip (23 KB)