1、判断文件是否存在

QFile file(path);

file.exists();

2、复制文件

bool copy(const QString &fileName, const QString &newName);

3、建立快捷方式

/*  GetShorCutPath    该函数得到计算机特定位置的路径    nFolder 表示位置标示,可取

CSIDL_BITBUCKET                    回收站

CSIDL_CONTROLS                    控制面板

CSIDL_DESKTOP                      Windows桌面desktop;

CSIDL_DESKTOPDIRECTORY   desktop的目录;

CSIDL_DRIVES                            我的电脑

CSIDL_FONTS                             字体目录

CSIDL_NETHOOD                       网上邻居

CSIDL_NETWORK                       网上邻居virtual folder

CSIDL_PERSONAL                      我的文档

CSIDL_PRINTERS                        打印机

CSIDL_PROGRAMS                    程序组

CSIDL_RECENT                          最近打开文档

CSIDL_SENDTO                          发送到菜单项

CSIDL_STARTMENU                    快启菜单

CSIDL_STARTUP                         启动目录

CSIDL_TEMPLATES                     临时文档

*/

shortcutName += ".lnk";
QString temppath = "";
GetShorCutPath(temppath,CSIDL_STARTMENU);
temppath += "/"+shortcutName;
QFile::link(appPath,temppath); void GetShorCutPath(QString &path,int nFolder)
{
LPITEMIDLIST pidl;
LPMALLOC pShellMalloc;
char szDir[]="";
char szDir2[]="";
if(SUCCEEDED(SHGetMalloc(&pShellMalloc)))
{
if(SUCCEEDED(SHGetSpecialFolderLocation(NULL,nFolder,&pidl)))
{
SHGetPathFromIDList(pidl,(LPWSTR)szDir);
pShellMalloc->Free(pidl);
}
pShellMalloc->Release();
} //类型转换
char temp = szDir[];
int start = ;
int start2 = ;
while(temp !='\0')
{
szDir2[start++] = temp;
start2 += ;
temp = szDir[start2];
if (temp == '\\')
{
temp = '/';
}
}
szDir2[start] = '\0';
path = QString(szDir2); }

4、开机启动程序

 void MainWindow::autoStart(IniFile &inifile,const QString &appPath)
{
QString flag;
QString appName;
appName = appPath.right(appPath.length()-appPath.lastIndexOf("/")-);
inifile.readIni("AUTOSTART",flag);
if(flag == "true")
{
QSettings *reg = new QSettings("HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Run",
QSettings::NativeFormat);
reg->setValue(appName,appPath);
}
}

5、运行程序

QProcess *process = new QProcess;      //这个不加析构,不退出
     process->start(appPath);

6、删除目录及其下所有文件

 void deleteDir(const QString &d)
{
QDir dir(d);
foreach (QFileInfo inf, dir.entryInfoList(QDir::Dirs|QDir::Files)) {
if(inf.isFile())
dir.remove(inf.absoluteFilePath());
else if(inf.isDir() &&
inf.fileName() != "." &&
inf.fileName() != "..")
deleteDir(inf.absolutePath()+"/"+inf.fileName());
}
dir.rmdir(dir.absolutePath());
}

