Deploying applications as part of a build

Hi everyone,

We have a management tool, which requires the installation of a lightweight agent executable. It's a simple .exe file that has no GUI and requires no interaction or parameters. You simply execute the .exe and that's it - nothing else.

Traditionally, after we build a VM we fire up IE, go to www.managementtool.com/dl.asp and download the .exe file. Run it and we're done.

I'd love to get this included as part of my VM builds in SCVMM 2012 R2.

I did add the .exe to our library with a .cr extension so it appears in SCVMM, and then created an application configuration profile for it as per the screenshot.

However when I create a service and deploy a VM I get and error in the job. Can someone advise me if I'm doing something obviously wrong based on the screenshot, or failing that advise where I can find further information / log files as the jobs UI doesn't show anything useful and I'm struggling to locate useful logs.

Thanks - Steve

July 6th, 2015 6:13am

Your error would be helpful.

Also, you will most likely need to define the path to the EXE.

Only putting the exe in there, assumes that the PATH is registered.  So, it probably needs to be ".\KcsSetup.exe"

If you want to play with this, use PowerShell to launch your application using Start-Process.  This is about as close to how SCVMM is doing this that you have the options exposed.

If your EXE is a long running process, you will run into a timeout condition.  And in that case you need to use a script (PowerShell or BAT) to launch your process.  This lets the script run and exit and leaves the process running.  So SCVMM is happy the script finished, and you are happy your process is running on a different thread.

Some good guidance here:  http://blogs.technet.com/b/kevinremde/archive/2013/04/24/application-profiles-in-system-center-2012-sp1-vmm-build-your-private-cloud-series.aspx

Free Windows Admin Tool Kit Click here and download it now
July 6th, 2015 12:02pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics