| View previous topic :: View next topic |
| Author |
Message |
mbell Newbie
Joined: 19 Jun 2002 Posts: 11
|
Posted: Tue Aug 05, 2003 1:32 pm Post subject: VDS 5 vs Simple BAT Program |
|
|
I have a need to automate the uninstall of Adobe Acrobe Reader 5.0 from several computers.
I can include the following command in a simple batch file and it will perform the uninstall silently and successfully. However, I can't get the command to work in a VDS program.
C:\WINNT\ISUNINST.EXE -a -f"C:\Program Files\Common Files\Adobe\Acrobat 5.0\NT\Uninst.isu" -c"C:\Program Files\Common Files\Adobe\Acrobat 5.0\NT\Uninst.dll"
The problem seem to be the space between folder names. However, when I use DIRECTORY CHANGE and run the program from the folder that contains the UNINST files, it still won't work.
As stated, the command works fine when run from a .BAT file. However, I would prefer to have it run using RUNZ to make it transparent to my customers.
Any help will be appreciated. Been using VDS for several years, but have never reached WHIZ status.
Thanks,
Milton Bell
San Antonio, TX |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1564
|
Posted: Tue Aug 05, 2003 2:06 pm Post subject: |
|
|
| Also try to use the @shortname function around the filepath/filename so it uses the short file name without spaces. |
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Tue Aug 05, 2003 3:20 pm Post subject: |
|
|
I would try this:
run @chr(34)@windir()\ISUNINST.EXE@chr(34) -a -f@chr(34)C:\Program Files\Common Files\Adobe\Acrobat 5.0\NT\Uninst.isu@chr(34) -c@chr(34)C:\Program Files\Common Files\Adobe\Acrobat 5.0\NT\Uninst.dll@chr(34)
Or even:
shell open,@chr(34)@windir()\ISUNINST.EXE@chr(34),-a -f@chr(34)C:\Program Files\Common Files\Adobe\Acrobat 5.0\NT\Uninst.isu@chr(34) -c@chr(34)C:\Program Files\Common Files\Adobe\Acrobat 5.0\NT\Uninst.dll@chr(34) |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Tue Aug 05, 2003 3:52 pm Post subject: |
|
|
You can make some more refinements so that it can work even when the System root is not C:\ as below.
| Code: | %C = @SUBSTR(@windir(),1,2)
shell open,@chr(34)@windir()\ISUNINST.EXE@chr(34),-a -f@chr(34)%C\Program Files\Common Files\Adobe\Acrobat 5.0\NT\Uninst.isu@chr(34) -c@chr(34)%C\Program Files\Common Files\Adobe\Acrobat 5.0\NT\Uninst.dll@chr(34) |
BTW uninstalls BOTH Adobe acrobat reader as well as Adobe acrobat. I don't know if this is what you want.
Also I think you should make your customers aware that you are uninstalling acrobat+reader to prevent any blame on you. I had seen a similar script(winbatch) posted as a bad joke
Regards _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
|