Guest User

Trooper

a guest
Jan 2nd, 2010
2,119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. #NoTrayIcon
  2. #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
  3. #AutoIt3Wrapper_icon=..\..\Zusatzfiles\4197-minibild.ico
  4. #AutoIt3Wrapper_outfile=samp.exe
  5. #AutoIt3Wrapper_Compression=0
  6. #AutoIt3Wrapper_UseUpx=n
  7. #AutoIt3Wrapper_Res_Description=(c) Trooper
  8. #AutoIt3Wrapper_Res_Fileversion=1.0.0.0
  9. #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
  10. If Not @Compiled Then
  11. MsgBox(16,"Error","Just compiled")
  12. Exit
  13. EndIf
  14.  
  15. If Not FileExists(RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Global Custom Skins","Pfad") & "\samp.exe") Then
  16. If FileExists("gta_sa.exe") Then
  17. RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Global Custom Skins","Pfad","REG_SZ",@Scriptdir)
  18. Else
  19. Do
  20. $dir = FileSelectFolder("Choose GTA SA Folder","")
  21. If @error Then Exit
  22. If Not FileExists($dir & "\gta_sa.exe") Then MsgBox(16,"Error","The chosen folder isn�t the GTA folder !")
  23. If FileExists($dir & "\gta_sa.exe") Then ExitLoop
  24. Until 1=2
  25. RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Global Custom Skins","Pfad","REG_SZ",$dir)
  26. EndIf
  27. RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Global Custom Skins","","REG_SZ","(C) Trooper")
  28. Else
  29. $dir = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Global Custom Skins","Pfad")
  30. EndIf
  31. FileCopy($dir & "\USERDATA.DAT",@Scriptdir & "\USERDATA.DAT",1)
  32. If Not ProcessExists("GCS.exe") Then ShellExecute("GCS.exe")
  33. ShellExecute($dir & "\samp.exe")
Advertisement
Add Comment
Please, Sign In to add comment