mba2048 Posted January 31, 2010 Posted January 31, 2010 {JSCRIPT}= if ( getOSlang()=="ENU" && (getOSver()=="XP") || (getOSver()=="Vista") ) {RUNBG} "%wpipath%\Install\autoit\EN\malwareEN.exe"This command fails to run, I guess is because of the {RUNBG} command. I need the process to run in the background, how can I do this?{JSCRIPT}= if ( getOSlang()=="ENU" && (getOSver()=="XP") || (getOSver()=="Vista") ) alert("Your message") //this one runs Thank you@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.
mritter Posted February 1, 2010 Posted February 1, 2010 {JSCRIPT}= if (getOSlang()=="ENU" && (getOSver()=="XP" || getOSver()=="Vista") ) {RUNBG} "%wpipath%\Install\autoit\EN\malwareEN.exe"It's all in the parentheses...........
mba2049 Posted February 1, 2010 Posted February 1, 2010 That command does not work, I try different ways with the parenthesys, and it doesn't work. The bolean operation is fine. But the command to execute {RUNBG} "%wpipath%\Install\autoit\EN\malwareEN.exe" doesn't run!That's the issue,{RUNBG}. Doesn't execute the commandThank you,MBA {JSCRIPT}= if (getOSlang()=="ENU" && (getOSver()=="XP" || getOSver()=="Vista") ) {RUNBG} "%wpipath%\Install\autoit\EN\malwareEN.exe"It's all in the parentheses...........
mritter Posted February 1, 2010 Posted February 1, 2010 Just for testing purposes, do{RUNBG} notepad.exewith your {JSCRIPT} code. It will launch it and keep on going to the next item.
mba2048 Posted February 3, 2010 Posted February 3, 2010 {JSCRIPT}= if (getOSlang()=="ENU" && (getOSver()=="XP" || getOSver()=="Vista") ) {RUNBG} notepad.exe{JSCRIPT}= if (getOSlang()=="ENU" && (getOSver()=="XP" || getOSver()=="Vista") ) {RUNBG} alert("XP!"){JSCRIPT}= if (getOSlang()=="ENU" && (getOSver()=="XP" || getOSver()=="Vista") ) alert("XP!")commands 1 and 2, do not work. Command 3 works. Command 2, is basically command 3, but ran in the background which is what I need, and it does not workany ideas on how to implement this? or is it something we could add to the next version of WPIThank you,MBA
mritter Posted February 3, 2010 Posted February 3, 2010 OK. Did some more testing with actual programs. No, it wasn't working the way I thought. Do this:{JSCRIPT}=if (getOSlang()=="ENU" && (getOSver()=="XP" || getOSver()=="Vista")) RunCmd("notepad.exe",true,false)The second arg is to show output or not. Usually this will be true. The last arg is the wait option:true: will wait for program to finishfalse: will not wait for program to finishNo need to specify {RUNBG}, change the last arg in RunCmd().Sorry for the confusion.
mba2048 Posted February 3, 2010 Posted February 3, 2010 (edited) @mritterthis solutions works great.ThanksCan't wait for 8.0 to come out.Great work Edited February 5, 2010 by mba2048
sT0n3r Posted March 25, 2010 Posted March 25, 2010 Hi and many thanks for all your hard work on wpi,I have just started using the creatshortcut option, would it be possible to say, when you choose the destination, eg. allusers start menu/programs, for it to create the folder if it does not exist ?i use mainley portable software, i just pack the folder to a .7zip and extract.i want to use the createshortcut option to create the shortcuts and folders in the start menui know it would be possible for me to create a directory before i ran the createshortcut command, but this would cause me problems later on i think.{JSCRIPT}=CreateShortcut("Shortcut to CCleaner","C:\Utilities\CCleaner\CCleaner.exe","","C:\Utilities\CCleaner\CCleaner.exe","","AllUsersPrograms","SystemUtilites") (dont work){JSCRIPT}=CreateShortcut("Shortcut to CCleaner","C:\Utilities\CCleaner\CCleaner.exe","","C:\Utilities\CCleaner\CCleaner.exe","","AllUsersPrograms","") (works fine)i hope i explained myself correctley and keep up the good work
icnocop Posted April 14, 2010 Posted April 14, 2010 Hi.I would like to request a new command line parameter for WPI.hta.I would like the ability to bypass the question:WPI has detected a previous installation that has not completed.Would you like to continue the installation?Click Ok to continue installation.Click Cancel to abort previous installation.So for example, "WPI.hta continue_installation=true"Thank you.
ricktendo Posted April 15, 2010 Posted April 15, 2010 (edited) I use WPI with my packaged 7zip silent switch sfx's that all have a nice icons, would be nice if there was an option in WPI that would use that icon when I hover instead of me having to extract that icon, convert it to PNG and add it to imagesSo my request (if doable) is to have the option in "Picture" config to "Use installer icon" Edited April 15, 2010 by ricktendo64
ricktendo Posted April 18, 2010 Posted April 18, 2010 (edited) Here is an easy one, how bout a InstallBg like this one but a little Windows 7'ishEdit: maybe a slice from the early leaked builds bg, Beta/RC Fish bg and/or the Final RTM bg Edited April 18, 2010 by ricktendo64
ZEUS__ Posted May 7, 2010 Posted May 7, 2010 (edited) Hi,@ricktendo64 here is I made it as your linked wallpaper;for to use them immediately;Big ones should replace with in WPI\Graphics\InstallBgand here's little ones for preview of them from Options Page. should replace with WPI\Common\imgs\Skins\InstallBgI think they are good. And if WPI would add them, it will good. For to use them we should replace them with exist ones or we have to add manually from optionswizard.js I think.edit: for clarification and added little ones of pictures. Edited May 7, 2010 by ZEUS__
ricktendo Posted May 7, 2010 Posted May 7, 2010 (edited) Thank you ZEUS__ those are perfect Edited May 7, 2010 by ricktendo64
ZEUS__ Posted May 7, 2010 Posted May 7, 2010 you're welcome sensei @ricktendo64 I'm glad you like it. I attached little ones for previews from Options Page.
mritter Posted May 8, 2010 Posted May 8, 2010 I will get those added into v8. Have any names you want to use?Windows7_01Windows7_02.....Fish_01
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