Francesco Posted July 29, 2009 Posted July 29, 2009 (edited) Can you please make the music player stop playing when the install ends? The music covers the WPI Closes sound.Also, are you sure you don't need a WPI launcher that runs it as administrator and selects the correct MSHTA 32/64bit version? That could be quite useful. Edited July 29, 2009 by Francesco
Kelsenellenelvian Posted July 29, 2009 Author Posted July 29, 2009 As long as it's NOT coded in auto-it that would be EXTREMLY usefull.
mritter Posted July 30, 2009 Posted July 30, 2009 Like I said before: if you specify the entire path to mshta it will use the 32/64 bit version accordingly.start "" /wait "%windir%\system32\mshta.exe" "%wpipath%\WPI\WPI.hta"
Francesco Posted July 31, 2009 Posted July 31, 2009 (edited) Like I said before: if you specify the entire path to mshta it will use the 32/64 bit version accordingly.start "" /wait "%windir%\system32\mshta.exe" "%wpipath%\WPI\WPI.hta"Yes, I know, but having to use batch files to launch the correct version is ugly, having a launcher would be much better. Anyway, I made it. It's 2kb without the icon, 8kb with the 6kb WPI icon. I attached the version with the icon to this message.If you need some changes tell me. This launcher could be also used to pass to WPI informations that it's unable to read, for example rather than having WPI check for explorer with findexplorer, this launcher could tell WPI if explorer is loaded with a reserved command line parameter. Edited August 1, 2009 by Francesco
Kelsenellenelvian Posted August 1, 2009 Author Posted August 1, 2009 Extraced and ran it.Got the mshta white screen...Waited for a long time (5min)...Nothing.
Kelsenellenelvian Posted August 1, 2009 Author Posted August 1, 2009 Nevermind I am just dumb today.I ran it on folder outside of the wpi.hta and not beside the wpi.hta.
Francesco Posted August 1, 2009 Posted August 1, 2009 Nevermind I am just dumb today.I ran it on folder outside of the wpi.hta and not beside the wpi.hta.Now I added a messagebox when WPI.hta is not foundWPI.rar
AlBundy33 Posted August 3, 2009 Posted August 3, 2009 I want to use WPI-Environment-Args in batch-files (e.g. %ROOT%).Is it possible to set the environment before a command is executed?ThanksAl
Kelsenellenelvian Posted August 3, 2009 Author Posted August 3, 2009 Hmmmmm Now that very well could be done.
mritter Posted August 3, 2009 Posted August 3, 2009 And how do you suppose that would be done, Kel? Actually, yes, it could very easily be done. Consider it done.Just to ask: should it be an option or just do them all? (%root%, %wpipath%, etc.). Or just certain ones?hdd, cddrv, root, wpipath, oslang, oslocale, would be the whole list.Delete them when WPI exits?
mritter Posted August 4, 2009 Posted August 4, 2009 Added the above variables. Thus creating new function{JSCRIPT}=removeEnvVar(Variable)They are removed when WPI exits.
AlBundy33 Posted August 11, 2009 Posted August 11, 2009 {JSCRIPT}=setEnvVar(Variable, Value, GlobalFlag)would also be very nice.GlobalFlag = true: set variable in system-envGlobalFlag = false: set variable only for current process (sub-processes should also can use them).e.g.: {JSCRIPT}=setEnvVar("LOGFILE", "%SystemDrive%\install.log", false)%ROOT%\apps\myapp\install.cmdNow install.cmd can use %LOGFILE%.Because this variable is only used during install-process it should not be set in system-env - but it should be accessible for the next app without to redeclare it.Al
Francesco Posted August 12, 2009 Posted August 12, 2009 Can you please move the .HTA file in one of the folders? With the HTA and launcher in the same folder it could get confusing. Tell me if you can move it and where so I can rebuild the exe with the new path.Also if WPI is incompatible with some applications like Nero or need some certain windows files I can detect those and warn the user so they won't come complaining here when WPI doesn't load.
mritter Posted August 12, 2009 Posted August 12, 2009 That would be a bad idea to move WPI.hta. It will throw off %wpipath%. And not everyone is going to use the launcher.Keep the launcher simple.
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