Sign in to follow this  
Followers 0
mcgill

silent install of programm

3 posts in this topic

Hey all,

I am creating an silent install script and I have looked at the forum for some pieces of code but there isn't much on silent install. Looking at this line where the install happens I need to know what these mean /Q:A /R:N on the runwait command. I have tested this script and it is erroring out because of these commands. If anyone can help me, that would be great

#include "GUIConstants.au3"

AutoItSetOption("RunErrorsFatal", 0)

AutoItSetOption("TrayIconHide", 1)

Break(0)

$USERNAME = "administrator"

$PASSWORD = "secret"

$DOMAIN = @LogonDomain ;"domain.com"

$RUN = 0 ; run indicator

; retrieve the cycle from commandline

If $CMDLINE[0] = 1 Then $RUN = $CMDLINE[1]

If $RUN = 0 Then

RunAsSet($USERNAME, $DOMAIN, $PASSWORD)

Run('"' & @ScriptFullPath & '" " 1"')

If @error Then MsgBox(4096+32,"Error", "Error starting under admin mode")

Exit

EndIf

; commands go here that require Administrator rights

RunWait('\\Smsprd002\dsl$\software\Siebel STAR\STEP 1 - Install siebel99.5.39.exe /\\Smsprd002\dsl$\software\Siebel STAR\STEP 1 - Install siebel99.5.39.exe /DisallowSystemRestore /Q:A /R:N"')

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

/Q:A /R:N -> These are parameters for automatic windows update feature.

/Q:A = Quiet Admin mode

/R:N = No Reboot

EDIT:

I would try

RunWait('"\\Smsprd002\dsl$\software\Siebel STAR\STEP 1 - Install siebel99.5.39.exe /\\Smsprd002\dsl$\software\Siebel STAR\STEP 1 - Install siebel99.5.39.exe /DisallowSystemRestore /Q:A /R:N"')
Edited by Briegel

Share this post


Link to post
Share on other sites

I ran the code with this update and it didn't work:

RunWait('"\\Smsprd002\dsl$\software\Siebel STAR\STEP 1 - Install siebel99.5.39.exe /\\Smsprd002\dsl$\software\Siebel STAR\STEP 1 - Install siebel99.5.39.exe /DisallowSystemRestore /Q:A /R:N"')

With the original code the install starts and gets to 99%.

I am receiving an error

WinExec Failed:return=0

It is crapping out with the installshield

Any reason why?

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