You are here

Removing Documents and Settings\$user$\myprogram

8 posts / 0 new
Last post
alpha1
alpha1's picture
Offline
Last seen: 9 years 7 months ago
Joined: 2007-07-08 20:02
Removing Documents and Settings\$user$\myprogram

who would you go about removing
Documents and Settings\$user$\avidemux?

could you modify this script?

SetOriginalKeyBack:
		CopyFiles /SILENT "$APPDATA\avidemux\*.*" "$SETTINGSDIRECTORY"
		IfFileExists "$APPDATA\Avidemux-backupbyavidemuxportable" +1 
		Rename "$APPDATA\Avidemux-backupbyavidemuxportable" "$SETTINGSDIRECTORY"
		RMDIR /r "$APPDATA\Avidemux"
		Goto TheEnd

Thanks in Advance,
~Alpha1

digitxp
digitxp's picture
Offline
Last seen: 13 years 3 months ago
Joined: 2007-11-03 18:33
You're using the wrong var

you have to use $%USERPROFILE%

Insert original signature here with Greasemonkey Script.

alpha1
alpha1's picture
Offline
Last seen: 9 years 7 months ago
Joined: 2007-07-08 20:02
So i removed both with

So i removed both with this:

SetOriginalKeyBack:
		CopyFiles /SILENT "$APPDATA\avidemux\*.*" "$SETTINGSDIRECTORY"
		IfFileExists "$APPDATA\Avidemux-backupbyavidemuxportable" +1 
		Rename "$APPDATA\Avidemux-backupbyavidemuxportable" "$SETTINGSDIRECTORY"
		RMDIR /r "$APPDATA\Avidemux"
		RMDIR /r "$%USERPROFILE%\avidemux"
		Goto TheEnd

thanks you so much digitxp Smile you made my day (that's almost sad)

Lead, Follow, or get out of the way.

Nathan9222
Nathan9222's picture
Offline
Last seen: 3 years 2 months ago
Developer
Joined: 2007-12-06 22:35
r u sure

I think the way u put userprofile it wont work, I think it should only be USERPROFILE, without the % and the $,

An eye for an eye makes the whole world blind.
Mahatma Gandhi,
Indian political and spiritual leader (1869 - 1948)

Patrick Patience
Offline
Last seen: 5 years 2 days ago
DeveloperModerator
Joined: 2007-02-20 19:26
Well

I believe %USERPROFILE% is the Windows standard variable, and $PROFILE is what NSIS uses.

powerjuce
powerjuce's picture
Offline
Last seen: 13 years 10 months ago
Developer
Joined: 2007-09-20 21:34
correct...

which is kinda sad Blum

Please search before posting. ~Thanks

digitxp
digitxp's picture
Offline
Last seen: 13 years 3 months ago
Joined: 2007-11-03 18:33
Oh.

Didn't know that...

Insert original signature here with Greasemonkey Script.

LOGAN-Portable
LOGAN-Portable's picture
Offline
Last seen: 11 years 11 months ago
Developer
Joined: 2007-09-11 12:24
Hold on.... What happens if

Hold on....

What happens if you encounter a local pre-existing installed version...

Will that be backed up correct?

Log in or register to post comments