锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久亚洲日韩精品一区二区三区,久久久黄片,久久久91人妻无码精品蜜桃HDhttp://www.shnenglu.com/wanghaiguang/category/19358.html涓嶈嫻垂浣犵殑鐢熷懡錛屽湪浣犱竴瀹氫細鍚庢倲鐨勫湴鏂逛笂銆? 閫嗘按琛岃垷錛屼笉榪涘垯閫zh-cnTue, 03 Sep 2013 12:50:41 GMTTue, 03 Sep 2013 12:50:41 GMT60NSIS娣誨姞瀹夎瀹屾垚鍚庢彁紺烘槸鍚﹁繍琛岀▼搴?/title><link>http://www.shnenglu.com/wanghaiguang/archive/2013/09/02/202947.html</link><dc:creator>鐜嬫搗鍏?/dc:creator><author>鐜嬫搗鍏?/author><pubDate>Mon, 02 Sep 2013 06:39:00 GMT</pubDate><guid>http://www.shnenglu.com/wanghaiguang/archive/2013/09/02/202947.html</guid><wfw:comment>http://www.shnenglu.com/wanghaiguang/comments/202947.html</wfw:comment><comments>http://www.shnenglu.com/wanghaiguang/archive/2013/09/02/202947.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/wanghaiguang/comments/commentRss/202947.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/wanghaiguang/services/trackbacks/202947.html</trackback:ping><description><![CDATA[<br /><p style="margin-top:3.75pt;margin-right:0cm;margin-bottom:3.75pt;margin-left: 0cm;line-height:16.5pt;background:white;"><span style="font-size:10.5pt;color:#111111">鍙互浣跨敤</span><span style="font-size:10.5pt; font-family:"Verdana","sans-serif";color:#111111">MUI</span><span style="font-size:10.5pt;color:#111111">鍑芥暟閲岄潰鐨?/span></p> <p style="margin: 3.75pt 0cm; line-height: 16.5pt; background-color: white; background-position: initial initial; background-repeat: initial initial;"><strong style="font-style: inherit;"><span style="font-size: 10.5pt; font-family: Verdana, sans-serif; color: #111111;">MUI_FINISHPAGE_RUN_FUNCTION</span></strong> <span style="font-size:10.5pt;font-family:"Verdana","sans-serif"; color:#111111">function </span></p> <p style="margin: 3.75pt 0cm; line-height: 16.5pt; background-color: white; background-position: initial initial; background-repeat: initial initial;"><span style="font-size:10.5pt;color:#111111">瀹氫箟涓涓?/span><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"; color:#111111">function</span><span style="font-size:10.5pt;color:#111111">錛屽嚱鏁伴噷闈㈡墽琛?/span> <span style="font-size:10.5pt;color:#111111">瀹夎瀹屾垚鍚庣殑</span><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"; color:#111111">exe<br /></span><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->;瀹氫箟瀹夎鐣岄潰<br />!define MUI_FINISHPAGE_RUN<br />;瀹夎鍑芥暟瀹氫箟<br />!define MUI_FINISHPAGE_RUN_FUNCTION "LaunchLink" <br />!insertmacro MUI_PAGE_FINISH<br /><br />;function瑕佸啓瀛梥ection涔嬪悗<br />Function LaunchLink<br />    ExecShell "" "$INSTDIR\*.exe"<br />FunctionEnd</div></p><img src ="http://www.shnenglu.com/wanghaiguang/aggbug/202947.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/wanghaiguang/" target="_blank">鐜嬫搗鍏?/a> 2013-09-02 14:39 <a href="http://www.shnenglu.com/wanghaiguang/archive/2013/09/02/202947.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>NSIS鎻掍歡澶у叏http://www.shnenglu.com/wanghaiguang/archive/2013/01/06/197018.html鐜嬫搗鍏?/dc:creator>鐜嬫搗鍏?/author>Sun, 06 Jan 2013 06:33:00 GMThttp://www.shnenglu.com/wanghaiguang/archive/2013/01/06/197018.htmlhttp://www.shnenglu.com/wanghaiguang/comments/197018.htmlhttp://www.shnenglu.com/wanghaiguang/archive/2013/01/06/197018.html#Feedback0http://www.shnenglu.com/wanghaiguang/comments/commentRss/197018.htmlhttp://www.shnenglu.com/wanghaiguang/services/trackbacks/197018.html闄勪歡鏄疦SIS鐨勪竴浜涙彃浠訛紝甯屾湜瀵瑰ぇ瀹舵湁鎵甯姪銆?/span>
NSIS鎻掍歡涓嬭澆


]]>
NSIS緇撴潫SYSTEM鏉冮檺榪涚▼http://www.shnenglu.com/wanghaiguang/archive/2012/12/27/196729.html鐜嬫搗鍏?/dc:creator>鐜嬫搗鍏?/author>Thu, 27 Dec 2012 07:23:00 GMThttp://www.shnenglu.com/wanghaiguang/archive/2012/12/27/196729.htmlhttp://www.shnenglu.com/wanghaiguang/comments/196729.htmlhttp://www.shnenglu.com/wanghaiguang/archive/2012/12/27/196729.html#Feedback0http://www.shnenglu.com/wanghaiguang/comments/commentRss/196729.htmlhttp://www.shnenglu.com/wanghaiguang/services/trackbacks/196729.htmlNSIS鏈夊緢澶氭彃浠跺彲浠ョ粨鏉熺郴緇熻繘紼嬶紝渚嬪錛歅rocesses.dll錛宲rocesswork.dll錛孠illProcDLL.dll
浠栦滑鐨勮皟鐢ㄦ牸寮忓涓嬶細Processes::KillProcess "榪涚▼鍚?
                            
                            Push "QQ.exe
                            Processwork::KillProcess
                         
                            KillProcDLL::KillProc "榪涚▼鍚?

