Jump to content

No more data available?


dufran3
 Share

Recommended Posts

Running a script, when it runs the below code, I get this. Any ideas?

RunAsSet('username','domain','password',0)
Run('"C:\Temp\SoftwareDist\STARNavigator11.14.msi" /qn /norestart')

Posted Image

from the help file run()

filename - The name of the executable (EXE, BAT, COM, or PIF) to run.

All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

Link to comment
Share on other sites

Arggg....any idea on how I can run this silently while still using the runas? I need to run this command silent with RunAs credentials...any ideas? thx a ton for the prompt responses.

If I use a _RunDOS, the RunAsSet doesn't work with that...and the script hangs...of course waiting for a password from the hidden DOS window...

Edited by dufran3
Link to comment
Share on other sites

does this help?

Windows ® Installer. V 3.01.4000.1823

msiexec /Option <Required Parameter> [Optional Parameter]Install Options

</package | /i> <Product.msi>

Installs or configures a product

/a <Product.msi>

Administrative install - Installs a product on the network

/j<u|m> <Product.msi> [/t <Transform List>] [/g <Language ID>]

Advertises a product - m to all users, u to current user

</uninstall | /x> <Product.msi | ProductCode>

Uninstalls the product

Display Options

/quiet

Quiet mode, no user interaction

/passive

Unattended mode - progress bar only

/q[n|b|r|f]

Sets user interface level

n - No UI

b - Basic UI

r - Reduced UI

f - Full UI (default)

/help

Help information

Restart Options

/norestart

Do not restart after the installation is complete

/promptrestart

Prompts the user for restart if necessary

/forcerestart

Always restart the computer after installation

Logging Options

/l[i|w|e|a|r|u|c|m|o|p|v|x|+|!|*] <LogFile>

i - Status messages

w - Nonfatal warnings

e - All error messages

a - Start up of actions

r - Action-specific records

u - User requests

c - Initial UI parameters

m - Out-of-memory or fatal exit information

o - Out-of-disk-space messages

p - Terminal properties

v - Verbose output

x - Extra debugging information

+ - Append to existing log file

! - Flush each line to the log

* - Log all information, except for v and x options

/log <LogFile>

Equivalent of /l* <LogFile>

Update Options

/update <Update1.msp>[;Update2.msp]

Applies update(s)

/uninstall <PatchCodeGuid>[;Update2.msp] /package <Product.msi | ProductCode>

Remove update(s) for a product

Repair Options

/f[p|e|c|m|s|o|d|a|u|v] <Product.msi | ProductCode>

Repairs a product

p - only if file is missing

o - if file is missing or an older version is installed (default)

e - if file is missing or an equal or older version is installed

d - if file is missing or a different version is installed

c - if file is missing or checksum does not match the calculated value

a - forces all files to be reinstalled

u - all required user-specific registry entries (default)

m - all required computer-specific registry entries (default)

s - all existing shortcuts (default)

v - runs from source and recaches local package

Setting Public Properties

[PROPERTY=PropertyValue]

Consult the Windows ® Installer SDK for additional documentation on the

command line syntax.

Copyright © Microsoft Corporation. All rights reserved.

Portions of this software are based in part on the work of the Independent JPEG Group.

[size="1"][font="Arial"].[u].[/u][/font][/size]

Link to comment
Share on other sites

Not really, I know the msiexec switches, and I know that the switches are correct.

Is there any way to use the RunAsSet and the _RunDOS in conjunction?

Here is the function in the script that is being called. Again, I am trying to run this installed "quietly" with no windows appearing, but need to be able to use the RunAsSet command to RunAs a Domain Admin...Thanks for the help!

_Star11Install()

Func _Star11Install()
$szGUIRegPath = '\\kmnt2\programs\navrelease\GUI Reg'


DirCreate('C:\Temp\SoftwareDist\McKesson\STAR Navigator Setup\1114')
FileCopy('\\fs1\IS stuff\NewPC\Automated Installs\Files\Star\STAR Navigator 11.14.msi','C:\Temp\SoftwareDist\STARNavigator11.14.msi')

RunAsSet('username','domain','password',0)
Run(@ComSpec & ' /c msiexec /i "C:\Temp\SoftwareDist\STARNavigator11.14.msi" /qn /norestart')
;Run('"C:\Temp\SoftwareDist\McKesson\StarNa~1\1114\STARNa~1.msi" /qn /norestart')
;Run('"C:\Temp\SoftwareDist\McKesson\STAR Navigator Setup\1114\STAR Navigator 11.14.msi" /qn /norestart"')
;Run('"C:\Temp\SoftwareDist\McKesson\STAR Navigator Setup\1114\STAR Navigator 11.14.msi" /qn /norestart')
FileCopy(@ProgramsCommonDir & '\STAR Navigator 11\STAR Navigator 11.lnk',@DesktopCommonDir & '\STAR Navigator 11.lnk',1)
DirCopy($szGUIRegPath,'C:\Program Files\GUI Reg',1)
FileCopy('H:\AutoIt\Scripting Project\Star 11 House Wide Update\Files\HBOWEM32.ini',@WindowsDir & '\HBOWEM32.ini')
FileCopy('H:\AutoIt\Scripting Project\Star 11 House Wide Update\Files\hboc32nav1114.ini',@WindowsDir & '\hboc32nav1114.ini')

While Not FileExists('C:\Program Files\McKesson\STAR Navigator 11\HBOC32\MckBoot.exe')
    Sleep(2000)
WEnd

EndFunc
Edited by dufran3
Link to comment
Share on other sites

Not really, I know the msiexec switches, and I know that the switches are correct.

Sorry, I knew that I should not have posted that without finishing my thought - I had to change rooms and NET connections...

What I was going to add to that was - get it working in a CMD window, then worry about AutoIt. Also, look at adding a log file while "debugging".

Again, sorry - did not mean to sound rude - just a bad post on my part.

[size="1"][font="Arial"].[u].[/u][/font][/size]

Link to comment
Share on other sites

No, no biggy man, I knew you were just trying to help. ;)

This command right here, works in cmd

"C:\Temp\SoftwareDist\STARNavigator11.14.msi" /qn /norestart"

There is no window that pops up, it installs the product with no issues.

Link to comment
Share on other sites

Thanks...

Let me show my ignorance of MSI installs and ask why the unbalanced quotes?

For that matter - why the quotes around a path that does not have a space?

I know that they can be there either way and it might be good practice, but 3 ' " '

Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Link to comment
Share on other sites

Maybe this post will help:

http://www.autoitscript.com/forum/index.ph...st&p=107033

It uses msiexec and RunAsSet

Edit: I should say read to the end of the thread starting at that post. Althought you said that you got it to work from the cmd - I assume that means that the OS RunAs worked for you with no errors. Perhaps laying out the code as that xephael did might help any quote problem - I hate those. You are probably better at those than I.

must log off for a bit...

Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Link to comment
Share on other sites

No, no biggy man, I knew you were just trying to help. ;)

This command right here, works in cmd

"C:\Temp\SoftwareDist\STARNavigator11.14.msi" /qn /norestart"

There is no window that pops up, it installs the product with no issues.

here's the way i use runwait to install msi's:

RunWait(@ComSpec & ' /c msiexec /i "' & @WorkingDir & '\flash\install_flash_player_active_x.msi" REBOOT=ReallySuppress /qb!', @WindowsDir)

oÝ÷ Ú:(lr^jÛazËZ®Ùʯzwwø~׫ÈÅ碸­¶(®I¬lj·ºyò­½êìè~k"{v¨º¯y«­¢+Ø)IÕ¸¡
½µMÁµÀìÌä콵ͥὤÅÕ½ÐíèÀäÈíQµÀÀäÈíM½ÑÝÉ¥ÍÐÀäÈíMQI9٥ѽÈÄĸÄйµÍ¤ÅÕ½Ðì½Å¸½¹½ÉÍÑÉÐÌäì¤
Link to comment
Share on other sites

I think that post helps, however now...I know you don't want to hear this, I run this command

RunAsSet('username','domain','password')
$this = 'C:\Windows\System32\msiexec.exe /i "C:\Temp\SoftwareDist\STARNavigator11.14.msi"/qn /norestart'
Run($this)
RunAsSet()

and the script doesn't wait until the installer is finished, it just continues. I used the /passive switch and used the winwait and winwaitclose commands, but I really wanted it to be completely hidden. Anyone have any ideas on this? I would wait for msiexec.exe to close using processexists, but the process doesn't close after the install is finished...

sorry, we cross posted, I need the RunAsSet command so not sure if RunWait will work.

Edited by dufran3
Link to comment
Share on other sites

Maybe...

Run(@ComSpec & ' /c msiexec /i "C:\Temp\SoftwareDist\STARNavigator11.14.msi" /qn /norestart')
oÝ÷ Ûú®¢×ºÚ"µÍ[ÛÛTÜXÈ    [È ][ÝÈØÈÚY^XÈÚHÎÌLÕ[    ÌLÔÛÙØQÝ  ÌLÔÕT]YØ]ÜLKMÚHÜ[ÛÜÝ  ][ÝÊB
# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Link to comment
Share on other sites

Run(@ComSpec & " /c msiexec /i C:\Temp\SoftwareDist\STARNavigator11.14.msi /qn /norestart")
Yeah, that was kind of what I was pointing to here:

...For that matter - why the quotes around a path that does not have a space?...

...but as long as the quotes are balanced, then it should not matter... I think. I don't see (in the rather long "help file" post that I made) a requirement the the path to the msi be in quotes, but assigning all of that stuff to a variable like $this helps in the debug either via ConsoleWrite or MsgBox. Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

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...