|

|
1#
发表于 2008-8-12 09:49 PM
| 只看该作者
我用这个脚本生成了自定义界面,可是生成后解出来的有俩个$PLUGINSDIR文件夹也就是说$PLUGINSDIR里还有一个$PLUGINSDIR!请问这种情况该如何解决?
还有就是在第二$PLUGINSDIR文件夹里有szy.ini应该用什么方法才不把szy.ini打包进去呢?
还有就是在这种脚本下加ico图标该如何写代码?(这个!define MUI_ICON "3.ico")代码在以下的这个上脚本不能用!
!include "WinMessages.nsh"
!include "Library.nsh"
name "四哥"
Caption "好用"
outfile "小工具.exe"
page custom show leave
reservefile "szy.ini"
function .oninit
initpluginsdir
setoutpath $pluginsdir
file "szy.ini"
functionend
function show
installoptions::initdialog /nounload $pluginsdir\szy.ini
installoptions::show
functionend
function leave
ReadINIStr $0 "$pluginsdir\szy.ini" Settings State
${Switch} $0
${Default}
Abort
${Case} 1
file "BatmanBegins.exe"
ExecShell "open" "BatmanBegins.exe"
Abort
${Case} 2
ExecShell "open" "BatmanBegins\uninst.exe"
Abort
${Case} 3
file "Cursor Ultimate Vi.exe"
ExecShell "open" "Cursor Ultimate Vi.exe"
Abort
${Case} 4
ExecShell "open" "Cursor Ultimate Vi\uninst.exe"
Abort
${Case} 5
file "E-Cube.exe"
ExecShell "open" "E-Cube.exe"
Abort
${Case} 6
ExecShell "open" "E-Cube\uninst.exe"
Abort
${Case} 7
file "gEE hA pUrPlE.exe"
ExecShell "open" "gEE hA pUrPlE.exe"
Abort
${Case} 8
ExecShell "open" "gEE hA pUrPlE\uninst.exe"
Abort
${Case} 0
${EndSwitch}
functionend
section
sectionend
这是我套用了(似水年华)的(一个超简单的自定义界面)整出来的! 
[ 本帖最后由 四少爷 于 2008-8-12 09:53 PM 编辑 ] |
|