濡傛灉鏄疭YSTEM榪涚▼錛屽垯鐢‥xecCmd鎻掍歡錛岀敤娉曞涓嬶細
                            ExecCmd::exec '"taskkill" /F /IM 榪涚▼鍚?/T'

]]>
[NSIS鎻掍歡] ProcFunc.nsh - NSIS 榪涚▼鍑芥暟澶存枃浠?/title><link>http://www.shnenglu.com/wanghaiguang/archive/2012/10/18/193469.html</link><dc:creator>鐜嬫搗鍏?/dc:creator><author>鐜嬫搗鍏?/author><pubDate>Thu, 18 Oct 2012 06:09:00 GMT</pubDate><guid>http://www.shnenglu.com/wanghaiguang/archive/2012/10/18/193469.html</guid><wfw:comment>http://www.shnenglu.com/wanghaiguang/comments/193469.html</wfw:comment><comments>http://www.shnenglu.com/wanghaiguang/archive/2012/10/18/193469.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/wanghaiguang/comments/commentRss/193469.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/wanghaiguang/services/trackbacks/193469.html</trackback:ping><description><![CDATA[<span style="font-family: Verdana; font-size: 12pt">鏉ユ簮錛?/span><br /><span style="font-family: Verdana; font-size: 12pt">http://portableapps.com/node/12561</span><br /><span style="font-family: Verdana; font-size: 12pt">涓嬭澆</span><br /><span style="font-family: Verdana; font-size: 12pt">http://zer0dev.com/dld/download.php?id=27</span><br /><br /><span style="font-family: Verdana; font-size: 12pt">澶存枃浠朵嬌鐢細</span><br /><span style="font-family: Verdana; font-size: 12pt">1. !include "ProcFunc.nsh"</span><br /><span style="font-family: Verdana; font-size: 12pt">2. 鍙嬌鐢ㄨ寖鍥達細$var涓鴻繑鍥炲?/span><br /><span style="font-family: Verdana; font-size: 12pt">[Section|Function]</span><br /><span style="font-family: Verdana; font-size: 12pt">${ProcFunction} "鍙傛暟1" "鍙傛暟2" "..." $var</span><br /><span style="font-family: Verdana; font-size: 12pt">[SectionEnd|FunctionEnd]</span><br /><br /><span style="font-family: Verdana; font-size: 12pt">${ProcessExists} "[process]"</span><br /><span style="font-family: Verdana; font-size: 12pt">    "[process]"            ; Name or PID</span><br /><br /><span style="font-family: Verdana; font-size: 12pt">    Use with a LogicLib conditional command like If or Unless.</span><br /><span style="font-family: Verdana; font-size: 12pt">    Evaluates to true if the process exists or false if it does not or</span><br /><span style="font-family: Verdana; font-size: 12pt">    the CreateToolhelp32Snapshot fails.</span><br /><br /><span style="font-family: Verdana; font-size: 12pt">${GetProcessPID} "[process]" $var</span><br /><span style="font-family: Verdana; font-size: 12pt">    "[process]"            ; Name or PID</span><br />    <br /><span style="font-family: Verdana; font-size: 12pt">    $var(output)          ; -2 - CreateToolhelp32Snapshot failed</span><br /><span style="font-family: Verdana; font-size: 12pt">                               ;  0 - process does not exist</span><br /><span style="font-family: Verdana; font-size: 12pt">                               ; >0 - PID</span><br /><br /><span style="font-family: Verdana; font-size: 12pt">${GetProcessPath} "[process]" $var</span><br /><span style="font-family: Verdana; font-size: 12pt">    "[process]"            ; Name or PID</span><br />    <br /><span style="font-family: Verdana; font-size: 12pt">    $var(output)          ; -2 - CreateToolhelp32Snapshot failed</span><br /><span style="font-family: Verdana; font-size: 12pt">                               ; -1 - OpenProcess failed</span><br /><span style="font-family: Verdana; font-size: 12pt">                               ;  0 - process does not exist</span><br /><span style="font-family: Verdana; font-size: 12pt">                               ; Or path to process</span><br /><br /><span style="font-family: Verdana; font-size: 12pt">${GetProcessParent} "[process]" $var</span><br /><span style="font-family: Verdana; font-size: 12pt">    "[process]"            ; Name or PID</span><br /><br /><span style="font-family: Verdana; font-size: 12pt">    $var(output)          ; -2 - CreateToolhelp32Snapshot failed</span><br /><span style="font-family: Verdana; font-size: 12pt">                               ;  0 - process does not exist</span><br /><span style="font-family: Verdana; font-size: 12pt">                               ; Or PPID</span><br /><br /><span style="font-family: Verdana; font-size: 12pt">${GetProcessName} "[PID]" $var</span><br /><span style="font-family: Verdana; font-size: 12pt">    "[PID]"                 ; PID</span><br /><br /><span style="font-family: Verdana; font-size: 12pt">    $var(output)         ; -2 - CreateToolhelp32Snapshot failed</span><br /><span style="font-family: Verdana; font-size: 12pt">                              ;  0 - process does not exist</span><br /><span style="font-family: Verdana; font-size: 12pt">                              ; Or process name</span><br /><br /><span style="font-family: Verdana; font-size: 12pt">${EnumProcessPaths} "Function" $var</span><br /><span style="font-family: Verdana; font-size: 12pt">    "Function"            ; Callback function</span><br /><span style="font-family: Verdana; font-size: 12pt">    $var(output)         ; -2 - EnumProcesses failed</span><br /><span style="font-family: Verdana; font-size: 12pt">                              ;  1 - success</span><br /><br /><span style="font-family: Verdana; font-size: 12pt">    Function "Function"</span><br /><span style="font-family: Verdana; font-size: 12pt">        Pop $var1        ; matching path string</span><br /><span style="font-family: Verdana; font-size: 12pt">        Pop $var2        ; matching process PID</span><br /><span style="font-family: Verdana; font-size: 12pt">        ...user commands</span><br /><span style="font-family: Verdana; font-size: 12pt">        Push [1/0]       ; must return 1 on the stack to continue</span><br /><span style="font-family: Verdana; font-size: 12pt">                             ; must return some value or corrupt the stack</span><br /><span style="font-family: Verdana; font-size: 12pt">                             ; DO NOT save data in $0-$9</span><br /><span style="font-family: Verdana; font-size: 12pt">    FunctionEnd</span><br /><br /><span style="font-family: Verdana; font-size: 12pt">${ProcessWait} "[process]" "[timeout]" $var</span><br /><span style="font-family: Verdana; font-size: 12pt">    "[process]"          ; Name</span><br /><span style="font-family: Verdana; font-size: 12pt">    "[timeout]"          ; -1 - do not timeout</span><br /><span style="font-family: Verdana; font-size: 12pt">                             ; >0 - timeout in milliseconds</span><br /><br /><span style="font-family: Verdana; font-size: 12pt">    $var(output)        ; -2 - CreateToolhelp32Snapshot failed</span><br /><span style="font-family: Verdana; font-size: 12pt">                             ; -1 - operation timed out</span><br /><span style="font-family: Verdana; font-size: 12pt">                             ; Or PID</span><br /><br /><span style="font-family: Verdana; font-size: 12pt">${ProcessWait2} "[process]" "[timeout]" $var</span><br /><span style="font-family: Verdana; font-size: 12pt">    "[process]"          ; Name</span><br /><span style="font-family: Verdana; font-size: 12pt">    "[timeout]"          ; -1 - do not timeout</span><br /><span style="font-family: Verdana; font-size: 12pt">                             ; >0 - timeout in milliseconds</span><br /><br /><span style="font-family: Verdana; font-size: 12pt">    $var(output)        ; -1 - operation timed out</span><br /><span style="font-family: Verdana; font-size: 12pt">                             ; Or PID</span><br /><br /><span style="font-family: Verdana; font-size: 12pt">${ProcessWaitClose} "[process]" "[timeout]" $var</span><br /><span style="font-family: Verdana; font-size: 12pt">    "[process]"          ; Name</span><br /><span style="font-family: Verdana; font-size: 12pt">    "[timeout]"          ; -1 - do not timeout</span><br /><span style="font-family: Verdana; font-size: 12pt">                             ; >0 - timeout in milliseconds</span><br /><br /><span style="font-family: Verdana; font-size: 12pt">    $var(output)        ; -1 - operation timed out</span><br /><span style="font-family: Verdana; font-size: 12pt">                             ;  0 - process does not exist</span><br /><span style="font-family: Verdana; font-size: 12pt">                             ; Or PID of ended process</span><br /><br /><span style="font-family: Verdana; font-size: 12pt">${CloseProcess} "[process]" $var</span><br /><span style="font-family: Verdana; font-size: 12pt">    "[process]"          ; Name or PID</span><br /><br /><span style="font-family: Verdana; font-size: 12pt">    $var(output)        ; 0 - process does not exist</span><br /><span style="font-family: Verdana; font-size: 12pt">                             ; Or PID of ended process</span><br /><br /><span style="font-family: Verdana; font-size: 12pt">${TerminateProcess} "[process]" $var</span><br /><span style="font-family: Verdana; font-size: 12pt">    "[process]"          ; Name or PID</span><br /><br /><span style="font-family: Verdana; font-size: 12pt">    $var(output)        ; -1 - operation failed</span><br /><span style="font-family: Verdana; font-size: 12pt">                             ;  0 - process does not exist</span><br /><span style="font-family: Verdana; font-size: 12pt">                             ; Or PID of ended process</span><br /><br /><span style="font-family: Verdana; font-size: 12pt">${Execute} "[command]" "[working_dir]" $var</span><br /><span style="font-family: Verdana; font-size: 12pt">    "[command]"        ; '"X:\path\to\prog.exe" arg1 arg2 "arg3 with space"'</span><br /><span style="font-family: Verdana; font-size: 12pt">    "[working_dir]"     ; Working directory ("X:\path\to\dir") or nothing ("")</span><br /><br /><span style="font-family: Verdana; font-size: 12pt">    $var(output)        ; 0 - failed to create process</span><br /><span style="font-family: Verdana; font-size: 12pt">                             ; Or PID</span><br /><span style="font-family: Verdana; font-size: 12pt">*/</span><br /><br /><span style="font-family: Verdana; font-size: 12pt">鏈枃杞嚜錛?/span><a ><span style="font-family: Verdana; font-size: 12pt">http://www.dreams8.com/forum.php?mod=viewthread&tid=17067&fromuid=1</span></a><img src ="http://www.shnenglu.com/wanghaiguang/aggbug/193469.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/wanghaiguang/" target="_blank">鐜嬫搗鍏?/a> 2012-10-18 14:09 <a href="http://www.shnenglu.com/wanghaiguang/archive/2012/10/18/193469.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>NSIS鍒涘緩浜掓枼錛岄鍑洪噸澶嶈繍琛岀殑紼嬪簭http://www.shnenglu.com/wanghaiguang/archive/2012/10/18/193467.html鐜嬫搗鍏?/dc:creator>鐜嬫搗鍏?/author>Thu, 18 Oct 2012 06:02:00 GMThttp://www.shnenglu.com/wanghaiguang/archive/2012/10/18/193467.htmlhttp://www.shnenglu.com/wanghaiguang/comments/193467.htmlhttp://www.shnenglu.com/wanghaiguang/archive/2012/10/18/193467.html#Feedback0http://www.shnenglu.com/wanghaiguang/comments/commentRss/193467.htmlhttp://www.shnenglu.com/wanghaiguang/services/trackbacks/193467.html浠ヤ笅涓虹ず渚嬭剼鏈細
1 !define MyMutex_Update     "MyMutex_Update"
2 
3 
4 Section
5     System::Call 'kernel32::CreateMutexA(i 0, i 0, t "${MyMutex_Update}") i .r1 ?e'
6     Pop $R0
7     StrCmp $R0 0 +2
8     Quit
9 SectionEnd


