Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

st6unst.exe remote execution

We are trying to clean up old versions of a few in house vb6 programs that are being replaced.

Is there any way to remotly run this command to remove the software or deploy it using a batch file?

an example of the uninstall line from the registry is:

st6unst.exe -n "C:\Program Files\<PROGRAM NAME HERE>\ST6UNST.LOG"

From what I read online i need to add -f -q at the end for a silent execution, But for some reason however I try to get the command to run, it either times out or does nothing.

 

Thank you for any help in advance.

 

0

Comments

6 comments
Date Votes
  • Hi Greg,

    What happens when you run the command line locally at the machine? Does the program get uninstalled? If the command works (when executed locally) does it run the uninstall silently?

    0
  • Hi Shane,

    I can execute the command locally, I can even create a batch file to run it.  It does uninstall the program.  If I add the -f -q switches to the end of the command then it appears to quickly flash on the screen and uninstall.

    Greg

     

    0
  • That quick flash of the screen is probably the issue. Since an Uninstall from PDQ Inventory runs as a background service there is no "desktop" for the app to initialize. The is the equivalent to MSI installs where you have two types of "silent" options. /qb which requires no user interaction but does flash the installation windows and /qn which is silent and doesn't flash any window.

    Is there a similar parameter for these apps? If not, you may be able to use PDQ Deploy to uninstall. You would just need to use a Command Step in your PDQ Package and have that step set to "Run as Logged On User". 

    0
  • Hi all:

    i just found this topic and also i just purchased an enterprise license of PDQ Deploy also :-).

    This issue is the same as me for a couple days by using the command %SYSTEMROOT%\st6unst.exe -n "c:\program files\xxx\st6unst.log"

    some articles may need to have -f -q on the suffix.

    the uninstallation went well but the st6unst is still remain in task .

     

    finally, if you revise the command script in pqd deploy by add the prefix with msiexec then everything run smooth :-)

     

    msiexec %SYSTEMROOT%\st6unst.exe -n "c:\program files\xxx\st6unst.log"

     

    Dhiranunt K.

    0
  • sorry for my typo

    msiexec /i %SYSTEMROOT%\st6unst.exe -n "c:\program files\xxx\st6unst.log"

     

     

    0
  • Hello

    msiexec throws me some issues. :-(

    using st6unst parameters gives me a better view.

    %systemroot%\st6unst.exe -n "c:\program files\aaaa\bbbb\cccc\st6unst.log" -f -q

     

    where -n = uninstall

    -f = force

    -q = quiet

     

     

    0