Jump to content
Sign in to follow this  
Nerd1337

need some advice about registry uninstallstring

Recommended Posts

I am having problems running a script that I wrote. Mainly I am trying to uninstall AVG 7 with my script so that there is no user interaction. However, I am not sure how to run the uninstallstring if the path that the uninstall program is anything other than C:. When I try the following, it works perfectly fine.

Run ("C:\Program Files\Grisoft\AVG Free\setup.exe /UNINSTALL")

However, if I run the following, I get an error about how it can not execute the external program and I have to kill my script.

Run ("%SYSTEMDRIVE%\Program Files\Grisoft\AVG Free\setup.exe /UNINSTALL")

If you have any advice or any ideas pleace let me know. Also, I see that there were marco references, but I am unsure of how to use them, or even if they would help me in this area. If I could either get examples to these, or be directed to some, I would greatly appreciate it. Thanks a bunch!

:(

Share this post


Link to post
Share on other sites

Run ("%SYSTEMDRIVE%\Program Files\Grisoft\AVG Free\setup.exe /UNINSTALL")

%SYSTEMDRIVE% is not expanded. Use this:

$systemdrive = Stringleft(@Systemdir,2)
Run ($systemdrive & "\Program Files\Grisoft\AVG Free\setup.exe /UNINSTALL")

Cheers

Kurt

Edited by /dev/null

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...