Jump to content

Need Help Whit Copy,delete Ect...


 Share

Recommended Posts

Hello,

i want to make a program that can patch a game to 1.0 and to 1.2.

i made this:

#include <Guiconstants.au3>

Hotkeyset("\","popup")

$menu = GUicreate("Crack patch to 1.0 to 1.2 and 1.2 to 1.0", 255,44,0,0)

$group1 = Guictrlcreategroup("",0,0,255,41)

$login = Guictrlcreatebutton("Patch to 1.0",8,8,100,25)

Guictrlsetstate(-1,$gui_DISABLE)

$kick = Guictrlcreatebutton("Patch to 1.2",150,8,100,25)

Guictrlcreategroup("",-99,-99,1,1)

Guisetstate(@SW_HIDE)

func popup()

$state = Guictrlgetstate($login)

If $state = 144 Then

Guictrlsetstate($login, $Gui_ENABLE)

Guisetstate(@sw_show)

elseif $state = 80 Then

Guictrlsetstate($login , $gui_DISABLE)

Guisetstate(@SW_HIDE)

EndIf

endfunc

Do

$msg = Guigetmsg()

Select

Case $msg = $login

Guictrlsetstate($login , $gui_DISABLE)

Guisetstate(@SW_HIDE)

FileCopy("C:\WINDOWS\Patch\1.0\CoD2SP_s.exe","C:\ProgramF iles\Activision\CallofDuty2")

FileCopy("C:\WINDOWS\Patch\1.0\CoDMP.exe","C:\Program Files\Activision\CallofDuty2")

FileCopy("C:\WINDOWS\Patch\1.0\CoD2MP_s.exe","C:\Program Files\Activision\CallofDuty2")

FileCopy("C:\WINDOWS\Patch\1.0\mss32.dll","C:\Program Files\Activision\CallofDuty2")

FileCopy("C:\WINDOWS\Patch\1.0\gfx_d3d_mp_x86_s.dll","C:\Program Files\Activision\CallofDuty2")

FileCopy("C:\WINDOWS\Patch\1.0\gfx_d3d_x86_s.dll","C:\Program Files\Activision\CallofDuty2")

FileDelete("C:\ProgramFiles\Activision\Call of Duty 2\pb\pbags.dll")

FileDelete("C:\ProgramFiles\Activision\Call of Duty 2\pb\pbcl.dll")

FileDelete("C:\ProgramFiles\Activision\Call of Duty 2\pb\pbcls.dll")

FileDelete("C:\ProgramFiles\Activision\Call of Duty 2\pb\pbsv.dll")

FileDelete("C:\ProgramFiles\Activision\Call of Duty 2\pb\htm\lc001203.htm")

FileDelete("C:\ProgramFiles\Activision\Call of Duty 2\pb\htm\mc001203.htm")

FileDelete("C:\ProgramFiles\Activision\Call of Duty 2\pb\htm\wc001203.htm")

FileDelete("C:\ProgramFiles\Activision\Call of Duty 2\pb\htm\ws001105.htm")

DirRemove("C:\ProgramFiles\Activision\Call of Duty 2\pb\htm")

FileDelete("C:\ProgramFiles\Activision\Call of Duty 2\pb\dll\wc001203.dll")

FileDelete("C:\ProgramFiles\Activision\Call of Duty 2\pb\dll\ws001105.dll")

DirRemove("C:\ProgramFiles\Activision\Call of Duty 2\pb\dll")

FileDelete("C:\ProgramFiles\Activision\Call of Duty 2\version.inf")

FileDelete("C:\ProgramFiles\Activision\Call of Duty 2\cod2patch.ini")

FileDelete("C:\ProgramFiles\Activision\Call of Duty 2\main\iw_15.iwd")

FileDelete("C:\ProgramFiles\Activision\Call of Duty 2\main\localized_english_iw11.iwd")

RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Activision\Call of Duty 2\","Version","REG_SZ", 1.0)

Guisetstate(@SW_SHOW)

Guictrlsetstate($login,$Gui_ENABLE)

Case $msg = $kick

Guictrlsetstate($login , $gui_DISABLE)

Guisetstate(@SW_HIDE)

FileCopy("C:\WINDOWS\Patch\1.2\CoD2SP_s.exe","C:\Program Files\Activision\CallofDuty2")

FileCopy("C:\WINDOWS\Patch\1.2\CoDMP.exe.exe","C:\Program Files\Activision\CallofDuty2")

FileCopy("C:\WINDOWS\Patch\1.2\CoD2MP_s.exe","C:\Program Files\Activision\CallofDuty2")

FileCopy("C:\WINDOWS\Patch\1.2\cod2patch.ini","C:\ProgramF iles\Activision\CallofDuty2")

FileCopy("C:\WINDOWS\Patch\1.2\version.inf","C:\Program Files\Activision\CallofDuty2")

FileCopy("C:\WINDOWS\Patch\1.2\gfx_d3d_mp_x86_s.dll","C:\Program Files\Activision\CallofDuty2")

FileCopy("C:\WINDOWS\Patch\1.2\gfx_d3d_x86_s.dll","C:\Program Files\Activision\CallofDuty2")

FileCopy("C:\WINDOWS\Patch\1.2\main\iw_15.iwd","C:\Program Files\Activision\CallofDuty2\main")

FileCopy("C:\WINDOWS\Patch\1.2\main\localized_english_iw11.iwd","C:\Program Files\Activision\CallofDuty2\main")

FileCopy("C:\WINDOWS\Patch\1.2\pbag.dll","C:\Program Files\Activision\CallofDuty2\pb\")

FileCopy("C:\WINDOWS\Patch\1.2\pbags.dll","C:\Program Files\Activision\CallofDuty2\pb\")

FileCopy("C:\WINDOWS\Patch\1.2\pbcl.dll","C:\Program Files\Activision\CallofDuty2\pb\")

FileCopy("C:\WINDOWS\Patch\1.2\pbcls.dll","C:\Program Files\Activision\CallofDuty2\pb\")

FileCopy("C:\WINDOWS\Patch\1.2\pbsv.dll","C:\Program Files\Activision\CallofDuty2\pb\")

DirCreate("C:\ProgramFiles\Activision\CallofDuty2\pb\htm")

FileCopy("C:\WINDOWS\Patch\1.2\lc001203.htm","C:\Program Files\Activision\CallofDuty2\pb\mth\")

FileCopy("C:\WINDOWS\Patch\1.2\mc001203.htm","C:\Program Files\Activision\CallofDuty2\pb\htm\")

FileCopy("C:\WINDOWS\Patch\1.2\wc001203.htm","C:\Program Files\Activision\CallofDuty2\pb\htm\")

FileCopy("C:\WINDOWS\Patch\1.2\ws001105.htm","C:\Program Files\Activision\CallofDuty2\pb\htm\")

DirCreate("C:\ProgramFiles\Activision\CallofDuty2\pb\dll")

FileCopy("C:\WINDOWS\Patch\1.2\wc001203.dll","C:\Program Files\Activision\CallofDuty2\pb\dll\")

FileCopy("C:\WINDOWS\Patch\1.2\ws001105.dll","C:\Program Files\Activision\CallofDuty2\pb\dll\")

RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Activision\Call of Duty 2\","Version","REG_SZ", 1.2)

Guisetstate(@SW_SHOW)

Guictrlsetstate($login,$Gui_ENABLE)

endselect

until $msg = $GUI_EVENT_CLOSE

My problem is that when i want to copy a file into a directory it does not copy:P

it only mades new directorys

Can someone tell me what i do wrong?

It does not delete directory and file's

Edited by Erik.

I little problem, hard to find and fix

Link to comment
Share on other sites

  • Replies 42
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

ok... there is no way i can check your script... i dont have that program, however

1

it seems you are creating that folder AFTER you have tried to copy to it

2

You should use a variable so you dont re-write errors in spacing etc

example

$Folder1 = "C:\ProgramFiles\Activision\Call of Duty 2\pb\"

3

You need to TEST you location and file name to be sure it has been located

example

if fileexists($Folder1 & "my-file.exe") then

;delete the file

Else

; message box... that file was not found

endif

8)

NEWHeader1.png

Link to comment
Share on other sites

Can you please give me a example for 2 file copy's so i can exit it?

This is what i have now:

#include <Guiconstants.au3>

Hotkeyset("\","popup")

$menu = GUicreate("Crack patch to 1.0 to 1.2 and 1.2 to 1.0", 255,44,0,0)

$group1 = Guictrlcreategroup("",0,0,255,41)

$login = Guictrlcreatebutton("Patch to 1.0",8,8,100,25)

Guictrlsetstate(-1,$gui_DISABLE)

$kick = Guictrlcreatebutton("Patch to 1.2",150,8,100,25)

Guictrlcreategroup("",-99,-99,1,1)

Guisetstate(@SW_HIDE)

func popup()

$state = Guictrlgetstate($login)

If $state = 144 Then

Guictrlsetstate($login, $Gui_ENABLE)

Guisetstate(@sw_show)

elseif $state = 80 Then

Guictrlsetstate($login , $gui_DISABLE)

Guisetstate(@SW_HIDE)

EndIf

endfunc

Do

$msg = Guigetmsg()

Select

Case $msg = $login

Guictrlsetstate($login , $gui_DISABLE)

Guisetstate(@SW_HIDE)

FileCopy("C:\WINDOWS\Patch\1.0\CoD2SP_s.exe","C:\Program Files\Activision\Call of Duty2")

FileCopy("C:\WINDOWS\Patch\1.0\CoDMP.exe","C:\Program Files\Activision\Call of Duty2")

FileCopy("C:\WINDOWS\Patch\1.0\CoD2MP_s.exe","C:\Program Files\Activision\Call of Duty2")

FileCopy("C:\WINDOWS\Patch\1.0\mss32.dll","C:\Program Files\Activision\Call of Duty2")

FileCopy("C:\WINDOWS\Patch\1.0\gfx_d3d_mp_x86_s.dll","C:\Program Files\Activision\Call of Duty2")

FileCopy("C:\WINDOWS\Patch\1.0\gfx_d3d_x86_s.dll","C:\Program Files\Activision\Call of Duty2")

FileDelete("C:\Program Files\Activision\Call of Duty 2\pb\pbags.dll")

FileDelete("C:\Program Files\Activision\Call of Duty 2\pb\pbcl.dll")

FileDelete("C:\Program Files\Activision\Call of Duty 2\pb\pbcls.dll")

FileDelete("C:\Program Files\Activision\Call of Duty 2\pb\pbsv.dll")

FileDelete("C:\Program Files\Activision\Call of Duty 2\pb\htm\lc001203.htm")

FileDelete("C:\Program Files\Activision\Call of Duty 2\pb\htm\mc001203.htm")

FileDelete("C:\Program Files\Activision\Call of Duty 2\pb\htm\wc001203.htm")

FileDelete("C:\Program Files\Activision\Call of Duty 2\pb\htm\ws001105.htm")

DirRemove("C:\Program Files\Activision\Call of Duty 2\pb\htm")

FileDelete("C:\Program Files\Activision\Call of Duty 2\pb\dll\wc001203.dll")

FileDelete("C:\Program Files\Activision\Call of Duty 2\pb\dll\ws001105.dll")

DirRemove("C:\Program Files\Activision\Call of Duty 2\pb\dll")

FileDelete("C:\Program Files\Activision\Call of Duty 2\version.inf")

FileDelete("C:\Program Files\Activision\Call of Duty 2\cod2patch.ini")

FileDelete("C:\Program Files\Activision\Call of Duty 2\main\iw_15.iwd")

FileDelete("C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw11.iwd")

RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Activision\Call of Duty 2\","Version","REG_SZ", 1.0)

Guisetstate(@SW_SHOW)

Guictrlsetstate($login,$Gui_ENABLE)

Case $msg = $kick

Guictrlsetstate($login , $gui_DISABLE)

Guisetstate(@SW_HIDE)

FileCopy("C:\WINDOWS\Patch\1.2\CoD2SP_s.exe","C:\Program Files\Activision\Call of Duty2")

FileCopy("C:\WINDOWS\Patch\1.2\CoDMP.exe.exe","C:\Program Files\Activision\Call of Duty2")

FileCopy("C:\WINDOWS\Patch\1.2\CoD2MP_s.exe","C:\Program Files\Activision\Call of Duty2")

FileCopy("C:\WINDOWS\Patch\1.2\cod2patch.ini","C:\ProgramF iles\Activision\CallofDuty2")

FileCopy("C:\WINDOWS\Patch\1.2\version.inf","C:\Program Files\Activision\Call of Duty2")

FileCopy("C:\WINDOWS\Patch\1.2\gfx_d3d_mp_x86_s.dll","C:\Program Files\Activision\Call o fDuty2")

FileCopy("C:\WINDOWS\Patch\1.2\gfx_d3d_x86_s.dll","C:\Program Files\Activision\Call of Duty2")

FileCopy("C:\WINDOWS\Patch\1.2\main\iw_15.iwd","C:\Program Files\Activision\Call of Duty2\main")

FileCopy("C:\WINDOWS\Patch\1.2\main\localized_english_iw11.iwd","C:\Program Files\Activision\CallofDuty2\main")

FileCopy("C:\WINDOWS\Patch\1.2\pbag.dll","C:\Program Files\Activision\Call of Duty2\pb\")

FileCopy("C:\WINDOWS\Patch\1.2\pbags.dll","C:\Program Files\Activision\Call of Duty2\pb\")

FileCopy("C:\WINDOWS\Patch\1.2\pbcl.dll","C:\Program Files\Activision\Call of Duty2\pb\")

FileCopy("C:\WINDOWS\Patch\1.2\pbcls.dll","C:\Program Files\Activision\Call of Duty2\pb\")

FileCopy("C:\WINDOWS\Patch\1.2\pbsv.dll","C:\Program Files\Activision\Call of Duty2\pb\")

DirCreate("C:\ProgramFiles\Activision\CallofDuty2\pb\htm")

FileCopy("C:\WINDOWS\Patch\1.2\lc001203.htm","C:\Program Files\Activision\Call of Duty2\pb\mth\")

FileCopy("C:\WINDOWS\Patch\1.2\mc001203.htm","C:\Program Files\Activision\Call of Duty2\pb\htm\")

FileCopy("C:\WINDOWS\Patch\1.2\wc001203.htm","C:\Program Files\Activision\Call of Duty2\pb\htm\")

FileCopy("C:\WINDOWS\Patch\1.2\ws001105.htm","C:\Program Files\Activision\Call of Duty2\pb\htm\")

DirCreate("C:\ProgramFiles\Activision\CallofDuty2\pb\dll")

FileCopy("C:\WINDOWS\Patch\1.2\wc001203.dll","C:\Program Files\Activision\CallofDuty2\pb\dll\")

FileCopy("C:\WINDOWS\Patch\1.2\ws001105.dll","C:\Program Files\Activision\CallofDuty2\pb\dll\")

RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Activision\Call of Duty 2\","Version","REG_SZ", 1.2)

Guisetstate(@SW_SHOW)

Guictrlsetstate($login,$Gui_ENABLE)

endselect

until $msg = $GUI_EVENT_CLOSE

When i do this it's make a folder ProgramFiles and not program Files

The Call of Duty is a game whit all folders in it what you see in my script.

i firts delete all files then i delete the folder.

Edited by Erik.

I little problem, hard to find and fix

Link to comment
Share on other sites

try putting this in

$Folder1 = "C:\ProgramFiles\Activision\Call of Duty 2\pb\"

If FileExists($Folder1 & "my-file.exe") Then
    FileDelete($Folder1 & "my-file.exe")
Else
    MsgBox(0, '', "That folder was not found   ")
EndIf

; then use... FileDelete($Folder1 & "my-file.exe") with the new file name

you wrote this...???

8)

NEWHeader1.png

Link to comment
Share on other sites

No,

i posted my script so you cans ee i edit it

i will try it again whit this:

$Folder1 = "C:\ProgramFiles\Activision\Call of Duty 2\pb\"

If FileExists($Folder1 & "my-file.exe") Then

FileDelete($Folder1 & "my-file.exe")

Else

MsgBox(0, '', "That folder was not found ")

EndIf

; then use... FileDelete($Folder1 & "my-file.exe") with the new file name

What can i do to see if the file does not exits? and then copy it to that directory?

Edited by Erik.

I little problem, hard to find and fix

Link to comment
Share on other sites

  • Moderators

Okej,

How can i let it look if the directory exist?

How can i look if a file does NOT exist?

Wow, you answered your own question really [Help File + File + Exists] = FileExists()

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

you have a lot of typing errors for the call of duty 2 folder.

Eg, callofduty2, call of duty2, Call o fDuty2 etc.

Try creating a variable for that folder as valuater suggested.

Eg, $folder = (@programFilesDir & "\Activison\Call Of Duty 2\")

Link to comment
Share on other sites

Like this?

$pbags = "C:\Program Files\Activision\Call of Duty 2\pb\"

$pbcl = "C:\Program Files\Activision\Call of Duty 2\pb\"

$pbcls = "C:\Program Files\Activision\Call of Duty 2\pb\"

$pbsv = "C:\Program Files\Activision\Call of Duty 2\pb\"

$lc001203 = "C:\Program Files\Activision\Call of Duty 2\pb\htm\"

$mc001203 = "C:\Program Files\Activision\Call of Duty 2\pb\htm\"

$wc001203 = "C:\Program Files\Activision\Call of Duty 2\pb\htm\"

$ws001105 = "C:\Program Files\Activision\Call of Duty 2\pb\htm\"

$wc001203 = "C:\Program Files\Activision\Call of Duty 2\pb\dll\"

$ws001105 = "C:\Program Files\Activision\Call of Duty 2\pb\dll\"

$version = "C:\Program Files\Activision\Call of Duty 2\"

$cod2patch = "C:\Program Files\Activision\Call of Duty 2\"

$iw_15 = "C:\ProgramFiles\Activision\Call of Duty 2\main\"

$localized_english_iw11 = "C:\ProgramFiles\Activision\Call of Duty 2\main\"

$CoDMP = "C:\WINDOWS\Patch\1.0\"

$CoD2MP_s = "C:\WINDOWS\Patch\1.0\"

$mss32 = "C:\WINDOWS\Patch\1.0\"

$gfx_d3d_mp_x86_s = "C:\WINDOWS\Patch\1.0\"

$gfx_d3d_x86_s = "C:\WINDOWS\Patch\1.0\"

$dll = "C:\WINDOWS\Patch\1.0\"

$htm = "C:\WINDOWS\Patch\1.0\"

DirRemove("C\Program Files\Activision|Call of Duty 2\pb")

DirRemove("C\Program Files\Activision|Call of Duty 2\htm")

if FileExists($pbags & "pbags.dll") then

FileDelete

Else

endif

if FileExists($pbcl & "pbcl.dll") then

FileDelete

Else

endif

if FileExists($pbcls & "pbcls.dll") then

FileDelete

Else

endif

if FileExists($pbsv & "pbsv.dll") then

FileDelete

Else

endif

if FileExists($lc001203 & "lc001203.htm") then

FileDelete

Else

endif

if FileExists($mc001203 & "mc001203.htm") then

FileDelete

Else

endif

if FileExists($wc001203 & "wc001203.htm") then

FileDelete

Else

endif

if FileExists($ws001105 & "ws001105.htm") then

FileDelete

Else

endif

if FileExists($wc001203 & "wc001203.dll") then

FileDelete

Else

endif

if FileExists($ws001105 & "ws001105.dll") then

FileDelete

Else

endif

if FileExists($version & "version.inf") then

FileDelete

Else

endif

if FileExists($cod2patch & "cod2patch.ini") then

FileDelete

Else

endif

if FileExists($iw_15 & "iw_15.iwd") then

FileDelete

Else

d

endif

if FileExists($localized_english_iw11 & "localized_english_iw11.iwd") then

FileDelete

Else

endif

if FileExists( $CoDMP & "CoDMP.exe") then

FileCopy("C:\WINDOWS\Patch\1.0\CoDMP.exe","C:\Program Files\Activision\Call of Duty 2\")

Else

endif

if FileExists( $CoD2MP_s & "CoD2MP_s.exe") then

FileCopy("C:\WINDOWS\Patch\1.0\CoD2MP_s.exe","C:\Program Files\Activision\Call of Duty 2\")

Else

endif

if FileExists($mss32& "mss32.dll") then

("C:\WINDOWS\Patch\1.0\mss32.dll","C:\Program Files\Activision\Call of Duty 2\")

Else

endif

if FileExists( $gfx_d3d_mp_x86_s & "gfx_d3d_mp_x86_s.dll") then

FileCopy("C:\WINDOWS\Patch\1.0\gfx_d3d_mp_x86_s.dll","C:\Program Files\Activision\Call of Duty 2\")

Else

endif

if FileExists( $gfx_d3d_x86_s& "gfx_d3d_x86_s.dll") then

FileCopy("C:\WINDOWS\Patch\1.0\gfx_d3d_x86_s.dll","C:\Program Files\Activision\Call of Duty 2\")

Else

endif

I little problem, hard to find and fix

Link to comment
Share on other sites

$cod2 = (@ProgramFilesDir & "\Activision\Call Of Duty 2")

Then to copy files;

FileCopy("C:\WINDOWS\Patch\1.0\", $cod2)

(copies to C:\Program Files\Activision\Call Of Duty 2)

FileCopy("C:\WINDOWS\Patch\1.0\", $cod2 & "\main", 1)

(copies to C:\Program Files\Activision\Call Of Duty 2\main)

FileCopy("C:\WINDOWS\Patch\1.0\", $cod2 & "\pb", 1)

(copies to C:\Program Files\Activision\Call Of Duty 2\pb)

etc etc.

Rather then check if FileExists and delete, use the flag '1' to overwrite the file.

Check FileCopy in Help file

Edited by TicTaC
Link to comment
Share on other sites

Is this good??:

$pbags = "C:\Program Files\Activision\Call of Duty 2\pb\"

$pbcl = "C:\Program Files\Activision\Call of Duty 2\pb\"

$pbcls = "C:\Program Files\Activision\Call of Duty 2\pb\"

$pbsv = "C:\Program Files\Activision\Call of Duty 2\pb\"

$lc001203 = "C:\Program Files\Activision\Call of Duty 2\pb\htm\"

$mc001203 = "C:\Program Files\Activision\Call of Duty 2\pb\htm\"

$wc001203 = "C:\Program Files\Activision\Call of Duty 2\pb\htm\"

$ws001105 = "C:\Program Files\Activision\Call of Duty 2\pb\htm\"

$wc001203 = "C:\Program Files\Activision\Call of Duty 2\pb\dll\"

$ws001105 = "C:\Program Files\Activision\Call of Duty 2\pb\dll\"

$version = "C:\Program Files\Activision\Call of Duty 2\"

$cod2patch = "C:\Program Files\Activision\Call of Duty 2\"

$iw_15 = "C:\ProgramFiles\Activision\Call of Duty 2\main\"

$localized_english_iw11 = "C:\ProgramFiles\Activision\Call of Duty 2\main\"

$CoDMP = (@ProgramFilesDir & "\Activision\Call Of Duty 2")

FileCopy("C:\WINDOWS\Patch\1.0\CoDMP.exe", $CoDMP,1)

$CoD2MP_s = (@ProgramFilesDir & "\Activision\Call Of Duty 2")

FileCopy("C:\WINDOWS\Patch\1.0\CoD2MP_s.exe", $CoD2MP_s,1)

$mss32 = (@ProgramFilesDir & "\Activision\Call Of Duty 2")

FileCopy("C:\WINDOWS\Patch\1.0\mss32.dll", $mss32,1)

$gfx_d3d_mp_x86_s = (@ProgramFilesDir & "\Activision\Call Of Duty 2")

FileCopy("C:\WINDOWS\Patch\1.0\gfx_d3d_mp_x86_s.dll", $gfx_d3d_mp_x86_s,1)

$gfx_d3d_x86_s = (@ProgramFilesDir & "\Activision\Call Of Duty 2")

FileCopy("C:\WINDOWS\Patch\1.0\gfx_d3d_x86_s.dll", $gfx_d3d_x86_s,1)

if FileExists($pbags & "pbags.dll") then

FileDelete($Folder1 & "pbags.dll")

Else

endif

if FileExists($pbcl & "pbcl.dll") then

FileDelete($Folder1 & "pbcl.dll")

Else

endif

if FileExists($pbcls & "pbcls.dll") then

FileDelete($Folder1 & "pbcls.dll")

Else

endif

if FileExists($pbsv & "pbsv.dll") then

FileDelete($Folder1 & "pbsv.dll")

Else

endif

if FileExists($lc001203 & "lc001203.htm") then

FileDelete($Folder1 & "lc001203.htm")

Else

endif

if FileExists($mc001203 & "mc001203.htm") then

FileDelete($Folder1 & "mc001203.htm")

Else

endif

if FileExists($wc001203 & "wc001203.htm") then

FileDelete($Folder1 & "wc001203.htm")

Else

endif

if FileExists($ws001105 & "ws001105.htm") then

FileDelete($Folder1 & "ws001105.htm"")

Else

endif

if FileExists($wc001203 & "wc001203.dll") then

FileDelete($Folder1 & "wc001203.dll")

Else

endif

if FileExists($ws001105 & "ws001105.dll") then

FileDelete($Folder1 & "ws001105.dll")

Else

endif

if FileExists($version & "version.inf") then

FileDelete($Folder1 & "version.inf")

Else

endif

if FileExists($cod2patch & "cod2patch.ini") then

FileDelete($Folder1 & "cod2patch.ini")

Else

endif

if FileExists($iw_15 & "iw_15.iwd") then

FileDelete($Folder1 & "iw_15.iwd")

Else

d

endif

if FileExists($localized_english_iw11 & "localized_english_iw11.iwd") then

FileDelete($Folder1 & "localized_english_iw11.iwd")

Else

endif

DirRemove("C\Program Files\Activision|Call of Duty 2\pb")

DirRemove("C\Program Files\Activision|Call of Duty 2\htm")

RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Activision\Call of Duty 2\","Version","REG_SZ", 1.0)

Edited by Erik.

I little problem, hard to find and fix

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...