StOnge Posted July 7, 2009 Share Posted July 7, 2009 Hi, I wrote a script that installs a program automatically, but I was wondering if it is possible to run the install without the window popping up, either by the install windows remaining hidden or minimized while issuing commands to it. Does @SW_HIDE accomplish this? I've tried a few options, but I'm rather confused by the @SW_HIDE help file. Can anyone clarify for me exactly what @SW_HIDE accomplishes? Here is my script: Run("C:\Documents and Settings\All Users\Templates\SOCO Templates\EXE\setup.exe") Sleep(1200) If WinExists("InsertCompanyAddInSetup", "through the steps") Then WinActivate("InsertCompanyAddInSetup", "through the steps") WinWaitActive("InsertCompanyAddInSetup", "through the steps") Send("!n") WinWaitActive("InsertCompanyAddInSetup", "Select Installation Folder") Send("!n") WinWaitActive("InsertCompanyAddInSetup", "Confirm Installation") Send("!n") WinWaitActive("InsertCompanyAddInSetup", "Installation Complete") WinClose("InsertCompanyAddInSetup", "Installation Complete") WinWaitClose("InsertCompanyAddInSetup", "Installation Complete") Sleep(600) ProcessClose("setup.exe") EndIf As it stands now, the program installs just fine, but it would really be great if I get it to install without any windows popping up. You see, sometimes the user starts clicking around the window and it screws up. I read what I could on the @SW_HIDE command, but am a little confused. Any help would be greatly appreciated. Thanks!, StOnge www.stonge.com Link to comment Share on other sites More sharing options...
Yashied Posted July 7, 2009 Share Posted July 7, 2009 Try setup.exe /silent or something similar. My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
StOnge Posted July 7, 2009 Author Share Posted July 7, 2009 Try setup.exe /silent or something similar.I tried Run("...setup.exe /silent") and it just makes the .exe not execute. If I put the /silent after the quotation marks, it isn't recognized. I also was unable to find anything about /silent in the AutoIt wiki or help file. Would you mind clarifying a little bit?Thanks!,StOnge www.stonge.com Link to comment Share on other sites More sharing options...
Yashied Posted July 7, 2009 Share Posted July 7, 2009 Well, for example, Inno Setup installer supports "/SILENT" or "/VERYSILENT". Check out what key supports your installer. Maybe "/S". My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
StOnge Posted July 7, 2009 Author Share Posted July 7, 2009 No luck on switches for my setup.exe file. Is there any way to accomplish my ends with the @SW_HIDE command? www.stonge.com 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