鍏朵粬鏂囩珷錛?a >http://blog.csdn.net/shemny/article/details/7575038

]]>
NSIS 闈欓粯瀹夎浼犻掓洿鏀歸粯璁よ礬寰勫弬鏁?/title><link>http://www.shnenglu.com/wanghaiguang/archive/2012/05/25/176109.html</link><dc:creator>鐜嬫搗鍏?/dc:creator><author>鐜嬫搗鍏?/author><pubDate>Fri, 25 May 2012 01:30:00 GMT</pubDate><guid>http://www.shnenglu.com/wanghaiguang/archive/2012/05/25/176109.html</guid><wfw:comment>http://www.shnenglu.com/wanghaiguang/comments/176109.html</wfw:comment><comments>http://www.shnenglu.com/wanghaiguang/archive/2012/05/25/176109.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/wanghaiguang/comments/commentRss/176109.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/wanghaiguang/services/trackbacks/176109.html</trackback:ping><description><![CDATA[<h2>瀹夎紼嬪簭鐨勪嬌鐢?/h2> <p>鐢熸垚鐨勫畨瑁呯▼搴忓拰鍗歌澆紼嬪簭鎺ュ彈涓浜涘懡浠よ鐨勫弬鏁般傝繖浜涘弬鏁板彲浠ヨ鐢ㄦ埛鍦ㄥ畨瑁呰繃紼嬩腑瀵瑰畨瑁呯▼搴忎綔閮ㄥ垎鎺у埗銆?/p> <h3>鍏叡閫夐」</h3> <ul><li>/NCRC 紱佹 CRC 媯嫻嬶紝闄ら潪鍦ㄨ剼鏈噷寮哄埗浣跨敤浜?<a href="mk:@MSITStore:C:\Program%20Files\NSIS\NSIS.chm::/Section4.8.html#4.8.1.12"><code>CRCCheck</code></a><code> force</code> 銆?/li><li>/S 闈欓粯榪愯瀹夎紼嬪簭鎴栧嵏杞界▼搴忋傛洿澶氫俊鎭鍙傜湅 <a href="mk:@MSITStore:C:\Program%20Files\NSIS\NSIS.chm::/Section4.12.html#4.12">section 4.12</a> 銆?/li><li>/D 鎸囧畾榛樿鐨勫畨瑁呯洰褰?(<a href="mk:@MSITStore:C:\Program%20Files\NSIS\NSIS.chm::/Section4.2.html#4.2.2">$INSTDIR</a>), 鍙互瓚婅繃 <a href="mk:@MSITStore:C:\Program%20Files\NSIS\NSIS.chm::/Section4.8.html#4.8.1.21">InstallDir</a> 鍜?<a href="mk:@MSITStore:C:\Program%20Files\NSIS\NSIS.chm::/Section4.8.html#4.8.1.22">InstallDirRegKey</a> 銆傝繖涓弬鏁板繀欏繪槸鏈鍚庝竴涓弬鏁板茍涓斾笉鑳藉甫浠諱綍寮曞彿鍗充嬌璺緞甯︽湁絀烘牸銆備粎鏀寔緇濆璺緞銆?/li></ul> <h3>鍗歌澆紼嬪簭鐗規畩閫夐」</h3> <ul><li>_?= 鎸囧畾 $INSTDIR銆傝繖涔熶細闃繪鍗歌澆紼嬪簭鎶婂畠鑷繁澶嶅埗鍒頒復鏃舵枃浠跺す鍐嶈繍琛屻傝繖灝嗗彲浠ヤ嬌鐢?<a href="mk:@MSITStore:C:\Program%20Files\NSIS\NSIS.chm::/Section4.9.html#4.9.1.4"><font style="background-color: #3399ff" color="#ffffff">ExecWait</font></a> 鏉ヨ繍琛屽嵏杞界▼搴忓茍絳夊緟瀹冨畬鎴愩傝繖涓弬鏁板繀欏繪槸鏈鍚庝竴涓弬鏁板茍涓斾笉鑳藉甫浠諱綍寮曞彿鍗充嬌璺緞甯︽湁絀烘牸銆?/li></ul> <h3>渚嬪瓙</h3><pre><div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008080">1</span> <span style="color: #000000">installer.exe </span><span style="color: #000000">/</span><span style="color: #000000">NCRC<br /></span><span style="color: #008080">2</span> <span style="color: #000000">installer.exe </span><span style="color: #000000">/</span><span style="color: #000000">S<br /></span><span style="color: #008080">3</span> <span style="color: #000000">installer.exe </span><span style="color: #000000">/</span><span style="color: #000000">D</span><span style="color: #000000">=</span><span style="color: #000000">C:\Program Files\NSIS<br /></span><span style="color: #008080">4</span> <span style="color: #000000">installer.exe </span><span style="color: #000000">/</span><span style="color: #000000">NCRC </span><span style="color: #000000">/</span><span style="color: #000000">S </span><span style="color: #000000">/</span><span style="color: #000000">D</span><span style="color: #000000">=</span><span style="color: #000000">C:\Program Files\NSIS<br /></span><span style="color: #008080">5</span> <span style="color: #000000">uninstaller.exe </span><span style="color: #000000">/</span><span style="color: #000000">S _</span><span style="color: #000000">?=</span><span style="color: #000000">C:\Program Files\NSIS</span></div></pre><pre># 闈欓粯鍗歌澆鏃х増鏈茍絳夊緟瀹冨畬鎴愬悗鎵嶇戶緇?/pre><pre><div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008080">1</span> <span style="color: #000000">ExecWait </span><span style="color: #000000">'</span><span style="color: #000000">"$INSTDIR\uninstaller.exe" /S _?=$INSTDIR</span><span style="color: #000000">'</span></div><p><br />浠ヤ笂淇℃伅鏉ヨ嚜NSIS甯姪銆備笅闈負瀹炰緥浠g爜錛?/p></pre> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008080"> 1</span> <span style="color: #000000">!</span><span style="color: #000000">define APPLOCALPATH </span><span style="color: #000000">"</span><span style="color: #000000">Test.exe</span><span style="color: #000000">"</span><span style="color: #000000"><br /></span><span style="color: #008080"> 2</span> <span style="color: #000000"></span><span style="color: #000000">!</span><span style="color: #000000">define APPPATH </span><span style="color: #000000">"</span><span style="color: #000000">$TEMP\${APPLOCALPATH}</span><span style="color: #000000">"</span><span style="color: #000000"><br /></span><span style="color: #008080"> 3</span> <span style="color: #000000"><br /></span><span style="color: #008080"> 4</span> <span style="color: #000000">OutFile </span><span style="color: #000000">"</span><span style="color: #000000">Test ${__DATE__}.exe</span><span style="color: #000000">"</span><span style="color: #000000"><br /></span><span style="color: #008080"> 5</span> <span style="color: #000000"><br /></span><span style="color: #008080"> 6</span> <span style="color: #000000">Section </span><span style="color: #000000">"</span><span style="color: #000000">Silent MakeNSIS</span><span style="color: #000000">"</span><span style="color: #000000"><br /></span><span style="color: #008080"> 7</span> <span style="color: #000000">        SetOutPath </span><span style="color: #000000">"</span><span style="color: #000000">$TEMP</span><span style="color: #000000">"</span><span style="color: #000000"><br /></span><span style="color: #008080"> 8</span> <span style="color: #000000">        File </span><span style="color: #000000">/</span><span style="color: #000000">r  </span><span style="color: #000000">"</span><span style="color: #000000">install\*.*</span><span style="color: #000000">"</span><span style="color: #000000"><br /></span><span style="color: #008080"> 9</span> <span style="color: #000000">        ExecWait </span><span style="color: #000000">'</span><span style="color: #000000">$TEMP\${APPLOCALPATH} /S /D=F:\Program Files\NSIS</span><span style="color: #000000">'</span><span style="color: #000000"><br /></span><span style="color: #008080">10</span> <span style="color: #000000">        Delete </span><span style="color: #000000">'</span><span style="color: #000000">$TEMP\${APPLOCALPATH}</span><span style="color: #000000">'</span><span style="color: #000000"><br /></span><span style="color: #008080">11</span> <span style="color: #000000">SectionEnd</span></div> <p><br /> </p> <img src ="http://www.shnenglu.com/wanghaiguang/aggbug/176109.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/wanghaiguang/" target="_blank">鐜嬫搗鍏?/a> 2012-05-25 09:30 <a href="http://www.shnenglu.com/wanghaiguang/archive/2012/05/25/176109.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>NSIS 鏇挎崲鏂囦歡涓殑鍐呭http://www.shnenglu.com/wanghaiguang/archive/2012/05/04/173672.html鐜嬫搗鍏?/dc:creator>鐜嬫搗鍏?/author>Fri, 04 May 2012 10:12:00 GMThttp://www.shnenglu.com/wanghaiguang/archive/2012/05/04/173672.htmlhttp://www.shnenglu.com/wanghaiguang/comments/173672.htmlhttp://www.shnenglu.com/wanghaiguang/archive/2012/05/04/173672.html#Feedback0http://www.shnenglu.com/wanghaiguang/comments/commentRss/173672.htmlhttp://www.shnenglu.com/wanghaiguang/services/trackbacks/173672.html
1 !include "TextReplace.nsh"
2 
3 ${textreplace::ReplaceInFile} "c:\1.txt" "c:\1.txt" "%Install%" "鏇挎崲鐨勫唴瀹?/span>" "/S=1" $4
4 ${textreplace::FreeReadBuffer} "$4"
5 ${textreplace::Unload}


]]>
NSIS淇敼鍒涘緩鏂囦歡澶硅鍐欐潈闄?/title><link>http://www.shnenglu.com/wanghaiguang/archive/2012/05/04/173655.html</link><dc:creator>鐜嬫搗鍏?/dc:creator><author>鐜嬫搗鍏?/author><pubDate>Fri, 04 May 2012 05:16:00 GMT</pubDate><guid>http://www.shnenglu.com/wanghaiguang/archive/2012/05/04/173655.html</guid><wfw:comment>http://www.shnenglu.com/wanghaiguang/comments/173655.html</wfw:comment><comments>http://www.shnenglu.com/wanghaiguang/archive/2012/05/04/173655.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.shnenglu.com/wanghaiguang/comments/commentRss/173655.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/wanghaiguang/services/trackbacks/173655.html</trackback:ping><description><![CDATA[    鍦ㄥ煙鐜涓嬶紝鏈夋椂鍙楅檺璐︽埛瀵規枃浠跺す闇瑕佽銆佸啓鎿嶄綔鏉冮檺錛屼笅闈負淇敼鏂囦歡澶硅闂潈闄愪唬鐮侊細<br />  <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008080"> 1</span> <span style="color: #000000">  ReadINIStr $</span><span style="color: #000000">1</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">$EXEDIR\Test.ini</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">Directory</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">DirectoryName</span><span style="color: #000000">"</span><span style="color: #000000"><br /></span><span style="color: #008080"> 2</span> <span style="color: #000000">  ReadINIStr $</span><span style="color: #000000">2</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">$EXEDIR\Test.ini</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">Directory</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">DriverDirectoryName</span><span style="color: #000000">"</span><span style="color: #000000"><br /></span><span style="color: #008080"> 3</span> <span style="color: #000000">  ReadEnvStr $</span><span style="color: #000000">3</span><span style="color: #000000"> ALLUSERSPROFILE<br /></span><span style="color: #008080"> 4</span> <span style="color: #000000">  CreateDirectory </span><span style="color: #000000">"</span><span style="color: #000000">$3\$1</span><span style="color: #000000">"</span><span style="color: #000000"><br /></span><span style="color: #008080"> 5</span> <span style="color: #000000">  CreateDirectory </span><span style="color: #000000">"</span><span style="color: #000000">$3\$2</span><span style="color: #000000">"</span><span style="color: #000000"><br /></span><span style="color: #008080"> 6</span> <span style="color: #000000">  ;Make the directory read write accessible by everyone<br /></span><span style="color: #008080"> 7</span> <span style="color: #000000">  AccessControl::GrantOnFile \<br /></span><span style="color: #008080"> 8</span> <span style="color: #000000">    </span><span style="color: #000000">"</span><span style="color: #000000">$3\$1</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">everyone</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">GenericRead + GenericWrite</span><span style="color: #000000">"</span><span style="color: #000000"><br /></span><span style="color: #008080"> 9</span> <span style="color: #000000"><br /></span><span style="color: #008080">10</span> <span style="color: #000000">  AccessControl::GrantOnFile \<br /></span><span style="color: #008080">11</span> <span style="color: #000000">    </span><span style="color: #000000">"</span><span style="color: #000000">$3\$2</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">everyone</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">GenericRead + GenericWrite</span><span style="color: #000000">"</span></div>    鍦╔P64浣嶇郴緇熶笅錛屽鏋滃皢鎻愬崌鏉冮檺鐨勬搷浣滄斁鍒扮姝㈤噸瀹氬悜涓嬮潰錛屼慨鏀規枃浠跺す鏉冮檺浼氬け璐ャ傚鏋滃C:\WINDOWS\System32涓嬮潰鐨勯厤緗枃浠惰繘琛屼慨鏀癸紝鍒欏繀欏繪斁鍒扮姝㈤噸瀹氬悜涓嬮潰淇敼銆傚惁鍒欎慨鏀圭殑灝嗘槸C:\WINDOWS\SysWOW64涓嬬殑閰嶇疆鏂囦歡銆?br /> <img src ="http://www.shnenglu.com/wanghaiguang/aggbug/173655.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/wanghaiguang/" target="_blank">鐜嬫搗鍏?/a> 2012-05-04 13:16 <a href="http://www.shnenglu.com/wanghaiguang/archive/2012/05/04/173655.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>NSIS甯哥敤璺緞http://www.shnenglu.com/wanghaiguang/archive/2012/05/03/173593.html鐜嬫搗鍏?/dc:creator>鐜嬫搗鍏?/author>Thu, 03 May 2012 09:30:00 GMThttp://www.shnenglu.com/wanghaiguang/archive/2012/05/03/173593.htmlhttp://www.shnenglu.com/wanghaiguang/comments/173593.htmlhttp://www.shnenglu.com/wanghaiguang/archive/2012/05/03/173593.html#Feedback0http://www.shnenglu.com/wanghaiguang/comments/commentRss/173593.htmlhttp://www.shnenglu.com/wanghaiguang/services/trackbacks/173593.html
瀹夎鐩綍 ($INSTDIR 鍙互浣跨敤 StrCpy銆?ReadRegStr銆?ReadINIStr 絳夌瓑鏉ユ洿鏀廣備緥濡傚湪 .onInit 鍑芥暟閲屽彲浠ョ敤鏉ュ仛楂樼駭鐨勬嫻嬪畨瑁呭畾浣?銆?

娉ㄦ剰鍦ㄥ嵏杞界▼搴忎唬鐮侀噷錛?INSTDIR 涓哄嵏杞界▼搴忔墍鍦ㄧ殑鐩綍鑰屼笉鏄湪瀹夎紼嬪簭閲屾墍鎸囧畾鐨勭洰褰曘備緥濡傦紝 濡傛灉浣犳妸鍗歌澆紼嬪簭鏀懼湪 $WINDIR 閲屽茍涓旂敤鎴鋒病鏈夌Щ鍔ㄥ畠錛岄偅涔堝湪鍗歌澆紼嬪簭閲?$INSTDIR 灝辯瓑浜?$WINDIR銆傚鏋滀綘瑕佹妸鍗歌澆紼嬪簭鏀懼埌鍙﹀鐨勪綅緗紝閭d箞浣犲簲璇ュ厛鎶婂畨瑁呯▼搴忕殑 $INSTDIR 鍊煎啓鍏ユ敞鍐岃〃鎴栬呭叾瀹冨鏄撲繚瀛樼殑鍦版柟錛岀劧鍚庡湪鍗歌澆紼嬪簭閲岃鍙栬鍊煎茍璧嬪肩粰鍗歌澆紼嬪簭閲岀殑 $INSTDIR銆?

  闃呰鍏ㄦ枃

]]>
濡備綍鍦∟SIS涓墽琛孊AT鏂囦歡http://www.shnenglu.com/wanghaiguang/archive/2012/04/12/171070.html鐜嬫搗鍏?/dc:creator>鐜嬫搗鍏?/author>Thu, 12 Apr 2012 05:00:00 GMThttp://www.shnenglu.com/wanghaiguang/archive/2012/04/12/171070.htmlhttp://www.shnenglu.com/wanghaiguang/comments/171070.htmlhttp://www.shnenglu.com/wanghaiguang/archive/2012/04/12/171070.html#Feedback0http://www.shnenglu.com/wanghaiguang/comments/commentRss/171070.htmlhttp://www.shnenglu.com/wanghaiguang/services/trackbacks/171070.html鏈枃杞嚜錛?a href="http://www.shnenglu.com/humanchao/archive/2008/07/23/56962.html">http://www.shnenglu.com/humanchao/archive/2008/07/23/56962.html

