forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


VDS 5 vs Simple BAT Program

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
mbell
Newbie


Joined: 19 Jun 2002
Posts: 11

PostPosted: Tue Aug 05, 2003 1:32 pm    Post subject: VDS 5 vs Simple BAT Program Reply with quote

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. Wink

Thanks,



Milton Bell
San Antonio, TX
Back to top
View user's profile Send private message Send e-mail
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Aug 05, 2003 1:58 pm    Post subject: Reply with quote

I think the problem is in the double-quotes (") you use. Because VDS uses them to read exact data (like @s), you can't use them like that. Try replacing them by @chr(34)...
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1564

PostPosted: Tue Aug 05, 2003 2:06 pm    Post subject: Reply with quote

Also try to use the @shortname function around the filepath/filename so it uses the short file name without spaces.
Back to top
View user's profile Send private message
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Tue Aug 05, 2003 3:20 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Tue Aug 05, 2003 3:52 pm    Post subject: Reply with quote

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 Shocked
Regards

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group