FATIHTALI Posted May 17, 2008 Share Posted May 17, 2008 this is my code for Office Cominicator 2007. I want to progress bar for this instalation. I couldnt found. maybe I cant use progress bar. Live meetin setup isn't silent. Also I couldnt start .msp file. Msp is like msi file but msiexec is not working with it. Microsoft How can I use Progress bar? Best regards... #include <Process.au3> ; DOS ; if not admin. If Not IsAdmin() Then RunAsSet('USER', 'DOMAIN', 'PASSWORD') ; COMINICATOR RunWait("msiexec /i c:\MS_Office_Communicator_2007\communicator.msi /norestart /q") ; LIVE MEETIN RunWait("c:\MS_Office_Communicator_2007\LiveMeetingSetup.exe") ; LIVE MEETING ADD-IN FOR OUTLOOK Runwait("msiexec /i c:\MS_Office_Communicator_2007\LMAddinPack.msi /norestart /q") ; REGs RunWait("regedit /s c:\MS_Office_Communicator_2007\Local-Machine.reg") RunWait("regedit /s c:\MS_Office_Communicator_2007\ocs_tabs.reg") RunWait("regedit /s c:\MS_Office_Communicator_2007\Current-User-Bursa.reg") ; PATCH $rc = _RunDos("c:\MS_Office_Communicator_2007\Hotfix-KB946164\communicator.msp /quiet /norestart") Sleep(10000) ; COMPLATE MsgBox(4096, "complate", "complate", 4) Exit EndIf Startup Agent It is my small Startup Agent. You can install programs on startup Domain pc without Admin rights. Link to comment Share on other sites More sharing options...
ProgAndy Posted May 17, 2008 Share Posted May 17, 2008 You could use: ProgressOn ProgressSet ProgressOff Like this: CODE#include <Process.au3> ; DOS ; if not admin. If Not IsAdmin() Then RunAsSet('USER', 'DOMAIN', 'PASSWORD') ProgressOn("MS_Office_Communicator_2007 Setup","Installation of MS_Office_Communicator_2007 and Components","Install Core Package") ; COMINICATOR ;~ RunWait("msiexec /i c:\MS_Office_Communicator_2007\communicator.msi /norestart /q") Sleep(Random(1000,5000,1)) ProgressSet(20,"Install LiveMeeting") ; LIVE MEETIN ;~ RunWait("c:\MS_Office_Communicator_2007\LiveMeetingSetup.exe") Sleep(Random(1000,5000,1)) ProgressSet(40,"Install Outlook LM Addin") ; LIVE MEETING ADD-IN FOR OUTLOOK ;~ Runwait("msiexec /i c:\MS_Office_Communicator_2007\LMAddinPack.msi /norestart /q") Sleep(Random(1000,5000,1)) ProgressSet(60,"Install RegKeys") ; REGs ;~ RunWait("regedit /s c:\MS_Office_Communicator_2007\Local-Machine.reg") ;~ RunWait("regedit /s c:\MS_Office_Communicator_2007\ocs_tabs.reg") ;~ RunWait("regedit /s c:\MS_Office_Communicator_2007\Current-User-Bursa.reg") Sleep(Random(1000,5000,1)) ProgressSet(80,"Install Hotfix") ; PATCH ;~ $rc = _RunDos("c:\MS_Office_Communicator_2007\Hotfix-KB946164\communicator.msp /quiet /norestart") Sleep(Random(1000,5000,1)) ProgressSet(100,"Installation complete") Sleep(10000) ; COMPLATE MsgBox(4096, "complate", "complate", 4) Exit EndIf *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
FATIHTALI Posted May 18, 2008 Author Share Posted May 18, 2008 Thank you so much. It is working well. Startup Agent It is my small Startup Agent. You can install programs on startup Domain pc without Admin rights. 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