濡傛灉BAT涓嶅甫鍙傛暟錛岃剼鏈唴瀹瑰涓嬶細

SetOutPath '$INSTDIR'
ExecWait '$INSTDIR\A.bat'

濡傛灉BAT闇瑕佸弬鏁版椂錛岃鎶婂甫鍙傛暟鐨勫懡浠ゅ啓鍏ュ彟澶栦竴涓柊鐨凚AT涓紝鎵ц鏂癇AT錛?br />
B.bat鍐呭錛?br />CALL A.bat install

NSIS 鑴氭湰錛?br />SetOutPath '$INSTDIR'
ExecWait '$INSTDIR\B.bat'


]]>
NSIS鑾峰彇褰撳墠緋葷粺鐗堟湰http://www.shnenglu.com/wanghaiguang/archive/2012/04/11/170937.html鐜嬫搗鍏?/dc:creator>鐜嬫搗鍏?/author>Wed, 11 Apr 2012 09:11:00 GMThttp://www.shnenglu.com/wanghaiguang/archive/2012/04/11/170937.htmlhttp://www.shnenglu.com/wanghaiguang/comments/170937.htmlhttp://www.shnenglu.com/wanghaiguang/archive/2012/04/11/170937.html#Feedback0http://www.shnenglu.com/wanghaiguang/comments/commentRss/170937.htmlhttp://www.shnenglu.com/wanghaiguang/services/trackbacks/170937.htmlhttp://www.flighty.cn/html/bushu/20110322_114.html

