insomnai Posted November 22, 2011 Share Posted November 22, 2011 (edited) Hi guys, I've been doing some hunting on the tinterweb and have a few bits and pieces on installing itunes silently with switches... The example code which works in the command console works as follows: msiexec.exe /i "itunes.msi" /quiet or msiexec.exe /i "itunes.msi" /passive However I am having difficulty integrating this into the following code: (Note: I do understand that .msi can only run with ShellExecute or ShellExecuteWait) Dim $ScriptDir = StringLeft(@ScriptDir,2) $musvid = $ScriptDir & "Toolsmusic utilities" ShellExecuteWait('msiexec.exe /i " ' & $musvid & 'iTunes64.msi" /quiet') Would you be able to assist? Many thanks insomnai Edited November 22, 2011 by insomnai Link to comment Share on other sites More sharing options...
enaiman Posted November 22, 2011 Share Posted November 22, 2011 ShellExecuteWait('msiexec.exe /i "' & $musvid & '" iTunes64.msi /quiet') I am pretty sure you need $musvid enclosed in quotes since it contains a white space. You can use RunWait instead of ShellExecute. SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now