Sign in to follow this  
Followers 0
insomnai

working with itunes.msi & msiexec with switches

2 posts in this topic

#1 ·  Posted (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 by insomnai

Share this post


Link to post
Share on other sites



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 :)

Share this post


Link to post
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
Sign in to follow this  
Followers 0