Sign in to follow this  
Followers 0
Kyme

DirRemove

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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

Share this post


Link to post
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
Sign in to follow this  
Followers 0