7、抽取

 /*************************************************************************************
*
* File: SEFileInfo.cpp
* Version: 1.0
*
* Author: James Spibey
* Date: 04/08/1999
* E-mail: spib@bigfoot.com
*
* Implementation of the CSEFileInfo class
*
* You are free to use, distribute or modify this code
* as long as this header is not removed or modified.
*
*
*************************************************************************************/ #include "SEFileInfo.h" #ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif /*******************************************************************************
*
* Function: CSEFileInfo::CSEFileInfo
*
* Description:
* Default Constructor
*
* Parameters:
* None
*
* Return:
* None
*******************************************************************************/
CSEFileInfo::CSEFileInfo()
{
Reset();
} /*******************************************************************************
*
* Function: CSEFileInfo::~CSEFileInfo
*
* Description:
* Destructor
*
* Parameters:
* None
*
* Return:
* None
*******************************************************************************/
CSEFileInfo::~CSEFileInfo()
{
} /*******************************************************************************
*
* Function: CSEFileInfo::Reset
*
* Description:
* Reset the class data members
*
* Parameters:
* None
*
* Return:
* None
*******************************************************************************/
void CSEFileInfo::Reset()
{
m_nSize = ;
m_strPathname = "";
m_strFilename = "";
}
/*************************************************************************************
*
* File: SelfExtracter.cpp
* Version: 1.0
*
* Author: James Spibey
* Date: 04/08/1999
* E-mail: spib@bigfoot.com
*
* Implementation of the CSelfExtracter class
*
* You are free to use, distribute or modify this code
* as long as this header is not removed or modified.
*
*
*************************************************************************************/ #include "Windows.h"
#include "SelfExtractor.h"
#include "QDebug"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
#include "QFileDialog"
#include "QMessageBox"
#include "QDir"
#include "IniFile.h"
/*******************************************************************************
*
* Function: CSelfExtractor::CSelfExtractor
*
* Description:
* Default Constructor
*
* Parameters:
* None
*
* Return:
* None
*******************************************************************************/
CSelfExtractor::CSelfExtractor()
{
m_nFiles = ;
m_nTOCSize = ;
} /*******************************************************************************
*
* Function: CSelfExtractor::~CSelfExtractor
*
* Description:
* Destructor
*
* Parameters:
* None
*
* Return:
* None
*******************************************************************************/
CSelfExtractor::~CSelfExtractor()
{ } /*******************************************************************************
*
* Function: CSelfExtractor::ExtractAll
*
* Description:
* Extract the current archive to the specified directory
*
* Parameters:
* QString Dir: Destination Directory
* funcPtr pFn: Pointer to a user defined callback function
* void* UserData: User defined data to pass to the callback function
*
* Return:
* int: Error Code
* INPUT_FILE_ERROR - Failed to open the input file
* OUTPUT_FILE_ERROR - Failed to create an output file
*******************************************************************************/
int CSelfExtractor::ExtractAll(QString Dir, funcPtr pFn /*= NULL*/, void * userData /*= NULL*/) //如果用到这个,需要对getthisfilename做更改,如extract函数
{
//Make sure the directory name has a trailing backslash
EnsureTrailingBackSlash(Dir); QFile Thisfile(GetThisFileName()); //Archive (Usually itself)
//qDebug()<<GetThisFileName();
//Read the Table of Contents
int res = ReadTOC(GetThisFileName());
if(res != SUCCESS)
return res; //Open the archive
if(!Thisfile.open(QIODevice::ReadOnly))
return INPUT_FILE_ERROR;
else
{ //Get the files out in reverse order so we can work out the offsets
//Subtract 1 from the filecount as we are zero-based
for(int i = (m_nFiles - ); i >= ; i--)
{
ExtractOne(&Thisfile, i, Dir); //Do the callback
if(pFn != NULL)
pFn(static_cast<void*>(&m_InfoArray[i]), userData);
} //Close the archive
Thisfile.close();
}
return SUCCESS;
} /*******************************************************************************
*
* Function: CSelfExtractor::Extract
*
* Description:
* Extract a single file from the current archive to the specified directory
*
* Parameters:
* int index: index in array of file
* QString Dir: Destination Directory
*
* Return:
* int: Error Code
* INPUT_FILE_ERROR - Failed to open the input file
* OUTPUT_FILE_ERROR - Failed to create an output file
*******************************************************************************/
int CSelfExtractor::Extract(int index, QString Dir,QString &appName)
{
//Make sure the directory name has a trailing backslash
EnsureTrailingBackSlash(Dir); QFile Thisfile(appName);//Archive (Usually itself) //GetThisFileName() //Read the Table of Contents
int res = ReadTOC(appName); //GetThisFileName()
if(res != SUCCESS)
return res; //Open the archive
if(!Thisfile.open(QIODevice::ReadOnly))
return INPUT_FILE_ERROR;
else
{
ExtractOne(&Thisfile, index, Dir); //Close the archive
Thisfile.close();
}
return SUCCESS;
} /*******************************************************************************
*
* Function: CSelfExtractor::ExtractOne
*
* Description:
* Actual Data Extraction. Seeks to required offset in archive
* and writes new file
*
* Parameters:
* QFile* file: Pointer to the archive
* int index: Index of file in array
* QString Dir: Destination Dir
*
* Return:
* int: Error Code
*******************************************************************************/
int CSelfExtractor::ExtractOne(QFile* file, int index, QString Dir)
{
char buffer[]; //Buffer to read and write with
QFile NewFile(Dir + m_InfoArray[index].GetFilename()); //Extracted File //Get the file size (in bytes)
int FileSize = m_InfoArray[index].GetFileSize(); //Create the new file
if(!NewFile.open(QIODevice::WriteOnly))
return OUTPUT_FILE_ERROR; //Seek to the correct Offset
file->seek(m_InfoArray[index].GetFileOffset()); //Loop the data out from the archive
DWORD dwWritten = ;
DWORD dwRead = ;
int AmountToRead = ; while(TRUE)
{
//Read out 1000 bytes at a time or the remainder if
//there is less than 1000 left. Exit if there is none left
AmountToRead = FileSize - dwWritten;
if(AmountToRead > )
AmountToRead = ;
else if(AmountToRead == )
break; dwRead = file->read(buffer, AmountToRead);
NewFile.write(buffer, dwRead);
dwWritten += dwRead;
}
//Close the output file
NewFile.close(); return SUCCESS;
} /*******************************************************************************
*
* Function: CSelfExtractor::ReadTOC
*
* Description:
* Read the archive's Table of Contents
*
* Parameters:
* QString Filename: Filename of the archive (full path)
*
* Return:
* int: Error Code
*******************************************************************************/
int CSelfExtractor::ReadTOC(QString Filename)
{
QFile Thisfile(Filename); //Archive file
char buffer[]; //Buffer to read and write with //Clear the CSEFileInfo class array
Reset(); //Open the archive
if(!Thisfile.open(QIODevice::ReadOnly))
return NO_SOURCE;
else
{
//Read in the signature
int filelen = Thisfile.size();
Thisfile.seek(filelen- static_cast<int>(strlen(SIGNATURE)));
Thisfile.read(buffer, strlen(SIGNATURE)); //Check that it matches
if(strncmp(buffer, SIGNATURE, strlen(SIGNATURE)) != )
return INVALID_SIG;
else
{
//Read Number of files
int LastOffset = strlen(SIGNATURE) + static_cast<int>(sizeof(int));
Thisfile.seek(filelen-LastOffset);
Thisfile.read((char*)&m_nFiles, sizeof(int)); //If there are no files in the archive, there is nothing to extract
if(m_nFiles == )
return NOTHING_TO_DO; //Read the TOC in. The array is filled in reverse to ensure that it
//corresponds to the data segment
for(int i = (m_nFiles - ); i >= ; i--)
{
int nSize = ;
int nOffset = ;
int len = ;
LastOffset += sizeof(int); //Get Length of Pathname
Thisfile.seek(filelen-LastOffset);
Thisfile.read((char*)&len, sizeof(int));
LastOffset += len; //Get Path Name
Thisfile.seek(filelen-LastOffset);
Thisfile.read(buffer, len);
LastOffset += sizeof(int); //Get File Size
Thisfile.seek(filelen-LastOffset);
Thisfile.read((char*)&nSize, sizeof(int));
LastOffset += sizeof(int); //Get File Offset
Thisfile.seek(filelen-LastOffset);
Thisfile.read((char*)&nOffset, sizeof(int)); //Set the data in the array
m_InfoArray[i].SetSize(nSize);
QString Temp(buffer);
m_InfoArray[i].SetFilename(Temp.left(len));
m_InfoArray[i].SetOffset(nOffset);
} //Record the total size of the TOC for use
//when extracting the data segment
m_nTOCSize = LastOffset;
}
}
//Close the archive
Thisfile.close(); return SUCCESS;
} /*******************************************************************************
*
* Function: CSelfExtractor::Reset
*
* Description:
* Reset the CSEFileInfo Array
*
* Parameters:
* None
*
* Return:
* None
*******************************************************************************/
void CSelfExtractor::Reset()
{
for(int i = ; i < MAX_FILES; i++)
m_InfoArray[i].Reset(); m_nFiles = ;
m_nTOCSize = ;
} /*******************************************************************************
*
* Function: CSelfExtractor::EnsureTrailingBackSlash
*
* Description:
* Ensure that the string has a trailing backslash
*
* Parameters:
* QString &string: Pathname
*
* Return:
* QString: Pathname
*******************************************************************************/
QString CSelfExtractor::EnsureTrailingBackSlash(QString &string)
{
int len = string.length();
QDir DIR; if(!DIR.exists(string))
{
DIR.mkdir(string);
}
if(string[len - ] != '\\')
{
string += "/";
} return string;
} /*******************************************************************************
*
* Function: CSelfExtractor::GetThisFileName
*
* Description:
* Get this executable's file path
*
* Parameters:
* None
*
* Return:
* QString: Full Path for this executable
*******************************************************************************/
QString CSelfExtractor::GetThisFileName()
{
QString path;
QDir dir;
QString appName;
IniFile iniFile("C:/DymindTemp/TempPath/qt.ini");
iniFile.readIni("AppTitle",appName); path=dir.currentPath();
path +="/";
path += appName+".exe"; //改成install
//path += "INSTALL.exe" ;
QString showtext;
showtext = "apppath =" ;
showtext += path;
return path; }
#include "zipimplement.h"
#include <direct.h>
#include <vector>
#include <xstring>
#include "QFileInfo"
#include <QDir>
#include <QByteArray>
#include "QFileInfoList"
#include <QFile>
#include "QDebug"
#include "QMessageBox"
CZipImplement::CZipImplement(void)
{
m_progress.total = ;
m_progress.current = ;
} CZipImplement::~CZipImplement(void)
{
}
//解压文件到目录---------------------------------------------------------------------
BOOL CZipImplement::Zip_UnPackFiles(QString &mZipFileFullPath, QString& mUnPackPath,funcPtr function,void *userData)
{
//首先判断参数是否为空,为空则返回 false------------------------------- if ((mUnPackPath == "") || (mZipFileFullPath == ""))
{
return FALSE ;
} //判断文件时否是文件类型,如果不是返回 false-----------------------------
QFileInfo fileinfo(mZipFileFullPath); if(!fileinfo.isFile())
{ return FALSE;
} //如果解压缩的路径不存在 试图创建它,只能有一级目录没有创建-------------
QString tZipFilePath = mUnPackPath;
FolderExist(tZipFilePath);
tZipFilePath += "/"; //打开ZIP文件----------------------------------------------------------
char *filechar;
QByteArray ba = mZipFileFullPath.toLocal8Bit(); //Qstring 转换成char *
filechar = ba.data();
zFile=unzOpen(filechar); if(zFile == )
{
return FALSE;
} unz_global_info gi;
unz_file_info FileInfo;
if (unzGetGlobalInfo(zFile, &gi ) == UNZ_OK )
{
m_progress.total = gi.number_entry;
for ( unsigned int i = ; i < gi.number_entry; ++i )
{ m_progress.current = i;
char file[] = { };
char ext[] = { };
char com[] = { }; if ( unzGetCurrentFileInfo( zFile, &FileInfo, file, sizeof(file), ext, , com, ) != UNZ_OK )
{
return FALSE;
} if( !( FileInfo.external_fa & FILE_ATTRIBUTE_DIRECTORY ) ) //文件,否则为目录
{
unzOpenCurrentFile(zFile);
} char data[] = { };
int size;
QString path = tZipFilePath + file;
FolderExist(path);
QFile File(path);
File.open( QIODevice::WriteOnly); while(true)
{
size= unzReadCurrentFile(zFile,data,sizeof(data));
if(size <= )
{
break;
}
File.write(data, size);
}
File.close();
unzCloseCurrentFile(zFile);
if( i < gi.number_entry - && unzGoToNextFile( zFile ) != UNZ_OK )
{
return FALSE;
} } unzClose(zFile); if(function !=NULL)
{
function(static_cast<void*>(&m_progress),userData);
}
}
else
{
return FALSE;
}
return TRUE;
} void CZipImplement::FolderExist(QString& strPath)
{
//判定最后一级目录是否存在,如果不存在则创建目录
QDir *dir = new QDir;
int index = ;
//首先判断是否为文件路径
if(strPath.contains("."))
{
index = strPath.lastIndexOf("/");
}
else
{
index = strPath.length();
}
QString str = strPath.left(index); if(!dir->exists(str))
{
dir->mkdir(str);
}
delete dir;
dir = NULL;
}
#pragma once
#include "zip.h"
#include "unzip.h"
#include <QString>
struct ProGress
{
int total;
int current;
};
typedef void (*funcPtr)(void *,void*);
class CZipImplement
{
public:
CZipImplement(void);
~CZipImplement(void); private:
unzFile zFile; //Zip文件句柄 public: //***************************************************
//函数功能:解压zip文件到目录下
//参数定义:mZipFileFullPath ---zip文件绝对路径,mUnPackPath--- 输出文件目录
//
//***************************************************
BOOL Zip_UnPackFiles(QString &mZipFileFullPath, QString& mUnPackPath,funcPtr function = NULL,void *userData = NULL); //***************************************************
//函数功能:判断目录是否存在,如不存在创建目录
//参数定义:strPath-----目录路径
//
//***************************************************
void FolderExist(QString& strPath);
public:
ProGress m_progress;
};
/*************************************************************************************
*
* File: SelfExtracter.h
* Version: 1.0
*
* Author: James Spibey
* E-mail: spib@bigfoot.com
*
* Specification of the CSelfExtracter class
*
* This code was based on suggestions from :-
* Levente Farkas, Roger Allen, G黱ter (surname unknown)
*
* You are free to use, distribute or modify this code
* as long as this header is not removed or modified.
*
* Self Extractor (SFX) File Format
* ---------------------------------
*
* Starting from the end of the archive and working backwards :-
*
* Header Info
* 10 bytes Signature - Identifier for SFX archive
* 4 bytes Number of files in archive
*
* Table of Contents
*
* Contains one record in the following format for each file
* 4 bytes Length of filename
* variable Filename
* 4 bytes Length of File
* 4 bytes Offset in archive to data
*
* Data Segment
* Each file is written (uncompressed) here in the order of the TOC
*
* After this is the extractor executable.
*
*************************************************************************************/
#if !defined(AFX_SELFEXTRACTOR_H__849C04B2_4988_11D3_A8BC_0050043A01C0__INCLUDED_)
#define AFX_SELFEXTRACTOR_H__849C04B2_4988_11D3_A8BC_0050043A01C0__INCLUDED_ #if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "QFile"
#include "SEFileInfo.h"
#include "QDir"
#include "QString"
#define NO_SOURCE 1000
#define INVALID_SIG 1001
#define SUCCESS 1002
#define COPY_FAILED 1003
#define NOTHING_TO_DO 1004
#define OUTPUT_FILE_ERROR 1005
#define INPUT_FILE_ERROR 1006
#define RESOURCE_ERROR 1007 #define MAX_FILES 256
#define SIGNATURE "!LYME_SFX!" typedef void (* funcPtr)(void *, void*); class CSelfExtractor
{
public:
CSelfExtractor();
virtual ~CSelfExtractor(); //Creation //Extraction
int Extract(int index, QString Dir,QString &appName);
int ExtractAll(QString dir, funcPtr function = NULL, void * userData = NULL);//
int ReadTOC(QString Filename); //Data retrieval
inline int GetFileSize(int index){return m_InfoArray[index].GetFileSize();}
inline int GetFileCount(){return m_nFiles;}
CSEFileInfo GetItem(int item){return m_InfoArray[item];} //Helpers
void Reset(); protected:
//Helpers
QString GetThisFileName();//
QString EnsureTrailingBackSlash(QString &string); int CreateArchive(QFile* fp, funcPtr function, void* userData); int ExtractOne(QFile* fp, int index, QString Dir); //Data
QString m_strWorkingDir;
CSEFileInfo m_InfoArray[MAX_FILES]; //Array of file information
int m_nFiles; //No of files in archive
int m_nTOCSize; //Size of Table of contents
}; #endif // !defined(AFX_SELFEXTRACTOR_H__849C04B2_4988_11D3_A8BC_0050043A01C0__INCLUDED_)
/*************************************************************************************
*
* File: SEFileInfo.h
* Version: 1.0
*
* Author: James Spibey
* Date: 04/08/1999
* E-mail: spib@bigfoot.com
*
* Specification of the CSEFileInfo class
*
* You are free to use, distribute or modify this code
* as long as this header is not removed or modified.
*
* This class holds data regarding each file in an archive
*
*************************************************************************************/ #if !defined(AFX_SEFILEINFO_H__5C3D775E_497B_11D3_A8BC_0050043A01C0__INCLUDED_)
#define AFX_SEFILEINFO_H__5C3D775E_497B_11D3_A8BC_0050043A01C0__INCLUDED_ #if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "QString"
#include "QFile"
class CSEFileInfo
{
public:
CSEFileInfo();
~CSEFileInfo(); void SetFilename(QString file){m_strFilename = file;}
void SetSize(int size){m_nSize = size;}
void SetOffset(int offset){m_nOffset = offset;} QString GetPathname(){return m_strPathname;}
QString GetFilename(){return m_strFilename;}
int GetFileSize(){return m_nSize;}
int GetFileOffset(){return m_nOffset;} void Reset(); protected:
QString m_strFilename; //Name of file
QString m_strPathname; //Path to file to add
int m_nSize; //Size of file
int m_nOffset; //Start Offset
}; #endif // !defined(AFX_SEFILEINFO_H__5C3D775E_497B_11D3_A8BC_0050043A01C0__INCLUDED_)

