We help IT Professionals succeed at work.
Get Started

App install through GP and cmd shell

Last Modified: 2012-05-09

I am attempting to install an application through group policy.  Actually, I am attempting to upgrade an application that is already installed through GP.  I have the .cmd file that was used to install the application.  It looks for an existing file on the user's C drive and either installs or does nothing depending on whether the file exists or not.  If the file exists it means the application is already installed.  The problem with the upgrade is that there is no discernable indicator to point to after the upgrade to tell the .cmd file that the program is upgraded.  There's no registry indicators and no difference in the install directory.  What I have in mind is to create a small text file with the upgrade on the user's C drive and have the .cmd file look for that to determine whether to run the upgrade or not.  I cannot figure out how to create a simple text file on the user's C drive through the .cmd file.  I will attach the existing .cmd file so you can see what I have and hopefully we can come up with an easy way to do this.

Watch Question
There are a 1000 ways to skin the technology cat.
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE