Category:Browse: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Added "Browse" category.)
 
(Windows CE \ Pocket PC Small Installer)
Line 1: Line 1:
Wiki pages can be children of one or more other wiki pages thereby forming a hierarchy. The list of pages you see below are those pages that are at the top of the hierarchy.
Make a desktop installer that only installs its contense to a Windows CE device. You can add what ever you like to the rest of the program but these are the only steps you need to pass the CAB to ActiveSync and let it do the rest.
Obviously fill in where it makes sense.
 
This is just a place to hold your files, it can be anything but your program name works best as the folder shouldn't already exist
 
InstallDir "$TEMP\YourProgram'sName"
 
 
Var to hold the location of CeAppMgr.exe
 
var CeAppMgrLocation
 
Section PathObtain
  ;It can be obtained from the registry at this location always
  ReadRegStr $CeAppMgrLocation HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\CEAPPMGR.EXE" ""
SectionEnd
 
Section CEInstallAndDelete
  ;This calls the program and passes to it the program's ini file which tells it which CAB file(s) it needs and sets it up to install
  ExecWait '"$CeAppMgrLocation" "$INSTDIR\YourProgram'sINIfile.ini"' $0
  ;Changes the output path so the temporary folder can be deleted
  SetOutPath $TEMP
  ;Remove the directory and all the files put into it
  RMDir /r /REBOOTOK $INSTDIR
SectionEnd
 
 
Thats all you need for it to be a very clean install process.
***IMPORTANT You absolutely must have a CAB file and INI file which for example would look like
 
 
 
;DO NOT EDIT CEAppManager Version
[CEAppManager]
Version = 1.0
Component = YourProgram'sName
 
[YourProgram'sName]
Description = YourProgram'sName
CabFiles = YourProgram'sCABFile(s).CAB
 
 
 
The only two things in my install are a CAB file that is referenced in the ini file I pass to CeAppMgr

Revision as of 17:06, 16 June 2005

Make a desktop installer that only installs its contense to a Windows CE device. You can add what ever you like to the rest of the program but these are the only steps you need to pass the CAB to ActiveSync and let it do the rest. Obviously fill in where it makes sense.

This is just a place to hold your files, it can be anything but your program name works best as the folder shouldn't already exist

InstallDir "$TEMP\YourProgram'sName"


Var to hold the location of CeAppMgr.exe

var CeAppMgrLocation

Section PathObtain

 ;It can be obtained from the registry at this location always
 ReadRegStr $CeAppMgrLocation HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\CEAPPMGR.EXE" ""

SectionEnd

Section CEInstallAndDelete

 ;This calls the program and passes to it the program's ini file which tells it which CAB file(s) it needs and sets it up to install
 ExecWait '"$CeAppMgrLocation" "$INSTDIR\YourProgram'sINIfile.ini"' $0
 ;Changes the output path so the temporary folder can be deleted
 SetOutPath $TEMP
 ;Remove the directory and all the files put into it
 RMDir /r /REBOOTOK $INSTDIR

SectionEnd


Thats all you need for it to be a very clean install process.

      • IMPORTANT You absolutely must have a CAB file and INI file which for example would look like


DO NOT EDIT CEAppManager Version

[CEAppManager] Version = 1.0 Component = YourProgram'sName

[YourProgram'sName] Description = YourProgram'sName CabFiles = YourProgram'sCABFile(s).CAB


The only two things in my install are a CAB file that is referenced in the ini file I pass to CeAppMgr

Subcategories

This category has the following 2 subcategories, out of 2 total.

Pages in category "Browse"

This category contains only the following page.