wm中安装软件时创建中国快捷方式
2010-09-02 08:51
274 查看
C:/Program Files/Windows Mobile 6 SDK/Samples/Common/CPP/Win32/SetupDLL
// **************************************************************************
// Function Name: Install_Exit
//
// Purpose: processes the push message.
//
// Arguments:
// IN HWND hwndParent handle to the parent window
// IN LPCTSTR pszInstallDir name of the user-selected install directory of the application
//
// Return Values:
// codeINSTALL_EXIT
// returns install status
//
// Description:
// Register query client with the PushRouter as part of installation.
// Only the first two parameters really count.
// **************************************************************************
SETUP_API codeINSTALL_EXIT Install_Exit(
HWND hwndParent,
LPCTSTR pszInstallDir, // final install directory
WORD cFailedDirs,
WORD cFailedFiles,
WORD cFailedRegKeys,
WORD cFailedRegVals,
WORD cFailedShortcuts
)
在这个函数里面创建中文快捷方式:
if(SHGetSpecialFolderPath(NULL, szLinkPath, CSIDL_PROGRAMS,FALSE))
{
_tcscat(szLinkPath, _T("中文快捷方式.lnk"));
DeleteFile(szLinkPath);
if(SHCreateShortcut(szLinkPath, szAppPath) == FALSE)
{
//MessageBox(NULL, _T("安装快捷方式失败"), _T("提示"), MB_OK);
}
}
else
{
//MessageBox(NULL, _T("获取系统文件路径失败"), _T("提示"), MB_OK);
}
在安装工程里面设置 CE Setup Dll 为:SetupDLL.dll
// **************************************************************************
// Function Name: Install_Exit
//
// Purpose: processes the push message.
//
// Arguments:
// IN HWND hwndParent handle to the parent window
// IN LPCTSTR pszInstallDir name of the user-selected install directory of the application
//
// Return Values:
// codeINSTALL_EXIT
// returns install status
//
// Description:
// Register query client with the PushRouter as part of installation.
// Only the first two parameters really count.
// **************************************************************************
SETUP_API codeINSTALL_EXIT Install_Exit(
HWND hwndParent,
LPCTSTR pszInstallDir, // final install directory
WORD cFailedDirs,
WORD cFailedFiles,
WORD cFailedRegKeys,
WORD cFailedRegVals,
WORD cFailedShortcuts
)
在这个函数里面创建中文快捷方式:
if(SHGetSpecialFolderPath(NULL, szLinkPath, CSIDL_PROGRAMS,FALSE))
{
_tcscat(szLinkPath, _T("中文快捷方式.lnk"));
DeleteFile(szLinkPath);
if(SHCreateShortcut(szLinkPath, szAppPath) == FALSE)
{
//MessageBox(NULL, _T("安装快捷方式失败"), _T("提示"), MB_OK);
}
}
else
{
//MessageBox(NULL, _T("获取系统文件路径失败"), _T("提示"), MB_OK);
}
在安装工程里面设置 CE Setup Dll 为:SetupDLL.dll
相关文章推荐
- linux 安装软件 创建桌面快捷方式
- linux中手动安装的软件的快捷方式的创建
- unity 实现另一个unity软件的安装工具(5)——创建桌面快捷方式
- 【软件-InstallAnywhere】Java软件打包:将指定的文件创建快捷方式并安装到桌面(工具installanywhere2012)
- Ubuntu安装eclipse,并创建桌面快捷方式
- Ubuntu下将安装软件快捷方式添加到侧边栏
- ubuntu系统下创建软件桌面快捷方式
- Ubuntu 16.04安装Eclipse并创建桌面快捷方式
- android 软件 安装 卸载 启动 分享 桌面快捷方式
- linux下自己安装软件添加快捷方式
- Ubuntu安装eclipse,并创建桌面快捷方式
- linux下eclipse安装及快捷方式创建
- .Net程序打包安装与卸载制作 ——怎样创建网页快捷方式(“开始与程序”菜单中)?(七)
- java实现软件程序开机自动启动和创建程序的桌面快捷方式源代码
- fedora 安装程序并在桌面创建快捷方式
- Ubuntu安装火狐浏览器并创建桌面快捷方式
- 踩坑笔记之Pytorch利器:Pycharm(安装Pycharm破解以及创建快捷方式)
- .NET CF WM上创建快捷方式
- Linux软件桌面快捷方式创建--通用
- Ubuntu安装eclipse,并创建桌面快捷方式