December 10, 200916 yr 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.
December 11, 200916 yr 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!
December 17, 200916 yr 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.
December 17, 200916 yr Author 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?
December 17, 200916 yr 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'];
January 22, 201016 yr 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
January 23, 201016 yr 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
January 23, 201016 yr Author @ 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.
January 23, 201016 yr @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.
January 23, 201016 yr @mritter Thanks, this looks like an interesting solution to that idea. Thanks, your sample works well, I will continue to develop from there.
January 25, 201016 yr 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)
January 31, 201016 yr Author 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, 201016 yr by Kelsenellenelvian
Create an account or sign in to comment