Jump to content

WPI Launch Issue


Recommended Posts

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.hta

Now 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

Link to comment
Share on other sites


Hi,

Fixed my issue with this code, may help someone.

%SYSTEMDRIVE%\packagedapps\PDU_APP\wpi.hta
sleep 60
goto processcheck


:mshtaRunning
sleep 60


:processcheck
TASKLIST | %windir%\SYSTEM32\find.exe /I "mshta.exe " && goto mshtaRunning
exit

Edited by zorg2000k
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...