CAB/INF, install directory out of control with user selected install volume
CAB/INF/CeAppMgr together with user selected installation volume.
When users let the installation be done on device as suggested by CeAppMgr/Add-Rem-Prog the installation directory
is set as described by Installdir in the .inf.
When user choose to select another installation volym the suggested (and unchangeble) install directed is no longer
the one set in the .inf? Now it's generated by two variables in .inf, Provider under [Version] and AppName under
[CEStrings] are merged together with a blankspace in between.
Details
-
INF:
[Version]
Signature = "$Windows NT$"
Provider = "MyComp"
CESignature = "$Windows CE$"
[CEStrings]
AppName="MyApp"
Installdir=\mydir
; ... some other stuff before EOF...
Cabwiz call:
> CabWiz.exe myapp.inf /err err.log
Resulting in a new cab: myapp.CAB
INI:
[CEAppManager]
Version=1.0
Component=MYAPP
[MYAPP]
Description="MyApp in a CAB"
Uninstall=MYAPP
CabFiles=myapp.CAB
NSIS is used for install scripting, in the script the CeAppMgr is called with my INI as source.
; ... some other stuff before ...
var CeAppMgrLocation
ReadRegStr $CeAppMgrLocation HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\CEAPPMGR.EXE" ""
ExecWait '"$CeAppMgrLocation" "$INSTDIR\myapp.ini"' $0
; ... some other stuff after ...
The Add/Remove Program part of ActiveSync starts and prompts for user interaction:
> Install "MyComp MyApp" using the default application directory?
> YES/NO/CANCEL
1. Choose YES. The application is installed on the device as defined in the INF:
"My Device\mydir"
2. Choose NO. Here the problem occures, when users choose NO the installation continues with promt for selection
of install volume as it should but ... when installed the defined installation directory is replaced with "MyComp MyApp"?:
"My Device\Storage Card\MyComp MyApp"
I've search the web and MSDN but I can't find any solution or description for this odd behaviour.
Could anyone point me in right direction because I don't know what I'm doing wrong?
Ref:
User Selected Installation Volume
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcepbguide5/html/wce51conUserSelectedInstallationLocationSPOnly.asp
Create an Application Installation Package
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnce30/html/appinstall30.asp
Create an .inf for the CAB Wizard
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesetup/html/_wcesdk_Creating_an_inf_File_for_the_CAB_Wizard.asp
/Regs jutsi

