MeUserListRu Цитата: ассоциация rtf-файлов с WordPad'ом
Исправленный скрипт:
[more]
Код: [Main]
Title=Wordpad
Type=script
Level=4
Description=Will add Wordpad to the PE compilation.
Author=John Adamopoulos
Contact=http://www.boot-land.net/forums
Version=009
Date=2006-Okt-30 11:27:20
Selected=True
Locked=True
Updates=http://beta.boot-land.net
Upload=2007-May-04 17:52:34
Download_Level=1
[Interface]
pCheckBox2=Desktop,1,3,30,79,87,18,False
pCheckBox3=StartMenu,1,3,30,97,96,18,True
pBevel1=pBevel1,1,12,18,49,171,147
pTextLabel1="Create shortcuts in :",1,1,24,55,117,18,8,Normal
pTextBox1="Shortcut name",1,0,30,160,147,18,Wordpad
pBevel2=pBevel2,1,12,195,49,204,123
pTextLabel2="File types to associate with notepad:",1,1,204,55,186,18,8,Normal
pCheckBox4=".doc ",1,3,222,76,177,18,True
pCheckBox5=.rtf,1,3,222,97,78,18,True
pCheckBox6=.wri,1,3,222,118,54,18,True
pCheckBox1="Quick Launch",1,3,30,115,150,18,False
[process]
Expand,"%SourceDir%\i386\wordpad.ex_","%TargetDir%\i386\system32"
If,NotExistFile,"%TargetDir%\i386\system32\mfc42u.dll",Expand,"%SourceDir%\i386\mfc42u.dl_","%TargetDir%\i386\system32"
Expand,"%SourceDir%\i386\msftedit.dl_","%TargetDir%\i386\system32"
IniWrite,"%ProjectInfo%","UPX-Switches","WORDPAD.exe","-9 --compress-resources=0"
If,%pCheckBox2%,Equal,True,Run,%ScriptFile%,ShorcutDesktop
If,%pCheckBox3%,Equal,True,Run,%ScriptFile%,ShorcutStart
If,%pCheckBox1%,Equal,True,Run,%ScriptFile%,ShorcutQL
Echo,"Loading registry hive: [%TargetDir%\i386\System32\Config\software]"
RegHiveLoad,Tmp_software,%TargetDir%\i386\System32\Config\software
Echo,"Writing new values on registry hive.."
If,%pCheckBox4%,Equal,True,RegWrite,HKLM,0x1,"Tmp_software\Classes\.doc","","WordPad.Document.1"
If,%pCheckBox4%,Equal,True,RegWrite,HKLM,0x1,"Tmp_software\Classes\WordPad.Document.1","","WordPad Document"
If,%pCheckBox4%,Equal,True,RegWrite,HKLM,0x2,"Tmp_software\Classes\WordPad.Document.1\DefaultIcon",,"#$q%SystemRoot%\System32\WORDPAD.EXE#$q#$c1"
If,%pCheckBox4%,Equal,True,RegWrite,HKLM,0x2,"Tmp_software\Classes\WordPad.Document.1\shell\open\command",,"#$q%SystemRoot%\System32\WORDPAD.EXE#$q#$s#$q#$p1#$q"
If,%pCheckBox5%,Equal,True,RegWrite,HKLM,0x1,"Tmp_software\Classes\.rtf","","rtffile"
If,%pCheckBox5%,Equal,True,RegWrite,HKLM,0x1,"Tmp_software\Classes\rtffile","","Rich Text Document"
If,%pCheckBox5%,Equal,True,RegWrite,HKLM,0x2,"Tmp_software\Classes\rtffile\DefaultIcon",,"#$q%SystemRoot%\System32\WORDPAD.EXE#$q#$c1"
If,%pCheckBox5%,Equal,True,RegWrite,HKLM,0x2,"Tmp_software\Classes\rtffile\shell\open\command",,"#$q%SystemRoot%\System32\WORDPAD.EXE#$q#$s#$q#$p1#$q"
If,%pCheckBox6%,Equal,True,RegWrite,HKLM,0x1,"Tmp_software\Classes\.wri","","wrifile"
If,%pCheckBox6%,Equal,True,RegWrite,HKLM,0x1,"Tmp_software\Classes\wrifile","","Write Document"
if,%pCheckBox6%,Equal,True,RegWrite,HKLM,0x2,"Tmp_software\Classes\wrifile\DefaultIcon",,"#$q%SystemRoot%\System32\WORDPAD.EXE#$q#$c1"
If,%pCheckBox6%,Equal,True,RegWrite,HKLM,0x2,"Tmp_software\Classes\wrifile\shell\open\command",,"#$q%SystemRoot%\System32\WORDPAD.EXE#$q#$s#$q#$p1#$q"
RegHiveUnLoad,Tmp_software
Run,%ScriptLog%,Process-log
[ShorcutDesktop]
Run,%BuildModelScript%,Add-Shortcut,"DE","#$pSystemroot#$p\system32\wordpad.exe","WordPad"
[ShorcutStart]
Run,%BuildModelScript%,Add-Shortcut,"AC","#$pSystemroot#$p\system32\wordpad.exe","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