icnocop Posted December 10, 2009 Share Posted December 10, 2009 Hi again,I would like to request two new global options in wpi:1. optionally stop running the rest of the commands if a failure was encountered(ex. "1")2. optionally execute the following command if a failure was encountered(ex. "cmd /c c:\some\path\to\exe parameter1 parameter2")Thank you very much. Link to comment Share on other sites More sharing options...
djackson Posted December 11, 2009 Share Posted December 11, 2009 Hi,Could the CreateSthortcut JSCRIPT be modified to allow placing of shortcuts within a folder on the desktop?I tend to copy software that needs manual installation to %SYSTEMDRIVE%\Software and create .lnk files to them and place the .lnk files in "%ALLUSERSPROFILE%\Desktop\Manual Install". The current JSCRIPT only places the shortcuts in "%ALLUSERSPROFILE%\Desktop"As a work around I'm moving the shortcuts.Best Holiday Season Wishes!Dave...no need to worry about my prior request about a CHANGEDIR command, I've worked my way around this, and now know what I should have been doing! Link to comment Share on other sites More sharing options...
icnocop Posted December 17, 2009 Share Posted December 17, 2009 Hi.I would like to request a new feature.I have a program that returns an exit code of 3010 to indicate a reboot is required.I would like wpi to automatically reboot the system and then re-run the same command until the exit code is 0, and then continue on to the next command.In this way, I can re-use the same command as it may behave differently on each machine I run wpi on.Thank you. Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted December 17, 2009 Author Share Posted December 17, 2009 Reboots are no real issue.The problem is this:How are we to know what the heck the exit code is every time and then tell WPI that information? Link to comment Share on other sites More sharing options...
icnocop Posted December 17, 2009 Share Posted December 17, 2009 the wpi log file indicates the exit code of each command, so i don't see that as an issue.i would imagine two additional program settings:return_code_reboot[pn]=['3010'];rerun_on_reboot_return_code[pn]=['yes']; Link to comment Share on other sites More sharing options...
mba2049 Posted January 22, 2010 Share Posted January 22, 2010 Hello, this is mba2048. I have a great idea.Let's say we are installing a Program, that uses different AutoIT for different Operating Systems, and x32 and x64.Can you add a way to execute different commands for the program depending on the operating system or architecture?For example:Norton Ghost, etcCommand1: setup.exe /sCommand2: if windows vista autoitvista.execommand3: if windows xp autoitxp.exeBasiclly, to execute a command only if the condition is met.Otherwise, you have to create another item in the menu for each program, and create a dependency for each operating system.Thank you,MBA Link to comment Share on other sites More sharing options...
icnocop Posted January 22, 2010 Share Posted January 22, 2010 @mba2049, read chapter 5 in the manual.It explains getArch() and getOSver() Link to comment Share on other sites More sharing options...
mba2049 Posted January 23, 2010 Share Posted January 23, 2010 Yes, I did read the entire Manual.Let me explain better.Instead of having 6 Different Internet Explorer 8 Program installations ( each, with a condition that must be met according with getArch() and getOSver(), etc)Add a way to have only 1, program installationand 6 different commands, and the command will execute only if the condition is met. This way you have only 1 program, and multiple ways of installation.New Feature Request: A way for a command to be executed if it meets a conditionExampleInternet Explorer 8Condition getOSver() == "XP" Run: msiexec.exe /i "%wpipath%\Install\required\IE8\IE8-Setup-Full XP EN.msi" /qbCondition getOSver() == "Vista" Run: msiexec.exe /i "%wpipath%\Install\required\IE8\IE8-Setup-Vista.msi" /qbCondition getOSver() == "Win7" Run: msiexec.exe /i "%wpipath%\Install\required\IE8\IE8-Setup-Win7.msi" /qbetc,Only one command would execute because only 1 would meet a condition, and there is only 1 program for Internet Explorer with multiple commands, instead of multiple programs with a single command Link to comment Share on other sites More sharing options...
sirmor_xp Posted January 23, 2010 Share Posted January 23, 2010 i m new user. plz how can i add shortcut in program menu Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted January 23, 2010 Author Share Posted January 23, 2010 @ sirmor = Its already there. Under the commands tab pick the following:jscript={createshortcut} a small wizard will popup giving you many, many options to make shortcuts. Link to comment Share on other sites More sharing options...
mritter Posted January 23, 2010 Share Posted January 23, 2010 @mba2049:I never thought of it that way. I did some quick tests and it can be done:{JSCRIPT}=if (getOSver()=="XP") msiexec.exe /i "%wpipath%\Install\required\IE8\IE8-Setup-Full XP EN.msi" /qb{JSCRIPT}=if (getOSver()=="Win7") msiexec.exe /i "%wpipath%\Install\required\IE8\IE8-Setup-Win7.msi" /qbYou may have to do some tweaking with the quotes. All I did for a test was:{JSCRIPT}=if (getOSver()=="XP") alert("XP!")You can call any JavaScript or WPI functions with {JSCRIPT}. Be careful with it. Link to comment Share on other sites More sharing options...
mba2049 Posted January 23, 2010 Share Posted January 23, 2010 @mritter Thanks, this looks like an interesting solution to that idea. Thanks, your sample works well, I will continue to develop from there. Link to comment Share on other sites More sharing options...
sirmor_xp Posted January 24, 2010 Share Posted January 24, 2010 Tnx Kelsenellenelvian, i will try. Link to comment Share on other sites More sharing options...
sirmor_xp Posted January 25, 2010 Share Posted January 25, 2010 Hay i m back I want littel more help 4m u. [1.] i want move Shortcut link of C:\Documents and Settings\All Users\Start Menu\Programs\CCleaner\CCleaner.lnk toC:\Documents and Settings\All Users\Start Menu\Programs\_ System\_ Tweaking & Tuning\CCleaner.lnkdelete folder C:\Documents and Settings\All Users\Start Menu\Programs\CCleanerin install list have many programm. so i dont want batch file for each.[2.] I want Sub Category in WPI. Wat i Do. If u can with example it will better understand. (PLZ) Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted January 31, 2010 Author Share Posted January 31, 2010 (edited) OK I will try to sludge through this one as simply as possible:For the first one you will have to {DELETE} the .lnk file, Then you will have to use the shortcut jscript to make a new one.{DELETE} "%allusersprofile%\Start Menu\Programs\CCleaner\CCleaner.lnk"{JSCRIPT}=CreateShortcut("ccleaner","%programfiles%\CCleaner\CCleaner.exe","","%programfiles"\CCleaner\CCleaner.exe","","Programs","_ System\_ Tweaking & Tuning")THEN you will use a {deldir} to clean up the old locations...{DELDIR} "%allusersprofile%\Start Menu\Programs\CCleaner"YES, You will have to do this for each entry #2?? Been on mritters desk for awhile now. We ALL want it but some of the logistics are kinda nasty. So it will come in a future version.When? I cannot say but a donation to mritter may help his, ummmmm energy level... Edited January 31, 2010 by Kelsenellenelvian Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now