Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Simple Question

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,47442
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Simple Question
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Simple Question - 5/23/2007 1:33:55 AM   
  oneofdwags

 

Posts: 5
Score: 0
Joined: 5/21/2007
Status: offline
I am new to HTA and Vbscript. 
I am trying to peice together some code that will perform an uninstall.  I am using code that will go into the uninstall of the reg and pull out the uninstallstring.  The problem is that I want this to be a silent thing.  When it pulls the string, it has "msiexec.exe /i" and I want it to be "msiexec.exe /x".  I am attempting to change this portion of the string using:

Right(variablel,len(variable)-10)

The strUninstall =  msiexec.exe /i{00000000000000000000} before I start.  How can I change the /i to an /x?

Good thing about easy questions, they are easy to answer. 

Thanks  ~WAG
 
 
Post #: 1
 
 RE: Simple Question - 5/23/2007 1:46:34 AM   
  ebgreen


Posts: 5250
Score: 31
Joined: 7/12/2005
Status: offline
strUninstall = Replace(strUninstall, "/i", "/x")

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to oneofdwags)
 
 
Post #: 2
 
 RE: Simple Question - 5/23/2007 1:47:33 AM   
  Rischip


Posts: 510
Score: 2
Joined: 3/26/2007
Status: offline
strUninstall = (Replace(strUninstall,"/i","/x"))

Give that a try.

_____________________________

Rischip
Author of - The Grim Linker

(in reply to oneofdwags)
 
 
Post #: 3
 
 RE: Simple Question - 5/23/2007 1:56:23 AM   
  ebgreen


Posts: 5250
Score: 31
Joined: 7/12/2005
Status: offline
Slow poke! 

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to Rischip)
 
 
Post #: 4
 
 RE: Simple Question - 5/23/2007 1:59:22 AM   
  mcds99


Posts: 441
Score: 4
Joined: 2/28/2006
Status: offline
LOLROF!

_____________________________

Sam

Keep it Simple Make it Fun KiSMiF

(in reply to ebgreen)
 
 
Post #: 5
 
 RE: Simple Question - 5/23/2007 2:34:45 AM   
  Rischip


Posts: 510
Score: 2
Joined: 3/26/2007
Status: offline
ebgreen: If you're as good as your number of posts suggest. I'm ready for all the help you can provide. Click the link and check out the project.

< Message edited by Rischip -- 5/23/2007 2:35:49 AM >


_____________________________

Rischip
Author of - The Grim Linker

(in reply to mcds99)
 
 
Post #: 6
 
 RE: Simple Question - 5/23/2007 2:44:13 AM   
  ebgreen


Posts: 5250
Score: 31
Joined: 7/12/2005
Status: offline
I'm happy to help here with specific problems, but I would not feel comfortable committing to a project as a whole just because of other time committments that I have.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to Rischip)
 
 
Post #: 7
 
 RE: Simple Question - 5/23/2007 3:05:11 AM   
  Rischip


Posts: 510
Score: 2
Joined: 3/26/2007
Status: offline
No commitment required or requested. Just check it out and see if you'd like to help as time allows.


_____________________________

Rischip
Author of - The Grim Linker

(in reply to ebgreen)
 
 
Post #: 8
 
 RE: Simple Question - 6/1/2007 3:29:57 AM   
  oneofdwags

 

Posts: 5
Score: 0
Joined: 5/21/2007
Status: offline
Thanks for the info.  I got it figured out.  ~WAG

(in reply to Rischip)
 
 
Post #: 9
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Simple Question Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts