The easiest way that i found to create an NSB Installer

I created INFactory for the developers that do not use eVB also and, therefore, could meet some difficulties to use my first program IPWiz2. The program is so easy to use that the Help, enclosed in the downlodable zipped file, and this page also could not need to use INFactory. All the procedure is fully driven that means that the user has 1 button and one only to use for each step of the program. Anyway you will find below a detailed description explainig how to use the program. Unzip the program and extract all the files in the HD roots dir. You will get so a directory tree of wich 'INFactory' is the main folder. (see at side) Before using INFactory you must store all the required NSBasic Runtime files and the others Dll you use into the relative subDirs respecting their names. (If you wish to see how to get the files you need see HERE) Your program .nsb will be stored into the subDir 'ApplicationFiles' , the resulting installation code will be available in the suDir 'CodeResult' at the end of the procedure. The INFactory program is into the main folder with the same name. You must add here the Cabwiz set of files that INFactory will call to create the CAB file. You should find it in the NSBasic CD, or in the eVB dirs if you use it, or you should download it from Microsoft site. I can not add these files into my package because they are declared by MS EULA as 'not redistributable' and you must accept their licence before using them. If you are a developer or you wish to program for WinCE it should not be a problem. As soon as the above has been done you are ready to use INFactory so click on the exe file. You will see the following:click on the STEP 1 button to see
This window reqires to type some information about your application and to select target device O.S. and relative CPU. Type them in and press the button APPLY. The program's window will enable the second button and you will see:
click STEP 2 button to see
In this window you must select in the frame on the left the folder(s) that contains your program's file and thence the runtime's files (PocketPC_ARM for example). In both cases click by the mouse on the file's name that you need and you will see them added in the List at side. If you make a mistake clicking on the file you may delete the same from the selected list simply clicking on it in the list on the right. As soon as all the requested files are listed click on APPLY. The program's window will enable the third button and you will see:
Click STEP 3 button to see
The list of the selected files on the right remain unchanged while on the left some classes of files will be shown. What to do here is to click on a class file (I.E. Files.Application for example) and with another mouse's click to associate a selected file name with the class ( in the example it may be 'YourProgram.nsb'). To associate multiple files'name you do not need to click any time on the class type. Click instead on the files'name only. (ATTENTION: there is no error adjustment for this operation. If something do wrong press the RESET button on top and start again. I will try to fix the matter later) At the end of the association click on APPLY You will see, shown in the program's window, a new button with caption 'Create INF file' to click:
thence click top button SEE CODE
The code of your .INF file just created will be listed in the program's window and you can also print it using the PRINT button below. To continue click again the 'see code' button now showing caption 'HIDE CODE' You will see again the previous window but now the button show the caption 'Create CAB file'
![]()
click on that button and you will see the black DOS window of Cabwiz.exe that will create your Cab file loading into the same all the files selected by you using the previuos steps. As soon as the DOS window hides you will find a new button with the caption 'INI file' in the program form. Click this last button. No new window will be shown but you will see in the instruction space at the bottom the word 'DONE !!' to inform you the end of the process. Well. Go now to see the forder 'C:\INFactory\CodeResult using explorer. You will see an image like the one below. The first three files are the one you need to use your installer. As you can see below the same files if you Zip them will be the 50 pct of their original dimension.