CZipImplement zipimp;
  BOOL flag = zipimp.Zip_UnPackFiles(SourcePath,installPath,AddCallBack,(void*)this);

void QMyWidgetSeven::AddCallBack(void * CallbackdData,void * userData)
{
ProGress *pData = static_cast<ProGress *>(CallbackdData);
QMyWidgetSeven *pdlg = static_cast<QMyWidgetSeven*>(userData);
int num = (pData->current+)*/(pData->total);
pdlg->progressBar->setValue(num); }

安装包设计-------安装(QT)---------知识总结的更多相关文章

  1. NSIS使用教程(安装包制作安装文件教程,如何封装打包文件) 中文版

    nsis中文版(Nullsoft Scriptable Install System)是一个专业的开源的可以用来封闭Windows程序的实用工具,是一个开源的 Windows 系统下安装程序制作程序. ...

  2. linux rpm问题:怎样查看rpm安装包的安装路径

      x rpm问题:怎样查看rpm安装包的安装路径 2010-07-12 21:19:15 标签:rpm linux 路径 休闲 职场 rpm -qpl xxxxxx.rpm 1.如何安装rpm软件包 ...

  3. Pip,pywin32,whl文件下载网址,mayavi安装包,PyQt5安装,PyMuPDF安装等注意事项

    (1)pip安装的包不一定是用户想要的位置,此时可以用 -t 选项来指定位置. 例如目标位置是/usr/local/lib/python2.7/site-packages/ ,要安装xlrd 这个包 ...

  4. .net安装包自动安装Mysql数据库

    原文:.net安装包自动安装Mysql数据库 在制作.Net安装包的时候,如果项目有用到数据库,怎么能够把数据库打包安装呢?网上已经有很多自动安装Sql Server数据库的例子,但是自动安装mysq ...

  5. linux下各安装包的安装方法

    <转>linux下各安装包的安装方法   一.rpm包安装方式步骤: 1.找到相应的软件包,比如soft.version.rpm,下载到本机某个目录: 2.打开一个终端,su -成root ...

  6. visual studio 2017 installer 安装包的安装必备组件设置

    visual studio installer 2017  安装包的安装必备组件设置,默认设置只有net frmwork 4.6.1,如下图 这个时候如果打包安装,那么打出来的包一定需要先安装4.6. ...

  7. 【转载】win10应用商店独立安装包(一键安装) 2020最新版官方正式版

    win10应用商店独立安装包(一键安装) 2020最新版官方正式版 Win10 LTSB 2016 / LTSC 2019系统,没有应用商店 需要下载应用商店安装包 蓝盘:https://www.la ...

  8. 获取 windows 商店内的 aapx 安装包 并 安装(旁加载)

    这是一篇教程,写在 win10 版<量子破碎>发售近期. 主要原因:windows 商城的应用下载实在难以忍受...... #######2016-4-9更新####### 4-6号通过旁 ...

  9. HOWTO - Basic MSI安装包在安装运行过程中如何获取完整源路径

    有朋友问到如何在一个Windows Installer安装包中获取安装包源路径,就是在安装包运行过程中动态获取*.msi所在完整路径. 这个问题分两类,如果我们的安装包只是一个*.msi安装文件,那么 ...

