Jump to content

Help Needed With A Script


Recommended Posts

Simple:

Once you have the INI file ready, use this code:

$Progdir = IniRead("C:\settings.ini","GlobalSettings","Progdir", 1)
$Uninstallexe = IniRead("C:\settings.ini","GlobalSettings","Uninstallexe", 1)
$Switch = IniRead("C:\settings.ini","Switches","Switch", 1)

$i = 0
while 1
   $i = $i + 1
   $GameName = IniRead("C:\settings.ini","GameNames","GameName"&$i, "-=NOT_EXIST=-")
   If $GameName = "-=NOT_EXIST=-" Then ExitLoop
   $Uninstaller = $Progdir & $GameName & "\" & $Uninstallexe
   $UninstallerFinal = $Uninstaller & " " & $Switch
   If FileExists($Uninstaller) Then
      RunWait($UninstallerFinal) 
   EndIf
WEnd

That should work (not tested)

#)

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...