zorg2000k Posted March 17, 2009 Posted March 17, 2009 Hi,Been using WPI for sometime. Great tool.Moved onto the latest version but I am having some issues launching the hta.exe.My machine joins the domain then runs a batch file to run some printer / programs default settings, as part of the bat file I call the hta.exe like this :start /w %windir%\system32\mshta.exe c:\packagedapps\PDU_APP\wpi.htaNow this would normally stop the original batch file until I choose my programs to install from WPI. Once WPI finishes the installs it would then finish the batch file and reboot.I can see a white page launch then dissapear, then the batch file continues, as it start to shutdown the white page appears again and then I see my WPI splash screen, but this goes as the machine is shutting down.I did enter a sleep command after the start /w %windir%\system32\mshta.exe c:\packagedapps\PDU_APP\wpi.hta which works but is not something I would like to do.Any help would be great.My config file is for WPI Config 7.2.0+Cheers
zorg2000k Posted March 18, 2009 Author Posted March 18, 2009 (edited) Hi,Fixed my issue with this code, may help someone.%SYSTEMDRIVE%\packagedapps\PDU_APP\wpi.htasleep 60goto processcheck:mshtaRunningsleep 60:processcheckTASKLIST | %windir%\SYSTEM32\find.exe /I "mshta.exe " && goto mshtaRunningexit Edited March 18, 2009 by zorg2000k
mritter Posted March 18, 2009 Posted March 18, 2009 It has to do with the Office check. Search for it on the forum to see why it does that.
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