Jump to content

DirRemove


Recommended Posts

i want to make uninstaler for my script and i didn't know how to delete the @ScriptDir

i have use:

DirRemove(@ScriptDir & "\*.*" ,1)
DirRemove(@ScriptDir,1)

but...how to delete the @ScriptDir cuz my script didn't delete it:|

tnx

Link to comment
Share on other sites

  • Developers

i want to make uninstaler for my script and i didn't know how to delete the @ScriptDir

i have use:

DirRemove(@ScriptDir & "\*.*" ,1)
DirRemove(@ScriptDir,1)

but...how to delete the @ScriptDir cuz my script didn't delete it:|

tnx

Doubt this will work since your script is in-use at the time you try to delete its directory.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

i made it^^

but the skript have 2 parts^^

First part...named "Uninstall.exe"

IniWrite(@tempdir & "\data.dll","Data","Directory",@Scriptdir)
FileCopy(@Scriptdir & "\data.dat", @tempdir & "\Uninstall.exe")
run(@tempdir & "\Uninstall.exe")

Secound part named "data.dll"

sleep(2500)
$dir=Iniread(@tempdir & "\data.dll","Data","Directory","")
DirRemove($dir,1)
;~ MsgBox(0,"",$dir)
MsgBox(0,"Succes","Uninstall Complete...")

I think this will give some ideeas in future^^

cya all

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