Sign in to follow this  
Followers 0
nathancook

Uninstall Briefcase

2 posts in this topic

Hi,

I have created a script that creates a Briefcase folder in the user application data. Here's the code for the creation of the Briefcase.

;Create environment variable
$sPath = @AppDataDir & "\My Briefcase"

;Create the Briefcase in the users Application Data folder
RunWait("rundll32.exe " & @SystemDir & "\syncui.dll,Briefcase_Create 262442 " & $sPath, @SystemDir)

The bit that is doing the actual work is the syncuui.dll and the Briefcase_Create, I'd like to be able to reverse out this process automatically.

I have tried the following.

;Create environment variable
$sPath = @AppDataDir & "\My Briefcase"

;Create the Briefcase in the users Application Data folder
RunWait("rundll32.exe " & @SystemDir & "\syncui.dll,DeleteBriefcase 262442 " & $sPath, @SystemDir)

and

;Create environment variable
$sPath = @AppDataDir & "\My Briefcase"

;Create the Briefcase in the users Application Data folder
RunWait("rundll32.exe " & @SystemDir & "\syncui.dll,DeleteBriefcase" & $sPath, @SystemDir)

If the 262442 is there it returns an error, which is understandable. If I remove the 262442 and run the compiled exe it returns no error but the My Briefcase folder is still there.

Can someone help me with the meaning of the numbers and if they know of a way to remove the Briefcase?

Thanks

Nathan

Share this post


Link to post
Share on other sites



Thanks for the tip, works well :graduated:

I'm using Win XP SP3.

Cheers

Nathan

What OS are you using? I'm on Windows XP Pro SP3 and syncui.dll doesn't have a function called "DeleteBriefcase".

Regardless, a Briefcase is just a folder with a couple files inside that give it unique properties, so it can be deleted with a couple of AutoIt commands.

This is the code I used to make the Briefcase.

Local $sPath = @ScriptDir & "\My Briefcase"
RunWait("rundll32.exe syncui.dll,Briefcase_Create 262442 " & $sPath)
This is the code I used to delete it.

Local $sPath = @ScriptDir & "\My Briefcase"
FileSetAttrib($sPath, "-R") ; Remove the Read-only flag from the Briefcase
DirRemove($sPath, 1) ; Delete the Briefcase and everything inside it.

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