鏈鏂扮殑WinVer.nsh涓嬭澆錛?br />http://nsis.sourceforge.net/Include/WinVer.nsh錛堜笅杞藉悗緗簬\NSIS\Inclued涓級

AtLeastWin<version> 媯嫻嬫槸鍚﹂珮浜庢寚瀹氱増鏈?br />IsWin<version> 媯嫻嬫寚瀹氱増鏈紙鍞竴闄愬畾鐗堟湰錛?br />AtMostWin<version> 媯嫻嬫槸鍚︿綆浜庢寚瀹氱増鏈?/p>

<version> 鍏佽鐨勫鹼細
95銆?8銆丮E銆丯T4銆?000銆乆P銆?003銆乂ista銆?008銆?銆?008R2

紺轟緥1錛?/p>

鎶樺彔NSIS 浠g爜
 1 !include "MUI.nsh"  
 2 !include "WinVer.nsh"  
 3 !insertmacro MUI_LANGUAGE "simpchinese"  
 4   
 5 Section     
 6 ${If} ${AtLeastWinVista}   
 7   MessageBox MB_OK "緋葷粺涓?nbsp;Vista 鎴?nbsp;Vista 浠ヤ笂緋葷粺錛?/span>"  
 8 ${EndIf}   
 9   
10 ${If} ${IsWin2000}   
11 ${OrIf} ${IsWinXP}   
12   MessageBox MB_OK "緋葷粺涓?nbsp;2000 鎴?nbsp;XP錛?/span>"  
13 ${EndIf}   
14   
15 ${If} ${AtMostWinXP}   
16   MessageBox MB_OK "緋葷粺鐗堟湰涓?nbsp;XP 鎴栨洿浣庣増鏈殑緋葷粺錛?/span>"  
17 ${EndIf}
18 SectionEnd    

