ZileXa Posted February 3, 2005 Share Posted February 3, 2005 WOOOWI've been trying to modify a MSI file... so that it would install for all users instead of current user... managed to set "install for everyone" checked as default (radiobutton) instead of "install for current user".But when installing silently... it still installs for current user only...AutoIt would be the solution! (i think..)But I have absolutely no experience with this... going to try..if interested could anyone give me a hand?I am talking about the OggCodecs:http://www.illiminable.com/ogg/these codecs are the most up to date (compared to Tobias oggDS, wich date from 2002) it installs Ogg codecs and Speex/Theora... (with FFDShow, Real&Quicktime Alt. I think you would have a very complete system... without codecpacks).It is a MSI installer: http://www.illiminable.com/ogg/oggcodecs_XP_0.68.8333.zipEDIT:DONE! and it works perfectly... woow this is really great!Now something more serious for wich I really need some help..trying to create a script that runs the Windows Product Activation... it has to activate by internet ofcourse...problem is... I cannot get it to wait for the activation screen to finish loading (takes up a second) and then send the keys..I have this:Run("C:\Activeren.exe")WinWaitActive( "Windows activeren", "ObShellMainPane" )Send("!I")Send("!D")where 'activeren.exe is no more then a .cmd file that starts up the activation window.!I = like ALT+i this selects "activate through internet"!C = continue(I have dutch version... .so its actually ALT+D, but I suppose its ALT+C for english)the problem is the WinWaitActive... but I don't know what else to put there... AutoIT Window Spy doesn't give much more info... Link to comment Share on other sites More sharing options...
syzmix Posted February 7, 2005 Share Posted February 7, 2005 Couldnt Find A silent way of installing FL Studio 5 fully (because of collab) so i made this script (my fisrt ever) and seemed to work perfectly.; --- Start ---Run("FLStudio501_Install.exe /S")WinWaitActive("Collab Setup")Send("{ENTER}")Send("{ENTER}")Send("{ENTER}")Send("{ENTER}")Sleep(1000)Send("{ENTER}")Send("{ENTER}"); --- End ---put this in the same dir as fl studio and run this script (compile it first using auto it) Link to comment Share on other sites More sharing options...
ZileXa Posted February 8, 2005 Author Share Posted February 8, 2005 for installing a program (with AutoIt) from RunOnceEx I use this:REG ADD %KEY%\040 /V 4 /D "autoit3 "%CDDRIVE%InstallApps\InstallSettings\install-autogk.au3"" /fthis works finebut I have to put the installer of the program in C:\programsetup.exe, otherwise it doesnt work..the problem I'm trying to explain is... I can't get the script to run the installer from the CD! this works (in the au3 file):Run("C:\AutoGordianKnot.1.60.Setup.exe")this does not:Run("%CDDRIVE%\AutoGordianKnot.1.60.Setup.exe")How do you run an installer from cddrive? if you want it to be a uniform cd... it must work on all systems also if the cddriveletter is different... for RunOnceEx this is the trick:for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\win51ip.SP2 set CDDRIVE=%%i:\ is there also something like this for AutoIt? Link to comment Share on other sites More sharing options...
MHz Posted February 8, 2005 Share Posted February 8, 2005 What I do, is compile the install scripts, and execute the installers, in the same directory as the compiled script. So Run("%CDDRIVE%\AutoGordianKnot.1.60.Setup.exe") actually would be Run(@ScriptDir & "\AutoGordianknot.1.60.Setup.exe").So basically, RunOnceEx executes your compiled script, then your compiled script executes the installer, which is in the same directory, as the compiled script (@ScriptDir).If you are using a batch RunOncEx. The concept is similar.For your method of uncompiled scripts. It would be best to have Autoit3.exe in the system directory, or the same directory as your scripts. Solution PMed to ZileXa Feb 10 2005.Run(@ScriptDir & "\..\autogk.exe") Link to comment Share on other sites More sharing options...
ZileXa Posted February 9, 2005 Author Share Posted February 9, 2005 ok thanks!I do keep RunOnceEx as batch file... and have autoit3.exe in the system32 folder.now I have used your script like this... would this work?#Region - Setup variablesDim $cddriveFindCD(); <---------------------------------------------- Calls FindCD FunctionDim $installapps = $cddrive & "\installapps"#EndRegion;;; Function below finds CD letter.Func FindCD() Local $drvs, $i $drvs = DriveGetDrive("CDROM") If Not @error Then For $i = 1 To $drvs[0] If DriveStatus($drvs[$i] & "\") = "READY" Then If FileExists($drvs[$i] & "\WIN51") Then $cddrive = $drvs[$i] EndIf EndIf Next EndIfEndFuncRun(@ScriptDir & "\autogk.exe")But this doesn't work:it doesn't even spin the CD... so it isn't searching for the autogk.exe file..and I get this error: Line 23 Run(@ScriptDir & "\autogk.exe")Error: Unable to execute the external programsysten cannot find the file..Like I said.. it isnt even searching my CD.. so perhaps the FindCD function isn't working? Link to comment Share on other sites More sharing options...
Nologic Posted February 9, 2005 Share Posted February 9, 2005 ZileXa -Whats the title of this thread? I don't think its AutoIt Q&A Also the FindCD fuction does work...I have a more advanced version of MHz code used in a RunOnce script of my own.Quickly looking over your code I'd suggest altering the last line to look like so:Run($installapps & "\autogk.exe")If that doesn't solve your problem...then don't post it here in this thread....PM Mhz or my self or some other autoit author or simply post in the normal app forum.Asking questions in this thread would quickly make it useless. Link to comment Share on other sites More sharing options...
ZileXa Posted February 9, 2005 Author Share Posted February 9, 2005 ok i'm sorry, your suggestion didn't work either but I do have some ideas I am going to test now. I will find the other forum and post there or pm if it doesn't work. 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