Jump to content

Converting a .vbs to AutoIT


Recommended Posts

I am trying to convert a script that is automatically made by Autodesk's deployment wizard into an AutoIT script so I can take advantage of the cool features to run some other stuff after the install. When I use Run or RunWait it keeps poping up with a window showing the MSIEXEC command line options.

set shell = CreateObject("WScript.Shell")

shell.run "msiexec /qb- /x " + _

"""{2F26D2C7-D7CA-4A50-B69B-2A0B858CCDC6}""" + " " + _

"/lie+! ""Autodesk Revit Structure 4 Network Deployment.log""",,true

shell.run "msiexec /qb- /i " + _

"""\\slicense\autodesk deployments\Revit 4\Autodesk Revit Structure 4 Network Deployment.msi""" + " " + _

"/lie+! ""Autodesk Revit Structure 4 Network Deployment.log"""

Any suggestions?

Thanks

Steve

Link to comment
Share on other sites

I am trying to convert a script that is automatically made by Autodesk's deployment wizard into an AutoIT script so I can take advantage of the cool features to run some other stuff after the install. When I use Run or RunWait it keeps poping up with a window showing the MSIEXEC command line options.

set shell = CreateObject("WScript.Shell")

shell.run "msiexec /qb- /x " + _

"""{2F26D2C7-D7CA-4A50-B69B-2A0B858CCDC6}""" + " " + _

"/lie+! ""Autodesk Revit Structure 4 Network Deployment.log""",,true

shell.run "msiexec /qb- /i " + _

"""\\slicense\autodesk deployments\Revit 4\Autodesk Revit Structure 4 Network Deployment.msi""" + " " + _

"/lie+! ""Autodesk Revit Structure 4 Network Deployment.log"""

Any suggestions?

Thanks

Steve

Check commands Run, RunWait, ShellExecute,ShellExecuteWait etc

RunWait("msiexec /qb- /x '{2F26D2C7-D7CA-4A50-B69B-2A0B858CCDC6}' etc...")

RunWait("\\slicense\autodesk deployments\Revit 4\Autodesk Revit Structure 4 Network Deployment.msi /qb- /i")

Something like that will do

Edited by MadBoy

My little company: Evotec (PL version: Evotec)

Link to comment
Share on other sites

just a guess...

Local $shell = ObjCreate("WScript.Shell")

$shell.run "msiexec /qb- /x " & _
"""{2F26D2C7-D7CA-4A50-B69B-2A0B858CCDC6}""" & " " & _
"/lie+! ""Autodesk Revit Structure 4 Network Deployment.log""",,true

$shell.run "msiexec /qb- /i " & _
"""\\slicense\autodesk deployments\Revit 4\Autodesk Revit Structure 4 Network Deployment.msi""" & " " & _
"/lie+! ""Autodesk Revit Structure 4 Network Deployment.log"""
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...