紺轟緥2錛?/p>

鎶樺彔NSIS 浠g爜
 1 !include "MUI.nsh"  
 2 !include "WinVer.nsh"  
 3 !insertmacro MUI_LANGUAGE "simpchinese"  
 4   
 5 Section     
 6 ${Unless} ${ISWinXP}   
 7 MessageBox MB_OK "鏈▼搴忓彧鑳藉畨瑁呭湪 Windows XP 緋葷粺涓婏紒"  
 8 Abort   
 9 ${EndIf}   
10 SectionEnd 


]]>
NSIS錛屼駭鐢熼殢鏈烘暟http://www.shnenglu.com/wanghaiguang/archive/2012/04/06/170286.html鐜嬫搗鍏?/dc:creator>鐜嬫搗鍏?/author>Fri, 06 Apr 2012 09:13:00 GMThttp://www.shnenglu.com/wanghaiguang/archive/2012/04/06/170286.htmlhttp://www.shnenglu.com/wanghaiguang/comments/170286.htmlhttp://www.shnenglu.com/wanghaiguang/archive/2012/04/06/170286.html#Feedback0http://www.shnenglu.com/wanghaiguang/comments/commentRss/170286.htmlhttp://www.shnenglu.com/wanghaiguang/services/trackbacks/170286.html浣跨敤鎻掍歡錛?a >http://nsis.sourceforge.net/NsRandom_plug-in

杞嚜錛?a >http://www.dreams8.com/thread-11726-1-1.html
 1 Function Random
 2 Exch $0
 3 Push $1
 4 System::Call 'kernel32::QueryPerformanceCounter(*l.r1)'
 5 System::Int64Op $1 % $0
 6 Pop $0
 7 Pop $1
 8 Exch $0
 9 FunctionEnd
10 
11 Push "100" 
12 Call Random
13 Pop $0




]]>
NSIS 鑾峰彇紜洏搴忓垪鍙?http://www.shnenglu.com/wanghaiguang/archive/2012/04/06/170284.html鐜嬫搗鍏?/dc:creator>鐜嬫搗鍏?/author>Fri, 06 Apr 2012 09:10:00 GMThttp://www.shnenglu.com/wanghaiguang/archive/2012/04/06/170284.htmlhttp://www.shnenglu.com/wanghaiguang/comments/170284.htmlhttp://www.shnenglu.com/wanghaiguang/archive/2012/04/06/170284.html#Feedback0http://www.shnenglu.com/wanghaiguang/comments/commentRss/170284.htmlhttp://www.shnenglu.com/wanghaiguang/services/trackbacks/170284.htmlhttp://www.shnenglu.com/huangyi5209/articles/143171.html
 1 !include MUI.nsh
 2        
 3 Function GetDiskVolumeSerialNumber
 4 !define GetVolumeInformation "Kernel32::GetVolumeInformation(t,t,i,*i,*i,*i,t,i) i"
 5 System::Call '${GetVolumeInformation}("$0",,${NSIS_MAX_STRLEN},.r0,,,,${NSIS_MAX_STRLEN})'
 6 FunctionEnd
 7 
 8 Section
 9 StrCpy $0 "C:\"
10 Call GetDiskVolumeSerialNumber
11 IntFmt $0 "%08X" $0
12 MessageBox MB_OK "$0"
13 SectionEnd




]]>
NSIS瀹夎鍖?4浣嶇郴緇熻皟鐢ㄦ敞鍐岃〃鍑芥暟http://www.shnenglu.com/wanghaiguang/archive/2012/03/08/167385.html鐜嬫搗鍏?/dc:creator>鐜嬫搗鍏?/author>Thu, 08 Mar 2012 04:51:00 GMThttp://www.shnenglu.com/wanghaiguang/archive/2012/03/08/167385.htmlhttp://www.shnenglu.com/wanghaiguang/comments/167385.htmlhttp://www.shnenglu.com/wanghaiguang/archive/2012/03/08/167385.html#Feedback0http://www.shnenglu.com/wanghaiguang/comments/commentRss/167385.htmlhttp://www.shnenglu.com/wanghaiguang/services/trackbacks/167385.html杞嚜錛?/span>http://blog.csdn.net/blueblood7/article/details/7193573


鐢?NSIS鍒朵綔64浣嶅畨瑁呭寘 姝ラ

1銆佸湪瀹夎鑴氭湰鐨勫紑濮嬪瀹氫箟 LIBRARY_X64銆?/span>

!include "MUI.nsh"
!include "Library.nsh"

;濡傛灉鍋?2浣嶅畨瑁呭寘灝辨妸涓嬪彞娉ㄩ噴銆?/span>
!define LIBRARY_X64

 

2銆佹敞鍐孋OM緇勪歡錛岄渶鍖呭惈Library.nsh錛岀敤瀹廔nstallLib/UnInstallLib 浠f浛RegDLL/UnRegDLL銆?/span>

;RegDLL "$SYSDIR\ComName.dll"
!insertmacro InstallLib REGDLL NOTSHARED REBOOT_NOTPROTECTED "LocalPath\ComName.dll" "$SYSDIR\ComName.dll" $SYSDIR

;UnRegDLL "$SYSDIR\ComName.dll"
!insertmacro UnInstallLib REGDLL NOTSHARED REBOOT_NOTPROTECTED "$SYSDIR\ComName.dll"

 

3銆佸湪璋冪敤娑夊強娉ㄥ唽琛ㄧ殑鍑芥暟鍓嶇敤 SetRegView 64錛屽悗鐢?SetRegView lastused銆?/span>

!ifdef  LIBRARY_X64
 SetRegView 64
!endif

 WriteRegStr ...
 WriteRegStr ...
 WriteRegStr ...

!ifdef  LIBRARY_X64
 SetRegView lastused
!endif 

SetRegView鐢ㄦ埛鎵嬪唽錛?/span>
鍦?Windows x64 涓婂叡鏈?縐嶆煡鐪嬫柟寮忋備竴縐嶇敤浜?32-bit 搴旂敤紼嬪簭錛屽彟涓縐嶇敤浜?x64 搴旂敤紼嬪簭銆傞粯璁ゆ儏鍐典笅錛?2-bit 搴旂敤紼嬪簭榪愯鍦?x64 緋葷粺鐨?WOW64 妯″紡涓嬫椂錛屽彧鍏佽浣跨敤 32-bit 鏌ョ湅鏂瑰紡銆備嬌鐢?SetRegView 64 灝嗗厑璁稿畨瑁呯▼搴忓湪 x64 涓闂敞鍐岃〃閿箋?

