eagle00789 Posted August 7, 2004 Share Posted August 7, 2004 I want to automaticly install textbridge pro 11, but it requires a serial number. how can i enter is using a command line switch in an unattended install Link to comment Share on other sites More sharing options...
eagle00789 Posted August 8, 2004 Author Share Posted August 8, 2004 Wel, i found the solution. i use the below .js-script filefunction getWin(win, inc){var cntr = 0;while (!WshShell.AppActivate(win)){if (cntr==12) return true;cntr++;WScript.Sleep(inc);}return true;}var WshShell = new ActiveXObject("WScript.Shell");WshShell.Run("%systemdrive%\\install\\Applications\\TextBridgePro11\\setup.exe");{WScript.Sleep(10000);//time needed by installer to extract its filesgetWin("TextBridge Pro 11.0 - InstallShield Wizard", 500);//name of setup screen and time to hold itWshShell.SendKeys ("{ENTER}");//hitting Next buttonWScript.Sleep(250);//Wait until NextWshShell.SendKeys ("{UP}");//Accept LicenseWScript.Sleep(250);//Wait until NextWshShell.SendKeys ("{ENTER}");//hitting Next buttonWScript.Sleep(250);//Wait until NextWshShell.SendKeys ("{TAB}");//Next FieldWScript.Sleep(250);//Wait until NextWshShell.SendKeys ("{TAB}");//Next FieldWScript.Sleep(250);//Wait until NextWshShell.SendKeys ("XXXXXXXXXXXXXX");//Enter Serial without the - in between, but just like: 12345678901234WScript.Sleep(250);//Wait until NextWshShell.SendKeys ("{ENTER}");//hitting Next buttonWScript.Sleep(250);//Wait until NextWshShell.SendKeys ("{ENTER}");//hitting Next buttonWScript.Sleep(250);//Wait until NextWshShell.SendKeys ("{ENTER}");//hitting Install buttonWScript.Sleep(25000);//Wait until NextWshShell.SendKeys ("{ESC}");//No registrationWScript.Sleep(250);//Wait until NextWshShell.SendKeys ("{ENTER}");//hitting Finish button} Link to comment Share on other sites More sharing options...
mazin Posted August 8, 2004 Share Posted August 8, 2004 Good usage of JScript scripts. Still, you can enhance your JS.Instead of this:function getWin(win, inc){var cntr = 0;while (!WshShell.AppActivate(win)){if (cntr==12) return true;cntr++;WScript.Sleep(inc);}return true;}var WshShell = new ActiveXObject("WScript.Shell");WshShell.Run("%systemdrive%\\install\\Applications\\TextBridgePro11\\setup.exe");{WScript.Sleep(10000);//time needed by installer to extract its filesgetWin("TextBridge Pro 11.0 - InstallShield Wizard", 500);//name of setup screen and time to hold itYou can use this:var WshShell = WScript.CreateObject("WScript.Shell");WshShell.Run("%systemdrive%\\install\\Applications\\TextBridgePro11\\setup.exe");WScript.Sleep(10000);//time needed by installer to extract its filesWshShell.AppActivate("TextBridge Pro 11.0 - InstallShield Wizard");//name of setup screenWScript.Sleep(500);//time to hold setup screen Link to comment Share on other sites More sharing options...
eagle00789 Posted August 8, 2004 Author Share Posted August 8, 2004 Thanks for that tip mazin. it works like a charm 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