VS2008, Windows Mobile Installer Project

I am using Visual Studio 2008 Professional Edition. I wrote an application for Windows Mobile, and I would like to create an installer for this application. How it works?

+1
source share
6 answers

You will need to pack the application into a CAB file.

It is quite simple to do this - you simply create a new “Smart Device CAB project” (New project → Other project types → Setup and deployment).

To get started, specify that you want the output from your exe project to be included in the application directory, as well as any other dependent dlls.

, " ", " " > " " ", " " " ". exe .

( msi), Windows, ActiveSync , Windows Mobile . ActiveSync (CeAppMgr.exe) ini , .

- , " ", DLL ( ) , .

+10
+1

, , Windows, , , CAB, .NET, WM).

"" CAB , DLL, CAB "" DLL.

, : http://msdn.microsoft.com/en-us/library/bb158529.aspx

. , , "PocketPC Installer Professional" (Google, ). Windows, , , .

+1
+1

. : .


:

0

Here is a very simple example script in InnoSetup (with a preprocessor) to create a desktop installer for a Windows mobile device. You should already create a CAB, and the .ini file written for this should work correctly.

#define AppName "Your Software"
#define AppPublisher "Your Name Here"
#define ExeName "Your Software.exe"
#define UnixName "YourSoftware"
#define Short "YS"
#define Version "1.0"

[Setup]
AppName={#AppName}
AppVerName={#AppName} {#Version}
AppPublisher={#AppPublisher}
DefaultDirName={pf}\{#AppName}
DefaultGroupName={#AppName}
AllowNoIcons=yes
LicenseFile=license.rtf
OutputDir=//
OutputBaseFilename={#Short}_{#Version}_Setup
SetupIconFile=Icons\{#UnixName}.ico
Compression=lzma
SolidCompression=yes

[Languages]
Name: english; MessagesFile: compiler:Default.isl

[Tasks]
Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked
Name: quicklaunchicon; Description: {cm:CreateQuickLaunchIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked

[Registry]
Root: HKLM; Subkey: Software\{#Short}; ValueType: string; ValueName: Version; ValueData: {#Version}; Flags: uninsdeletekey

[Files]
Source: license.rtf; DestDir: {app}; Flags: ignoreversion
Source: {#UnixName}_{#Version}_Setup.CAB; DestDir: {app}; Flags: ignoreversion
Source: {#UnixName}_{#Version}_Setup.ini; DestDir: {app}; Flags: ignoreversion

[Icons]
Name: {group}\{#AppName}; Filename: {app}\{#ExeName}
Name: {group}\{cm:UninstallProgram,{#AppName}}; Filename: {uninstallexe}
Name: {userdesktop}\{#AppName}; Filename: {app}\{#ExeName}; Tasks: desktopicon
Name: {userappdata}\Microsoft\Internet Explorer\Quick Launch\{#AppName}; Filename: {app}\{#ExeName}; Tasks: quicklaunchicon

[Run]
Filename: "{pf64}\Microsoft ActiveSync\CEAPPMGR.EXE"; Parameters: ""{app}\{#UnixName}_{#Version}_Setup.ini""; Check: Is64BitInstallMode; WorkingDir: {app}
Filename: "{pf32}\Microsoft ActiveSync\CEAPPMGR.EXE"; Parameters: ""{app}\{#UnixName}_{#Version}_Setup.ini""; Check: not Is64BitInstallMode; WorkingDir: {app}
0
source

Source: https://habr.com/ru/post/1765970/


All Articles