修复inno setup中脚本的版本修改失败问题。
This commit is contained in:
@@ -30,9 +30,7 @@ static const UINT DEFAULT_MINOR_WHEN_NO_TAG_FOR_SETUP = 0;
|
|||||||
/// 在字符串内容中查找首个包含 strToken 的整行,
|
/// 在字符串内容中查找首个包含 strToken 的整行,
|
||||||
/// 用 strNewLine 替换该行(不含行尾换行符)。
|
/// 用 strNewLine 替换该行(不含行尾换行符)。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
static BOOL ReplaceLineByToken(std::string& strContent,
|
static BOOL ReplaceLineByToken(std::string& strContent, const std::string& strToken, const std::string& strNewLine)
|
||||||
const std::string& strToken,
|
|
||||||
const std::string& strNewLine)
|
|
||||||
{
|
{
|
||||||
std::string::size_type nPos = strContent.find(strToken);
|
std::string::size_type nPos = strContent.find(strToken);
|
||||||
if (nPos == std::string::npos)
|
if (nPos == std::string::npos)
|
||||||
|
|||||||
Reference in New Issue
Block a user