Jump to content

How to install MSI installer with switch


marsL
 Share

Recommended Posts

How I can install example.msi with example.xml ?

I tried a following command, but there is a problem with quotes

Run("msiexec.exe /i example.msi /qb /norestart AdminCFG=example.xml")

but the result is

msiexec.exe /i example.msi /qb /norestart AdminCFG=example.xml

It should be:

msiexec.exe /i "example.msi" /qb /norestart AdminCFG="example.xml"

P.S.

Ups, I think I found right way :)

Run("msiexec.exe /i ""example.msi"" /qb /norestart AdminCFG=""example.xml""")
Edited by marsL
Link to comment
Share on other sites

Hi,

a) double them ""

:) '" one ' and then " to surround the whole stuff

c) try using shellexecute

Mega

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

OK, thanks, but what should be a command to create shortcut with switch?

This

FileCreateShortcut(@ProgramFilesDir&"\Nero\Nero Burning ROM\nero.exe /w",@DesktopDir&"\Nero Express.lnk",@ProgramFilesDir&"\Nero\Nero Burning ROM","","Nero Express",@ProgramFilesDir&"\Nero\Nero Burning ROM\nero.exe","","1",@SW_MINIMIZE)

... create shortcut with wrong switch :)

once againt, it should be:

"C:\Program Files\Nero\Nero Burning ROM\nero.exe" /w
Edited by marsL
Link to comment
Share on other sites

Try

FileCreateShortcut('"' & @ProgramFilesDir& '\Nero\Nero Burning ROM\nero.exe" /w',@DesktopDir&"\Nero Express.lnk",@ProgramFilesDir&"\Nero\Nero Burning ROM","","Nero Express",@ProgramFilesDir&"\Nero\Nero Burning ROM\nero.exe","","1",@SW_MINIMIZE)

Adam

Link to comment
Share on other sites

Sorry about that, didn't look at it close enough. You need the to put the /w in the args parameter.

Try this:

FileCreateShortcut(@ProgramFilesDir & "\Nero\Nero Burning ROM\nero.exe", @DesktopDir & "\Nero Express.lnk", @ProgramFilesDir & "\Nero\Nero Burning ROM", "/w", "Nero Express", @ProgramFilesDir & "\Nero\Nero Burning ROM\nero.exe", "", "1", @SW_MINIMIZE)

Adam

Edit: typos

Edited by AdamUL
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...