随机推荐

  1. node 标准输入流和输出流

    使用node 在 CMD 控制台获取输入的指令: 方式一: process.stdin.resume(); process.stdin.setEncoding('utf-8'); process.st ...

  2. 103 保序回归 isotonic regression

    103 保序回归 isotonic regression 2016-03-30 11:25:27 bea_tree 阅读数 6895   版权声明:本文为博主原创文章,遵循CC 4.0 BY-SA版权 ...

  3. PHP trait介绍

    Trait 自 PHP 5.4.0 起,PHP 实现了一种代码复用的方法,称为 trait. Trait 是为类似 PHP 的单继承语言而准备的一种代码复用机制.Trait 为了减少单继承语言的限制, ...

  4. 使用paypal-php-sdk开发php国际支付

    参考:https://github.com/paypal/PayPal-PHP-SDK/wiki https://blog.csdn.net/markely/article/details/79044 ...

  5. (十三)SpringBoot之Spring-Data-Jpa(二)CRUD实现以及添加自定义方法

    一.jpa中添加自定义方法 http://blog.csdn.net/qq_23660243/article/details/43194465 二.案例 1.3 引入jpa依赖 <depende ...

  6. Spring Boot 多个域名指向同一IP

    一.需求:直接通过域名访问首页(同一应用下,多个首页,包括PC端.手机端首页) 方法:采用多个域名绑定同一IP下同一应用,不同域名对应不同产品(PC.手机端)的方法,在后台通过拦截器判断 reques ...

  7. AI 公司与比赛

    科大讯飞 网站:https://www.iflytek.com/ 比赛:http://challenge.xfyun.cn/2019/ AI 大学:https://www.aidaxue.com/ 华 ...

  8. form表单详解

    form表单 form是一个复杂的系统标签,其内部又可包含很多的一些输入标签 例如input 输入文本标签  checkbox 多选标签等等 form表单有几个属性我们需要注意一下 1:action属 ...

  9. 深度学习_1_Tensorflow_2_数据_文件读取

    tensorflow 数据读取 队列和线程 文件读取, 图片处理 问题:大文件读取,读取速度, 在tensorflow中真正的多线程 子线程读取数据 向队列放数据(如每次100个),主线程学习,不用全 ...

  10. NORDIC ble RSSI

    static void ble_evt_handler(ble_evt_t const * p_ble_evt, void * p_context) { ret_code_t err_code; sw ...