cancel
Showing results for 
Search instead for 
Did you mean: 

Error while trying to deploy third party package created with EEDK

Jump to solution

Hi guys,

I'm new to the EEDK tool and need some help.

In order to test this product I've created the simplest batch file, the content of which is: "cmd /c calc". All it does is run the Calculator.

I've used the EEDK using these settings:

Capture.JPG

I'm not what are the "Product Detection Key" and "Product Detection Key Value" are for so I left them to defaults.

When I test the package, in the agent  monitor I see it gets to "Verifying run_calc.bat", and in the Task Manager I see a new process for calc.exe, but the calculator window itself doesn't open.

If I press End Task for the calc.exe the Agent Monitor says: "Error occurred while installing run_calc"

What am I doing wrong?

1 Solution

Accepted Solutions
tfk23
Level 8
Report Inappropriate Content
Message 3 of 5

Re: Error while trying to deploy third party package created with EEDK

Jump to solution

The McAfee agent launches cmd /c calc under the system account.   In order to work the batch file should have no user interaction or wait for something to close.   Instead of opening the calc try something like creating a directory to see if it get pass the verifying

Here is the information about the two values

Product Detection Key:

The Product Detection Key field dictates the registry location that contains the “Product Detection Key Value”. In the EEDK Tool, abbreviate top-level key names. (Example – HKEY_LOCAL_MACHINE should be abbreviated to HKLM)

Product Detection Key Value:

The Product Detection Key Value is the registry value that is checked for existence within the Product Detection Key prior to the product deployment task being executed. If the value does exist, then the product deployment task will not be executed. This setting does not attempt to determine the value data, only that the registry value exists. This field cannot be left blank, so either an actual value or nonexistent value must be listed. If a nonexistent value is entered then the product deployment task will never find any value that would prevent it from executing fully.

View solution in original post

4 Replies
Reliable Contributor catdaddy
Reliable Contributor
Report Inappropriate Content
Message 2 of 5

Re: Error while trying to deploy third party package created with EEDK

Jump to solution

,

                 Moved to ePolicy Orchestrator > (ePO) > Discussions per (Profile) for better assistance. If needed to be moved back to 'Other McAfee Products' (EEDK) please apprise.

Cliff

Moderator

Cliff
McAfee Volunteer
tfk23
Level 8
Report Inappropriate Content
Message 3 of 5

Re: Error while trying to deploy third party package created with EEDK

Jump to solution

The McAfee agent launches cmd /c calc under the system account.   In order to work the batch file should have no user interaction or wait for something to close.   Instead of opening the calc try something like creating a directory to see if it get pass the verifying

Here is the information about the two values

Product Detection Key:

The Product Detection Key field dictates the registry location that contains the “Product Detection Key Value”. In the EEDK Tool, abbreviate top-level key names. (Example – HKEY_LOCAL_MACHINE should be abbreviated to HKLM)

Product Detection Key Value:

The Product Detection Key Value is the registry value that is checked for existence within the Product Detection Key prior to the product deployment task being executed. If the value does exist, then the product deployment task will not be executed. This setting does not attempt to determine the value data, only that the registry value exists. This field cannot be left blank, so either an actual value or nonexistent value must be listed. If a nonexistent value is entered then the product deployment task will never find any value that would prevent it from executing fully.

View solution in original post

Re: Error while trying to deploy third party package created with EEDK

Jump to solution

You were right tfk23! I tried it creating a folder and it worked.

Thanks!

Now I have another problem which maybe regarding same issue of running as system account:

I wrote a script that uses wmic.exe to get the name of the enabled network connection on the computer, put it in a variable and then uses that variable in a netsh command to disable that connection.

I also want for the user to get some kind of message, of popup on screen.

How can I incorporate it to the batch file, if it runs under the System account?

tfk23
Level 8
Report Inappropriate Content
Message 5 of 5

Re: Error while trying to deploy third party package created with EEDK

Jump to solution

I don't think you'll be able to generate a popup for the user because your running under the system account.   

Below is an example of how to incorporate a vbs script into the a batch file. 

EnableRDCthruFirewall.Bat

---- Begin

@echo off

:: Set path to current product folder

pushd "%~dp0"

:: Get software package source directory and set as variable SRCDIR

SET SRCDIR=

for /f "delims=" %%a in ('cd') do @set SRCDIR=%%a

%compsec%  "%SRCDIR%\EnableRDCthruFirewall.vbs"

Exit /B 0

----End

EnableRDCthruFirewall.vbs

---- Begin

Option Explicit

Dim wshShell, command

On Error Resume Next

  Set wshShell = WScript.CreateObject("WScript.Shell")

   command   = "netsh advfirewall firewall set rule group=""Remote Desktop"" new enable=Yes"

  wshShell.Run command, 0, False

On Error Goto 0

----End

More McAfee Tools to Help You

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from McAfee experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by McAfee employees.
Join the Community
Join the Community