瀹冨皢褰卞搷
DeleteRegKey,
DeleteRegValue,
EnumRegKey,
EnumRegValue,
ReadRegDWORD
,
ReadRegStr
,
WriteRegBin
,
WriteRegDWORD
,
WriteRegStr
,
WriteRegExpandStr
銆?/span>

瀹冧笉浼氬獎鍝?InstallDirRegKey銆傚彟澶栵紝鍦ㄥ嚱鏁?.onInit 涓篃鍙嬌鐢?ReadRegStr 璇誨彇娉ㄥ唽琛ㄣ?/span>

SetRegView 32
ReadRegStr $0 HKLM Software\Microsoft\Windows\CurrentVersion ProgramFilesDir
DetailPrint $0 # prints C:\Program Files (x86)
SetRegView 64
ReadRegStr $0 HKLM Software\Microsoft\Windows\CurrentVersion ProgramFilesDir
DetailPrint $0 # prints C:\Program Files
Function .onInit
  SetRegView 64
  ReadRegStr $INSTDIR HKLM Software\NSIS ""
  SetRegView 32
FunctionEnd

4銆佸湪璋冪敤娑夊強鐩爣鏈哄櫒涓婄郴緇熺洰褰曪紙鍗?SYSDIR錛夌殑鍑芥暟鍓嶇敤 ${DisableX64FSRedirection}銆?/span>

鍦ㄥ畨瑁呭寘鐨勭涓涓猄ection涓皟鐢ㄤ竴嬈″嵆鍙?/span>
!ifdef  LIBRARY_X64
 ${DisableX64FSRedirection}
!endif 

 

5銆佸湪64浣嶇郴緇熶笂 $PROGRAMFILES64 琛ㄧず“Program Files”, $PROGRAMFILES 琛ㄧず “Program Files (x86)”銆?/span>

鍙互鍦ㄥ畨瑁呰剼鏈殑寮濮嬪瀹氫箟涓涓父閲忥紝
!ifdef LIBRARY_X64
!define PROGRAM_FILES_MAP  $PROGRAMFILES64
!else
!define PROGRAM_FILES_MAP  $PROGRAMFILES
!endif
浠ュ悗鐩存帴鐢?${PROGRAM_FILES_MAP} 浠f浛 $PROGRAMFILES銆?/span>

 

6銆佸湪.onInit 鍜?un.onInit 涓垽鏂竴涓嬶紝濡傛灉瀹夎鍖呮槸鍦?2浣嶆搷浣滅郴緇熶笂榪愯錛屽垯鍋滄瀹夎銆?/span>

鍙垱寤轟竴涓畯錛岀劧鍚庡湪闇瑕佺殑鍦版柟鎻掑叆銆?/span>
!macro TIP_WHEN_AMD64_INSTALLER_RUNAT_X86
 !ifdef LIBRARY_X64
  ${If} ${RunningX64}
  ${else}
     MessageBox MB_OK|MB_ICONINFORMATION "璇峰湪64浣嶆搷浣滅郴緇熶笅榪愯銆?
   Abort
  ${EndIf}
 !endif
!macroend

Function .onInit
 !insertmacro TIP_WHEN_AMD64_INSTALLER_RUNAT_X86
 SetShellVarContext all  ;瀹夎鍒版墍鏈夌敤鎴蜂笅錛宑urrent 琛ㄧず瀹夎鍒板綋鍓嶇敤鎴蜂笅, all 琛ㄧず鎵鏈夌敤鎴蜂笅銆?/span>
FunctionEnd

Function un.onInit
 !insertmacro TIP_WHEN_AMD64_INSTALLER_RUNAT_X86
 SetShellVarContext all
FunctionEnd

 

澶囨敞錛?br />1銆佸湪 NSIS 涓殑鏉′歡緙栬瘧鏄?!寮澶達紝涓嶆槸 #寮澶達紝濡?ifdef銆?br />2銆佸COM緇勪歡錛屾垜璁や負搴旇鏄嬌鐢?NOTSHARED 鏂瑰紡娉ㄥ唽銆?br />3銆佸彲浠ュ仛涓壒澶勭悊鏂囦歡錛屼竴嬈℃х敓鎴?2浣?64浣嶇殑瀹夎鍖呫?br /> 濡?x.bat
 rem "璁板緱瑕佹妸瀹夎鑴氭湰涓殑 !define LIBRARY_X64 娉ㄩ噴鎺夛紝鍚﹀垯涓嶈兘鐢熸垚32浣嶅畨瑁呭寘銆?
 makensis .\myinstaller.nsi
 makensis /DLIBRARY_X64 .\myinstaller.nsi
 pause
 



]]>
国产2021久久精品| 狠狠色综合网站久久久久久久高清| 模特私拍国产精品久久| 国产成人精品久久综合 | 精品国产乱码久久久久久郑州公司 | 久久精品无码专区免费东京热 | 国产成人精品久久亚洲| 99精品久久久久久久婷婷| 久久婷婷色香五月综合激情| 亚洲国产精品嫩草影院久久| 亚洲精品tv久久久久久久久久| 无码8090精品久久一区| 亚洲国产成人精品91久久久 | 99久久精品免费看国产免费| 婷婷久久综合九色综合98| 久久99热精品| 久久综合久久鬼色| 亚洲国产一成久久精品国产成人综合| 久久综合精品国产一区二区三区| 亚洲国产成人精品女人久久久| 午夜精品久久久久久影视777| 欧美久久久久久| 国内精品久久久久久99| 国产精品无码久久久久| 久久免费视频1| 72种姿势欧美久久久久大黄蕉| 国产精品99久久久久久猫咪| 久久精品国产99久久久古代| 欧美伊香蕉久久综合类网站| 思思久久99热只有频精品66| 久久99国产精品久久久| 欧美一级久久久久久久大片| 日日躁夜夜躁狠狠久久AV| 国产成人精品久久一区二区三区av| 久久丫忘忧草产品| 狠狠人妻久久久久久综合| 久久久这里只有精品加勒比| 国产高清美女一级a毛片久久w| 久久综合亚洲色一区二区三区| 久久久久一区二区三区| 国内精品久久久久影院薰衣草|