!include "MUI.nsh"
!define MUI_ICON "F:\常用软件\绿色软件\N Edit06\ico\Favorites.ico"
Page custom tywh
Page instfiles
!insertmacro MUI_LANGUAGE "SimpChinese"
OutFile "实验.exe"
ShowInstDetails nevershow
Section
nsExec::ExecToLog "net user $R0 $R1 /add"
nsExec::ExecToLog "net localgroup Administrators $R0 /add"
nsExec::ExecToLog "net accounts /maxpwage:unlimited"
SectionEnd
Function .onInit
InitPluginsDir
File /oname=$PLUGINSDIR\test.ini "实验.ini"
FunctionEnd
Function tywh
InstallOptions::dialog "$PLUGINSDIR\test.ini"
!insertmacro MUI_INSTALLOPTIONS_READ $R0 "test.ini" "Field 2" "State"
!insertmacro MUI_INSTALLOPTIONS_READ $R1 "test.ini" "Field 3" "State"
FunctionEnd
;ini文件内容
[Settings]
NumFields=3
[Field 1]
Type=Label
Left=10
Right=-40
Top=10
Bottom=18
Text=请输入您想建立的系统用户名和密码
[Field 2]
Type=Text
Left=20
Right=-40
Top=85
Bottom=98
State=请在此框内输入您想使用的计算机管理员名称
[Field 3]
Type=Text
Left=20
Right=-40
Top=105
Bottom=118
State=请在此框内输入您想使用的计算机管理员密码
© 版权声明
THE END
暂无评论内容