Pocket PC Installer Using ActiveSync: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Reverted edits by 201.6.3.241 to last version by Kichik)
(mobLxKPsT)
Line 1: Line 1:
{{PageAuthor|JakeChance}}
Nearly all of what you point out is supprisingly letaigmite and it makes me wonder why I hadn't looked at this in this light before. This particular article truly did switch the light on for me personally as far as this specific topic goes. Nevertheless at this time there is actually one particular factor I am not really too comfortable with so whilst I try to reconcile that with the central theme of the position, permit me observe exactly what all the rest of your subscribers have to point out.Nicely done.
 
== Description ==
 
This example shows how to make a desktop installer that only installs its contents to a Windows CE OS device by passing CAB files to the ActiveSync program.
 
== Example ==
 
=== The Script ===
 
<highlight-nsis>
InstallDir "$TEMP\YourProgramName"
 
;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\YourINIfile.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
</highlight-nsis>
 
=== The INI File ===
 
Use this as this file: "$INSTDIR\YourINIfile.ini".
 
<highlight-ini>
;DO NOT EDIT CEAppManager Version
[CEAppManager]
Version = 1.0
Component = YourProgramName
 
[YourProgramName]
Description = YourProgramName
CabFiles = YourCABFile(s).CAB
</highlight-ini>
 
[[Category:PDA Examples]]

Revision as of 11:37, 15 May 2013

Nearly all of what you point out is supprisingly letaigmite and it makes me wonder why I hadn't looked at this in this light before. This particular article truly did switch the light on for me personally as far as this specific topic goes. Nevertheless at this time there is actually one particular factor I am not really too comfortable with so whilst I try to reconcile that with the central theme of the position, permit me observe exactly what all the rest of your subscribers have to point out.Nicely done.