摘要: references:http://stackoverflow.com/questions/21047399/cmake-set-environment-variables-from-a-scripthttp://stackoverflow.com/questions/7584602/how-to-set-path-environment-variable-in-cmake-script 阅读全文
posted @ 2014-02-26 15:46 foo__hack 阅读(9702) 评论(0) 推荐(0) 编辑
摘要: References:http://stackoverflow.com/questions/6185982/accessing-command-line-arguments-in-nsishttp://stackoverflow.com/questions/3256140/how-to-read-a-command-line-parameter-given-to-an-uninstallerhttp://nsis.sourceforge.net/Get_command_line_parameter_by_name 阅读全文
posted @ 2014-02-26 15:38 foo__hack 阅读(1582) 评论(0) 推荐(0) 编辑
摘要: 就在VS2010Command Prompt 用vcvarsall.bat x64重新设置环境变量的时候,出现了标题中的错误。原因就在参考链接中References:http://stackoverflow.com/questions/3461275/vs2010-command-prompt-gives-error-cannot-determine-the-location-of-the-vs-commhttp://schrievkrom.wordpress.com/2011/01/25/error-cannot-determine-the-location-of-the-vs-common 阅读全文
posted @ 2014-02-26 10:53 foo__hack 阅读(965) 评论(0) 推荐(0) 编辑
摘要: 问题:老驱动(WDF),能在windows 7下安装并工作,但是不能在windows 8下安装。先了解下windows 8驱动的新东西吧:New for windows 8http://msdn.microsoft.com/en-US/library/windows/hardware/hh451220(v=VS.85).aspx安装出错图片:现在初步研究错误图片是文件哈希值不正确,由此推测应该是驱动包签名的问题:http://msdn.microsoft.com/en-us/library/windows/hardware/ff544865(v=vs.85).aspxhttp://msdn.m 阅读全文
posted @ 2014-02-26 09:16 foo__hack 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 需要用到命令行参数。好像是/SILENT 或/VERYSILENT如果是微软VS的运行时库的安装可以传递/q这个optionReferences:http://www.jrsoftware.org/ishelp/index.php?topic=setupcmdlinehttp://stackoverflow.com/questions/1996166/how-to-properly-install-ms-vc-9-runtimehttp://blogs.msdn.com/b/astebner/archive/2009/03/26/9513328.aspx 阅读全文
posted @ 2014-02-25 16:14 foo__hack 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 手头有个项目需要修改PATH变量需要!include "EnvVarUpdate.nsh"以下是NSIS脚本代码; Script generated by the HM NIS Edit Script Wizard. !include "StrFunc.nsh"; HM NIS Edit Wizard helper defines!define PRODUCT_NAME "Setup_Wintech"!define PRODUCT_VERSION "2.0"!define PRODUCT_PUBLISHER &qu 阅读全文
posted @ 2014-02-25 15:46 foo__hack 阅读(5717) 评论(0) 推荐(0) 编辑
摘要: 想共同维护一个NSIS脚本文件的,不想搞两个版本的脚本文件了。开始想到了!if语句,没试过,不知道行不行得通。后来google了一下。可以用两个头文件搞定。参照下面链接Reference:http://stackoverflow.com/questions/11126629/use-one-nsis-installer-to-install-32-bit-binaries-on-32-bit-os-and-64-bit-binarihttp://stackoverflow.com/questions/21822044/merge-32bit-and-64bit-installer-into-o 阅读全文
posted @ 2014-02-24 08:54 foo__hack 阅读(1250) 评论(0) 推荐(0) 编辑
摘要: 原来不加/r参数,NSIS编译器就会不认识文件夹啊。File /r [dir]Reference:http://stackoverflow.com/questions/7973242/nsis-how-to-include-all-folders-from-source-to-installer 阅读全文
posted @ 2014-02-24 08:24 foo__hack 阅读(1625) 评论(0) 推荐(0) 编辑
摘要: 一直没有时间学习python,都说python语法简洁优美。但是我看它的语法还是不爽啊,没C/C++好阅读。但是C/C++又必须了解底层的计算机模型。着实会门槛高一些。特别是C++,对于我来说简直就是怪物啊。References:http://www.quora.com/Python-programming-language-1/How-can-I-learn-to-program-in-Pythonhttp://www.quora.com/Python-programming-language-1/What-are-the-best-resources-to-start-learning-P 阅读全文
posted @ 2014-02-21 10:27 foo__hack 阅读(214) 评论(0) 推荐(0) 编辑
摘要: @echo offecho 当前盘符:%~d0echo 当前盘符和路径:%~dp0echo 当前批处理全路径:%~f0echo 当前盘符和路径的短文件名格式:%~sdp0echo 当前CMD默认目录:%cd%echo 目录中有空格也可以加入""避免找不到路径echo 当前盘符:"%~d0"echo ... 阅读全文
posted @ 2014-02-20 17:49 foo__hack 阅读(328) 评论(0) 推荐(0) 编辑